munin: Make hpasmcli2 skip fans that are N/A.
authorMatthijs Kooijman <matthijs@stdin.nl>
Wed, 5 May 2010 10:45:49 +0000 (12:45 +0200)
committerMatthijs Kooijman <matthijs@stdin.nl>
Wed, 5 May 2010 10:45:49 +0000 (12:45 +0200)
etc/munin/plugins/hpasmcli2_fans

index c768cb7a715e3e5c1863c42bdcebc156c405a5cd..80e5d97cb8fefe54066bc518860106652ba77856 100755 (executable)
@@ -131,6 +131,7 @@ if (defined($show_target) and $show_target eq 'temp') {
             $line =~ s/^\s//g;
             my ($fan, $loc, $present, $speed, $rate, $redundant, $partner, $pluggable) = split(/\s/, $line);
             next if ($present ne "Yes");
+            next if ($rate eq "N/A");
             $loc =~ s/\/|#//g;
             $rate =~ s/\%//g;
             my $threshold = '100';