work around virtual fans on things like blades
authorStephen Gran <steve@lobefin.net>
Tue, 1 Dec 2009 09:00:46 +0000 (09:00 +0000)
committerStephen 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

index 63505f3..1a1c64a 100755 (executable)
@@ -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;