]> git.uio.no Git - check_openmanage.git/commitdiff
fix ok message output with "--only servicetag" option
authorTrond Hasle Amundsen <t.h.amundsen@usit.uio.no>
Fri, 19 Jul 2013 12:47:42 +0000 (14:47 +0200)
committerTrond Hasle Amundsen <t.h.amundsen@usit.uio.no>
Fri, 19 Jul 2013 12:47:42 +0000 (14:47 +0200)
check_openmanage

index e43cf4062353493a6aa99f259981c6caf4c4595d..fa59b48d56ad3ae95da3974b22603ec557663f69 100755 (executable)
@@ -5263,6 +5263,7 @@ if ($exit_code == $E_OK && defined $opt{only} && $opt{only} !~ m{\A critical|war
          'esmlog'      => "OK - ESM Log content: $count{esm}{Ok} ok, $count{esm}{'Non-Critical'} warning and $count{esm}{Critical} critical",
          'esmhealth'   => "ESM LOG OK - less than 80% used",
           'sdcard'      => "SD CARDS OK - $count{sd} SD cards installed",
+          'servicetag'  => sprintf 'ServiceTag OK: %s', $opt{hide_servicetag} ? 'XXXXXXX' : $sysinfo{serial},
        );
 
     print $okmsg{$opt{only}};