From e435ad0a2a1636385e0d17ab70b24d191f8e6126 Mon Sep 17 00:00:00 2001 From: Stephen L Johnson Date: Thu, 31 Oct 2002 22:14:27 +0000 Subject: [PATCH] Fixed problem with stopafter flag (:) not working --- src/spong-network.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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'; } -- 2.30.2