summaryrefslogtreecommitdiffstats
path: root/plugins-scripts/check_ntp.pl
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2015-10-04 23:34:01 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2015-10-04 23:42:41 +0200
commit3f17f18416521ee90b8823bab3324188976ac265 (patch)
tree195bd71e6cab33acfd4303545f6472f1e984217a /plugins-scripts/check_ntp.pl
parent5ca1bff80cf86c290a0803f3cf37aee9bd57d41f (diff)
parentbebf1cd050ecb0e23f02353e19125767623bd41f (diff)
downloadmonitoring-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-xplugins-scripts/check_ntp.pl4
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
99if ($opt_V) { 99if ($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
104if ($opt_h) { 104if ($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