projects
/
mirror
/
dsa-nagios.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9915185
)
work around virtual fans on things like blades
author
Stephen Gran
<steve@lobefin.net>
Tue, 1 Dec 2009 09:00:46 +0000
(09:00 +0000)
committer
Stephen Gran
<steve@lobefin.net>
Tue, 1 Dec 2009 09:00:46 +0000
(09:00 +0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
dsa-nagios-checks/checks/dsa-check-hpasm
patch
|
blob
|
history
diff --git
a/dsa-nagios-checks/checks/dsa-check-hpasm
b/dsa-nagios-checks/checks/dsa-check-hpasm
index
63505f3
..
1a1c64a
100755
(executable)
--- a/
dsa-nagios-checks/checks/dsa-check-hpasm
+++ b/
dsa-nagios-checks/checks/dsa-check-hpasm
@@
-112,6
+112,11
@@
sub do_fans {
$num_fans++;
my @line = split /\s+/, $line;
+ if ($line[1] eq 'VIRTUAL') { # blade, etc
+ $message = 'FAN1: (virtual) OK ';
+ last;
+ }
+
if ($line[2] ne 'Yes') {
$message = sprintf("FAN%d: status=%s ", $fan_num, $line[2]);
$exit_status |= 2;