diff options
Diffstat (limited to 'plugins-scripts/check_rpc.pl')
| -rwxr-xr-x | plugins-scripts/check_rpc.pl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins-scripts/check_rpc.pl b/plugins-scripts/check_rpc.pl index b1c61471..47d6e49e 100755 --- a/plugins-scripts/check_rpc.pl +++ b/plugins-scripts/check_rpc.pl | |||
| @@ -22,7 +22,6 @@ | |||
| 22 | use strict; | 22 | use strict; |
| 23 | use FindBin; | 23 | use FindBin; |
| 24 | use lib "$FindBin::Bin"; | 24 | use lib "$FindBin::Bin"; |
| 25 | use lib '@libexecdir@'; | ||
| 26 | use utils qw($TIMEOUT %ERRORS &print_revision &support); | 25 | use utils qw($TIMEOUT %ERRORS &print_revision &support); |
| 27 | use vars qw($PROGNAME); | 26 | use vars qw($PROGNAME); |
| 28 | my ($verbose,@proto,%prognum,$host,$response,$prognum,$port,$cmd,$progver,$state); | 27 | my ($verbose,@proto,%prognum,$host,$response,$prognum,$port,$cmd,$progver,$state); |
| @@ -64,12 +63,12 @@ GetOptions( | |||
| 64 | ); | 63 | ); |
| 65 | 64 | ||
| 66 | # -h means display verbose help screen | 65 | # -h means display verbose help screen |
| 67 | if ($opt_h) { print_help(); exit $ERRORS{'OK'}; } | 66 | if ($opt_h) { print_help(); exit $ERRORS{'UNKNOWN'}; } |
| 68 | 67 | ||
| 69 | # -V means display version number | 68 | # -V means display version number |
| 70 | if ($opt_V) { | 69 | if ($opt_V) { |
| 71 | print_revision($PROGNAME,'@NP_VERSION@'); | 70 | print_revision($PROGNAME,'@NP_VERSION@'); |
| 72 | exit $ERRORS{'OK'}; | 71 | exit $ERRORS{'UNKNOWN'}; |
| 73 | } | 72 | } |
| 74 | 73 | ||
| 75 | # Hash containing all RPC program names and numbers | 74 | # Hash containing all RPC program names and numbers |
