Index: http.monitor =================================================================== RCS file: /cvs/main/pma/alerts/mon/mon.d/http.monitor,v retrieving revision 1.1 diff -u -u -r1.1 http.monitor --- http.monitor 2 Sep 2003 18:59:26 -0000 1.1 +++ http.monitor 2 Nov 2003 23:29:18 -0000 @@ -63,7 +63,7 @@ my $ret;
if (keys %bad) { - $ret = 1; + $ret = scalar keys %bad; print join (" ", sort keys %bad), "\n"; } else { $ret = 0;
Index: phttp.monitor =================================================================== RCS file: /cvs/main/pma/alerts/mon/mon.d/phttp.monitor,v retrieving revision 1.4 diff -u -u -r1.4 phttp.monitor --- phttp.monitor 29 Oct 2003 20:40:32 -0000 1.4 +++ phttp.monitor 2 Nov 2003 23:36:09 -0000 @@ -23,7 +23,7 @@ =head1 RETURN STATUS
O on success for all hosts, or usage demand (--help option) - 1 on failure of any host + n where n is the number of failed hosts
=head1 SUMMARY LINE
@@ -312,7 +312,7 @@
details();
-exit 1 if scalar(%badrace); +exit scalar keys %badrace if scalar(%badrace); exit 0;
# burk !
_______________________________________________ mon mailing list [EMAIL PROTECTED] http://linux.kernel.org/mailman/listinfo/mon