]> git.uio.no Git - check_openmanage.git/commitdiff
Exit with value 3 (unknown) if printing help or version info. This is
authortrondham <trondham@e53b7cee-c147-0410-b3a0-ae4c1fa63963>
Wed, 16 Feb 2011 22:20:52 +0000 (22:20 +0000)
committertrondham <trondham@e53b7cee-c147-0410-b3a0-ae4c1fa63963>
Wed, 16 Feb 2011 22:20:52 +0000 (22:20 +0000)
best practice for Nagios plugins.

git-svn-id: svn+ssh://vcs-usit.uio.no/svnroot/usit-unix-intern/trunk/usit-nagios-plugins/trondham/check_openmanage@19462 e53b7cee-c147-0410-b3a0-ae4c1fa63963

check_openmanage

index 57882176deeca6ce1bb8f063c3d21758eb061481..f00ea855ed362d9105732e0b25f09aa9acf97d6e 100755 (executable)
@@ -205,13 +205,13 @@ GetOptions('b|blacklist=s'      => \@{ $opt{blacklist} },
 # If user requested help
 if ($opt{help}) {
     print $USAGE, $HELP;
-    exit $E_OK;
+    exit $E_UNKNOWN;
 }
 
 # If user requested version info
 if ($opt{version}) {
     print $LICENSE;
-    exit $E_OK;
+    exit $E_UNKNOWN;
 }
 
 # Setting timeout