diff options
author | Sven Nierlein <sven@nierlein.de> | 2015-10-04 18:48:23 +0200 |
---|---|---|
committer | Sven Nierlein <sven@nierlein.de> | 2015-10-04 19:24:30 +0200 |
commit | d6baf9dbce1578ca59a577ac8155b835c46f0a16 (patch) | |
tree | 7f2cef8ef11361cc4a6c01b8951430e15f7a74ec /plugins-scripts/check_ifstatus.pl | |
parent | 741710c27c1749b81be4260a2ce0c18b319623cd (diff) | |
download | monitoring-plugins-d6baf9dbce1578ca59a577ac8155b835c46f0a16.tar.gz |
change exit code to unknown on help and version info
Signed-off-by: Sven Nierlein <sven@nierlein.de>
Diffstat (limited to 'plugins-scripts/check_ifstatus.pl')
-rwxr-xr-x | plugins-scripts/check_ifstatus.pl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins-scripts/check_ifstatus.pl b/plugins-scripts/check_ifstatus.pl index 2c76d0c8..9f2f7c31 100755 --- a/plugins-scripts/check_ifstatus.pl +++ b/plugins-scripts/check_ifstatus.pl | |||
@@ -119,7 +119,7 @@ $status = process_arguments(); | |||
119 | if ($status != 0) | 119 | if ($status != 0) |
120 | { | 120 | { |
121 | print_help() ; | 121 | print_help() ; |
122 | exit $ERRORS{'OK'}; | 122 | exit $ERRORS{'UNKNOWN'}; |
123 | } | 123 | } |
124 | 124 | ||
125 | 125 | ||
@@ -313,17 +313,17 @@ sub process_arguments() { | |||
313 | 313 | ||
314 | if ($status == 0){ | 314 | if ($status == 0){ |
315 | print_help(); | 315 | print_help(); |
316 | exit $ERRORS{'OK'}; | 316 | exit $ERRORS{'UNKNOWN'}; |
317 | } | 317 | } |
318 | 318 | ||
319 | if ($opt_V) { | 319 | if ($opt_V) { |
320 | print_revision($PROGNAME,'@NP_VERSION@'); | 320 | print_revision($PROGNAME,'@NP_VERSION@'); |
321 | exit $ERRORS{'OK'}; | 321 | exit $ERRORS{'UNKNOWN'}; |
322 | } | 322 | } |
323 | 323 | ||
324 | if ($opt_h) { | 324 | if ($opt_h) { |
325 | print_help(); | 325 | print_help(); |
326 | exit $ERRORS{'OK'}; | 326 | exit $ERRORS{'UNKNOWN'}; |
327 | } | 327 | } |
328 | 328 | ||
329 | unless (defined $timeout) { | 329 | unless (defined $timeout) { |