From: Stephen L Johnson Date: Thu, 31 Oct 2002 22:14:27 +0000 (+0000) Subject: Fixed problem with stopafter flag (:) not working X-Git-Tag: spong-2_8_0-beta1~59 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e435ad0a2a1636385e0d17ab70b24d191f8e6126;p=spong.git Fixed problem with stopafter flag (:) not working --- diff --git a/src/spong-network.pl b/src/spong-network.pl index dac66fa..58eff5a 100755 --- a/src/spong-network.pl +++ b/src/spong-network.pl @@ -17,7 +17,7 @@ # (2) Converted checks to new plugin mechanism (Stephen Johnson May 28, 1999) # Added user-configurable escalation mechanism # -# $Id: spong-network.pl,v 1.44 2002/06/24 19:01:07 sljohnson Exp $ +# $Id: spong-network.pl,v 1.45 2002/10/31 22:14:27 sljohnson Exp $ use Carp; use lib "@@LIBDIR@@"; @@ -227,9 +227,8 @@ sub do_check { $crit_count += 1; $color = 'red'; if ($crit_count < $CRIT_WARN_LEVEL) { - $color = 'yellow' if $laststatus eq 'green'; $skip_status = 1; - $HOSTS{$host}->{'service'}->{$service}->{'laststatus'} = 'yellow'; + $HOSTS{$host}->{'service'}->{$service}->{'laststatus'} = 'red'; } else { $HOSTS{$host}->{'service'}->{$service}->{'laststatus'} = 'red'; }