diff options
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) { |