From: Michael Brown Date: Sun, 24 Jun 2001 17:15:46 +0000 (+0000) Subject: If the status update has color purple, we don't log it. X-Git-Tag: spong-2_4_6~13 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b63cba73f672278bf8c99179dce6aaa8239b10bd;p=spong.git If the status update has color purple, we don't log it. --- diff --git a/contrib/plugins/spong-server/data_rrd_disk b/contrib/plugins/spong-server/data_rrd_disk index 2fb5c6b..9bfd3be 100755 --- a/contrib/plugins/spong-server/data_rrd_disk +++ b/contrib/plugins/spong-server/data_rrd_disk @@ -22,6 +22,7 @@ sub data_rrd_disks { my( $host, $service, $color, $start, $time, $sum, $message ) = @_; if ($service ne 'disk' ) { return; } + if ($color eq 'purple' ) { return; } my( $line, $rawfs, $used, $pct, $name, %namemap, $target ); diff --git a/contrib/plugins/spong-server/data_rrd_la b/contrib/plugins/spong-server/data_rrd_la index 156f55e..f7d6777 100755 --- a/contrib/plugins/spong-server/data_rrd_la +++ b/contrib/plugins/spong-server/data_rrd_la @@ -19,6 +19,8 @@ sub data_rrd_la { my( $host, $service, $color, $start, $time, $sum, $message ) = @_; if ($service ne 'cpu' ) { return; } + if ($color eq 'purple' ) { return; } + $time = time; my( $line, $rawfs, $used, $pct, $name, %namemap, $target );