[Mon-commit] mon/mon.d mon.monitor,1.2,1.3
Brought to you by:
trockij
From: Augie S. <as...@us...> - 2007-12-03 23:18:10
|
Update of /cvsroot/mon/mon/mon.d In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18415/mon.d Modified Files: mon.monitor Log Message: Making the mon monitor alert when the scheduler is not running. Index: mon.monitor =================================================================== RCS file: /cvsroot/mon/mon/mon.d/mon.monitor,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** mon.monitor 17 Jul 2007 18:01:26 -0000 1.2 --- mon.monitor 3 Dec 2007 23:18:05 -0000 1.3 *************** *** 62,65 **** --- 62,72 ---- my @st = $c->list_state; + if ($st[0] == 0) + { + push @failures, $host; + push @details, "$host: scheduler stopped since " . localtime ($st[1]) . "\n"; + undef $c; + next; + } if ($c->error ne "") |