Re: [Mon-devel] [Mon-commit] mon/mon.d mon.monitor,1.2,1.3
Brought to you by:
trockij
From: Augie S. <aug...@gm...> - 2007-12-03 23:19:27
|
The mon.monitor would not complain if the remote mon was running but the scheduler was stopped; this fixes that problem. --Augie On 12/3/07, Augie Schwer <as...@us...> wrote: > 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 "") > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Mon-commit mailing list > Mon...@li... > https://lists.sourceforge.net/lists/listinfo/mon-commit > -- Augie Schwer - Augie@Schwer.us - http://schwer.us Key fingerprint = 9815 AE19 AFD1 1FE7 5DEE 2AC3 CB99 2784 27B0 C072 |