projects
/
matthijs
/
servers
/
drsnuggles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29ba2e5
)
munin: Make hpasmcli2 skip fans that are N/A.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Wed, 5 May 2010 10:45:49 +0000
(12:45 +0200)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Wed, 5 May 2010 10:45:49 +0000
(12:45 +0200)
etc/munin/plugins/hpasmcli2_fans
patch
|
blob
|
history
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';