From: Stephen Gran Date: Tue, 1 Dec 2009 09:00:46 +0000 (+0000) Subject: work around virtual fans on things like blades X-Git-Url: https://wiki.adam-barratt.org.uk/gitweb/?a=commitdiff_plain;h=c3d9e79433d4f91462ec71e6d95ae6d84c36e8d3;p=mirror%2Fdsa-nagios.git work around virtual fans on things like blades Signed-off-by: Stephen Gran --- diff --git a/dsa-nagios-checks/checks/dsa-check-hpasm b/dsa-nagios-checks/checks/dsa-check-hpasm index 63505f3..1a1c64a 100755 --- 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;