]> git.etc.gen.nz Git - spong.git/commitdiff
If the status update has color purple, we don't log it.
authorMichael Brown <michaelb@opentext.com>
Sun, 24 Jun 2001 17:15:46 +0000 (17:15 +0000)
committerMichael Brown <michaelb@opentext.com>
Sun, 24 Jun 2001 17:15:46 +0000 (17:15 +0000)
contrib/plugins/spong-server/data_rrd_disk
contrib/plugins/spong-server/data_rrd_la

index 2fb5c6b248dd6116c2141b724f6f4b2a479c7db2..9bfd3be67a93deb6090dc0095e635f37f29a63ca 100755 (executable)
@@ -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 );
 
index 156f55e8e751ce9125ce7c36f4cc02fb811799b7..f7d6777b74768416c4db29a41acc0174b8d9e6ad 100755 (executable)
@@ -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 );