From: Matthijs Kooijman Date: Wed, 5 May 2010 10:45:49 +0000 (+0200) Subject: munin: Make hpasmcli2 skip fans that are N/A. X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fservers%2Fdrsnuggles.git;a=commitdiff_plain;h=81157fd299e5166430ab4003e4b6bf8eb94da2b8 munin: Make hpasmcli2 skip fans that are N/A. --- diff --git a/etc/munin/plugins/hpasmcli2_fans b/etc/munin/plugins/hpasmcli2_fans index c768cb7..80e5d97 100755 --- a/etc/munin/plugins/hpasmcli2_fans +++ b/etc/munin/plugins/hpasmcli2_fans @@ -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';