From 31c824b3f237fa1d209e5c0dbab34f12b691e00b Mon Sep 17 00:00:00 2001 From: Stephen L Johnson Date: Wed, 16 Jul 2003 17:50:40 +0000 Subject: [PATCH] added code to skip a status that are already purple in the stale data scan --- src/spong-server.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/spong-server.pl b/src/spong-server.pl index a3ffd25..1efc634 100755 --- a/src/spong-server.pl +++ b/src/spong-server.pl @@ -6,7 +6,7 @@ # There are one or more update processes that listen for status updates # from client programs. -# $Id: spong-server.pl,v 1.60 2003/06/02 20:54:27 sljohnson Exp $ +# $Id: spong-server.pl,v 1.61 2003/07/16 17:50:40 sljohnson Exp $ use lib "@@LIBDIR@@"; @@ -451,7 +451,9 @@ sub listen_for_queries { foreach $host ( Spong::HostList->new( "all" )->hosts() ) { foreach $service ( $host->service_names() ) { $main::SERVICES{$service}=1; - my ($color )=($host->service($service))->color(); + my ($rcolor)=($host->service($service))->rcolor(); # If real color is purple + next if $rcolor eq 'purple'; # don't bother updating + my ($color)=($host->service($service))->color(); my ($summary)=($host->service($service))->summary(); my ($message)=($host->service($service))->message(); my ($stime) = time(); -- 2.30.2