diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2015-10-04 21:34:01 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2015-10-04 21:42:41 (GMT) |
commit | 3f17f18416521ee90b8823bab3324188976ac265 (patch) | |
tree | 195bd71e6cab33acfd4303545f6472f1e984217a /plugins-scripts/check_ircd.pl | |
parent | 5ca1bff80cf86c290a0803f3cf37aee9bd57d41f (diff) | |
parent | bebf1cd050ecb0e23f02353e19125767623bd41f (diff) | |
download | monitoring-plugins-3f17f18416521ee90b8823bab3324188976ac265.tar.gz |
Merge branch 'pr/1363'
* pr/1363:
use unknown exit code for help/version in plugins-root as well
use unknown exit code for help/version in plugins
change exit code to unknown on help and version info
use exit code 3 for version and help
Diffstat (limited to 'plugins-scripts/check_ircd.pl')
-rwxr-xr-x | plugins-scripts/check_ircd.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins-scripts/check_ircd.pl b/plugins-scripts/check_ircd.pl index afedfb9..22d21c2 100755 --- a/plugins-scripts/check_ircd.pl +++ b/plugins-scripts/check_ircd.pl | |||
@@ -181,10 +181,10 @@ MAIN: | |||
181 | 181 | ||
182 | if ($opt_V) { | 182 | if ($opt_V) { |
183 | print_revision($PROGNAME,'@NP_VERSION@'); | 183 | print_revision($PROGNAME,'@NP_VERSION@'); |
184 | exit $ERRORS{'OK'}; | 184 | exit $ERRORS{'UNKNOWN'}; |
185 | } | 185 | } |
186 | 186 | ||
187 | if ($opt_h) {print_help(); exit $ERRORS{'OK'};} | 187 | if ($opt_h) {print_help(); exit $ERRORS{'UNKNOWN'};} |
188 | 188 | ||
189 | ($opt_H) || ($opt_H = shift @ARGV) || usage("Host name/address not specified\n"); | 189 | ($opt_H) || ($opt_H = shift @ARGV) || usage("Host name/address not specified\n"); |
190 | my $remotehost = $1 if ($opt_H =~ /([-.A-Za-z0-9]+)/); | 190 | my $remotehost = $1 if ($opt_H =~ /([-.A-Za-z0-9]+)/); |