# (2) Converted checks to new plugin mechanism (Stephen Johnson May 28, 1999)
# Added user-configurable escalation mechanism
#
-# $Id: spong-network.pl,v 1.35 2001/05/07 19:19:24 sljohnson Exp $
+# $Id: spong-network.pl,v 1.36 2001/05/25 14:30:46 sljohnson Exp $
use Carp;
use lib "@@LIBDIR@@";
$stopafter = 1;
} else {
$check = $_;
+ $stopafter = 0;
}
$0 = "spong-network (checking $host/$check)";
my $laststatus = $HOSTS{$host}{'service'}{$check}{'laststatus'}
|| 'green';
- if ($stopafter && $laststatus ne 'green') {
+ if ($stopafter && $laststatus eq 'red') {
debug("Check $check failed for host $host," .
" skipping remaining tests", 3);
last;
$stop_after = 1;
} else {
$s = $_;
+ $stopafter = 0;
}
# If our service