diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2015-10-04 23:34:01 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2015-10-04 23:42:41 +0200 |
commit | 3f17f18416521ee90b8823bab3324188976ac265 (patch) | |
tree | 195bd71e6cab33acfd4303545f6472f1e984217a /plugins-scripts/check_ntp.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_ntp.pl')
-rwxr-xr-x | plugins-scripts/check_ntp.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins-scripts/check_ntp.pl b/plugins-scripts/check_ntp.pl index dd2cd6dc..f4000019 100755 --- a/plugins-scripts/check_ntp.pl +++ b/plugins-scripts/check_ntp.pl | |||
@@ -98,12 +98,12 @@ GetOptions | |||
98 | 98 | ||
99 | if ($opt_V) { | 99 | if ($opt_V) { |
100 | print_revision($PROGNAME,'@NP_VERSION@'); | 100 | print_revision($PROGNAME,'@NP_VERSION@'); |
101 | exit $ERRORS{'OK'}; | 101 | exit $ERRORS{'UNKNOWN'}; |
102 | } | 102 | } |
103 | 103 | ||
104 | if ($opt_h) { | 104 | if ($opt_h) { |
105 | print_help(); | 105 | print_help(); |
106 | exit $ERRORS{'OK'}; | 106 | exit $ERRORS{'UNKNOWN'}; |
107 | } | 107 | } |
108 | 108 | ||
109 | # jitter test params specified | 109 | # jitter test params specified |