projects
/
matthijs
/
servers
/
drsnuggles.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
munin: Make hpasmcli2 skip fans that are N/A.
[matthijs/servers/drsnuggles.git]
/
etc
/
munin
/
plugins
/
hpasmcli2_fans
diff --git
a/etc/munin/plugins/hpasmcli2_fans
b/etc/munin/plugins/hpasmcli2_fans
index c768cb7a715e3e5c1863c42bdcebc156c405a5cd..80e5d97cb8fefe54066bc518860106652ba77856 100755
(executable)
--- 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';