]> git.uio.no Git - check_openmanage.git/commitdiff
slightly improved reporting of fan status
authortrondham <trondham@e53b7cee-c147-0410-b3a0-ae4c1fa63963>
Wed, 16 Feb 2011 15:00:17 +0000 (15:00 +0000)
committertrondham <trondham@e53b7cee-c147-0410-b3a0-ae4c1fa63963>
Wed, 16 Feb 2011 15:00:17 +0000 (15:00 +0000)
git-svn-id: svn+ssh://vcs-usit.uio.no/svnroot/usit-unix-intern/trunk/usit-nagios-plugins/trondham/check_openmanage@19448 e53b7cee-c147-0410-b3a0-ae4c1fa63963

check_openmanage

index 7a37a30bfea2a0ca671bbdee08cf1f923a70d121..b0eb3e573b7687b37604b75187890d19ce08778b 100755 (executable)
@@ -2856,17 +2856,10 @@ sub check_fans {
        $count{fan}++;
        next FAN if blacklisted('fan', $index);
 
-       if ($status ne 'Ok') {
-           my $msg = sprintf 'Chassis fan %d [%s] needs attention: %s',
-             $index, $location, $status;
-           my $err = $snmp ? $probestatus2nagios{$status} : $status2nagios{$status};
-           report('chassis', $msg, $err, $index);
-       }
-       else {
-           my $msg = sprintf 'Chassis fan %d [%s]: %s',
-             $index, $location, $reading;
-           report('chassis', $msg, $E_OK, $index);
-       }
+       # Default
+       my $msg = sprintf 'Chassis fan %d [%s] reads %s rpm',
+         $index, $location, $reading;
+       report('chassis', $msg, $E_OK, $index);
 
        # Collect performance data
        if (defined $opt{perfdata}) {