From b63cba73f672278bf8c99179dce6aaa8239b10bd Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sun, 24 Jun 2001 17:15:46 +0000 Subject: [PATCH] If the status update has color purple, we don't log it. --- contrib/plugins/spong-server/data_rrd_disk | 1 + contrib/plugins/spong-server/data_rrd_la | 2 ++ 2 files changed, 3 insertions(+) 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 ); -- 2.30.2