]> git.uio.no Git - check_openmanage.git/blobdiff - check_openmanage
bugfix
[check_openmanage.git] / check_openmanage
index a9554c4d0463d0437c67172c1ee44de44675a1cf..a610353e11aacf08c530d3e9bc1b798a8b58297b 100755 (executable)
@@ -51,7 +51,7 @@ $SIG{__WARN__} = sub { push @perl_warnings, [@_]; };
 
 # Version and similar info
 $NAME    = 'check_openmanage';
-$VERSION = '3.7.0-beta16';
+$VERSION = '3.7.0';
 $AUTHOR  = 'Trond H. Amundsen';
 $CONTACT = 't.h.amundsen@usit.uio.no';
 
@@ -4290,7 +4290,7 @@ sub check_pwrmonitoring {
       AMP2:
        foreach my $line (@{ run_command("$omreport $omopt_chassis pwrmonitoring -fmt ssv") }) {
            chop $line;
-           if ($line eq 'Location;Reading') {
+           if ($line eq 'Location;Reading' or $line eq 'Amperage') {
                $found = 1;
                next AMP2;
            }
@@ -5127,7 +5127,7 @@ else {
        # Prefix with service tag if specified with option '-i|--info'
        if ($opt{info}) {
            if (defined $opt{htmlinfo}) {
-               $msg = '[<a href="' . warranty_url($sysinfo{serial})
+               $msg = '[<a target="_blank" href="' . warranty_url($sysinfo{serial})
                  . "\">$sysinfo{serial}</a>] " . $msg;
            }
            else {
@@ -5195,7 +5195,7 @@ if ($exit_code == $E_OK && defined $opt{only} && $opt{only} !~ m{\A critical|war
 }
 elsif ($exit_code == $E_OK && !$opt{debug}) {
     if (defined $opt{htmlinfo}) {
-       printf q{OK - System: '<a href="%s">%s%s</a>', SN: '<a href="%s">%s</a>'},
+       printf q{OK - System: '<a target="_blank" href="%s">%s%s</a>', SN: '<a target="_blank" href="%s">%s</a>'},
          documentation_url($sysinfo{model}), $sysinfo{model}, $sysinfo{rev},
            warranty_url($sysinfo{serial}), $sysinfo{serial};
     }
@@ -5281,7 +5281,7 @@ else {
     if ($opt{extinfo}) {
        print $linebreak;
        if (defined $opt{htmlinfo}) {
-           printf '------ SYSTEM: <a href="%s">%s%s</a>, SN: <a href="%s">%s</a>',
+           printf '------ SYSTEM: <a target="_blank" href="%s">%s%s</a>, SN: <a target="_blank" href="%s">%s</a>',
              documentation_url($sysinfo{model}), $sysinfo{model}, $sysinfo{rev},
                warranty_url($sysinfo{serial}), $sysinfo{serial};
        }