diff options
Diffstat (limited to 'plugins-scripts/check_ifstatus.pl')
-rwxr-xr-x | plugins-scripts/check_ifstatus.pl | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins-scripts/check_ifstatus.pl b/plugins-scripts/check_ifstatus.pl index 6ec71d14..9f2f7c31 100755 --- a/plugins-scripts/check_ifstatus.pl +++ b/plugins-scripts/check_ifstatus.pl | |||
@@ -35,7 +35,6 @@ use POSIX; | |||
35 | use strict; | 35 | use strict; |
36 | use FindBin; | 36 | use FindBin; |
37 | use lib "$FindBin::Bin"; | 37 | use lib "$FindBin::Bin"; |
38 | use lib '@libexecdir@'; | ||
39 | use utils qw($TIMEOUT %ERRORS &print_revision &support); | 38 | use utils qw($TIMEOUT %ERRORS &print_revision &support); |
40 | 39 | ||
41 | use Net::SNMP; | 40 | use Net::SNMP; |
@@ -120,7 +119,7 @@ $status = process_arguments(); | |||
120 | if ($status != 0) | 119 | if ($status != 0) |
121 | { | 120 | { |
122 | print_help() ; | 121 | print_help() ; |
123 | exit $ERRORS{'OK'}; | 122 | exit $ERRORS{'UNKNOWN'}; |
124 | } | 123 | } |
125 | 124 | ||
126 | 125 | ||
@@ -314,17 +313,17 @@ sub process_arguments() { | |||
314 | 313 | ||
315 | if ($status == 0){ | 314 | if ($status == 0){ |
316 | print_help(); | 315 | print_help(); |
317 | exit $ERRORS{'OK'}; | 316 | exit $ERRORS{'UNKNOWN'}; |
318 | } | 317 | } |
319 | 318 | ||
320 | if ($opt_V) { | 319 | if ($opt_V) { |
321 | print_revision($PROGNAME,'@NP_VERSION@'); | 320 | print_revision($PROGNAME,'@NP_VERSION@'); |
322 | exit $ERRORS{'OK'}; | 321 | exit $ERRORS{'UNKNOWN'}; |
323 | } | 322 | } |
324 | 323 | ||
325 | if ($opt_h) { | 324 | if ($opt_h) { |
326 | print_help(); | 325 | print_help(); |
327 | exit $ERRORS{'OK'}; | 326 | exit $ERRORS{'UNKNOWN'}; |
328 | } | 327 | } |
329 | 328 | ||
330 | unless (defined $timeout) { | 329 | unless (defined $timeout) { |