]> git.etc.gen.nz Git - spong.git/commitdiff
Fixed problem with stopafter flag (:) not working
authorStephen L Johnson <sjohnson@monsters.org>
Thu, 31 Oct 2002 22:14:27 +0000 (22:14 +0000)
committerStephen L Johnson <sjohnson@monsters.org>
Thu, 31 Oct 2002 22:14:27 +0000 (22:14 +0000)
src/spong-network.pl

index dac66fa8eb94ec2aed66c30c5ecf2d75eb582625..58eff5a0e7438611192aad32e8d9d1069d80cf2b 100755 (executable)
@@ -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';
       }