]> git.uio.no Git - check_openmanage.git/blobdiff - check_openmanage
* version 3.5.0-beta18
[check_openmanage.git] / check_openmanage
index 2acf3a37c2a399ffc4cadde3fe67a9a911797cfc..65aac8fcff08366b749ee11ea5a7b1b914d857f5 100755 (executable)
@@ -56,7 +56,7 @@ if (! isatty(*STDOUT)) {
 
 # Version and similar info
 $NAME    = 'check_openmanage';
-$VERSION = '3.5.0-beta16';
+$VERSION = '3.5.0-beta18';
 $AUTHOR  = 'Trond H. Amundsen';
 $CONTACT = 't.h.amundsen@usit.uio.no';
 
@@ -627,7 +627,7 @@ sub find_omreport {
   OMREPORT_PATH:
     foreach my $bin (@omreport_paths) {
        if (-x $bin) {
-           $omreport = $bin;
+           $omreport = qq{"$bin"};
            last OMREPORT_PATH;
        }
     }
@@ -1356,7 +1356,7 @@ sub check_physical_disks {
 
        # Special case: Failure predicted
        if ($status eq 'Non-Critical' and $fpred) {
-           my $msg = sprintf '%s <tt>[%s %s, %s]</tt> on ctrl %d needs attention: Failure Predicted',
+           my $msg = sprintf '%s [%s %s, %s] on ctrl %d needs attention: Failure Predicted',
              $name, $vendor, $product, $capacity, $ctrl;
            report('storage', $msg, $E_WARNING, $nexus);
        }
@@ -3138,7 +3138,7 @@ sub check_pwrmonitoring {
            $max_crit =~ s{\A (\d+.*?)\s+[a-zA-Z]+ \s*\z}{$1}xms;
        }
 
-       next AMP if blacklisted('pm', $index);
+       next AMP if blacklisted('amp', $index);
        next AMP if $index !~ m{\A \d+ \z}xms;
        $count{amp}++;