FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 9963256f authored by Dr Adam Thorn's avatar Dr Adam Thorn
Browse files

Fix boundary checking for reporting yellow backup status in xymon script

parent d2b51352
No related branches found
No related tags found
No related merge requests found
......@@ -58,8 +58,8 @@ print "Considering $hostname\n";
if (! defined($row->{'age'}) ) {$row->{'age'}=9999999999999999;};
if ($row->{'age'} < $row->{'green_soft'}) {
$bb->color_line('green',$row->{'backup_task_name'}." completed ".$row->{'age'}." [&lt;".$row->{'green_soft'}."] seconds ago.\n");
} elsif ($row->{'age'}<$row->{'yellow_soft'} && $row->{'age'}<$row->{'yellow_hard'}) {
$bb->color_line('yellow',$row->{'backup_task_name'}." completed ".$row->{'age'}." [&lt;".$row->{'yellow_soft'}." and ".$row->{'yellow_hard'}."] seconds ago.\n");
} elsif ($row->{'age'}>$row->{'green_soft'} && $row->{'age'}<$row->{'yellow_hard'}) {
$bb->color_line('yellow',$row->{'backup_task_name'}." completed ".$row->{'age'}." [&lt;".$row->{'green_soft'}." and ".$row->{'yellow_hard'}."] seconds ago.\n");
} else {
$bb->color_line('red',$row->{'backup_task_name'}." completed ".$row->{'age'}." seconds ago.\n");
$bb->print("Should be completed before $row->{'yellow_soft'} and $row->{'yellow_hard'}.\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment