summaryrefslogtreecommitdiffstats
path: root/plugins-scripts/check_ntp.pl
diff options
context:
space:
mode:
Diffstat (limited to 'plugins-scripts/check_ntp.pl')
-rwxr-xr-xplugins-scripts/check_ntp.pl10
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins-scripts/check_ntp.pl b/plugins-scripts/check_ntp.pl
index 0262f5b..67abb74 100755
--- a/plugins-scripts/check_ntp.pl
+++ b/plugins-scripts/check_ntp.pl
@@ -132,10 +132,12 @@ if ($ocrit < $owarn ) {
132 print_usage(); 132 print_usage();
133 exit $ERRORS{"UNKNOWN"}; 133 exit $ERRORS{"UNKNOWN"};
134} 134}
135if ($opt_k < $opt_j) { 135if ($def_jitter) {
136 print "Critical jitter should be larger than warning jitter\n"; 136 if ($opt_k < $opt_j) {
137 print_usage(); 137 print "Critical jitter should be larger than warning jitter\n";
138 exit $ERRORS{'UNKNOWN'}; 138 print_usage();
139 exit $ERRORS{'UNKNOWN'};
140 }
139} 141}
140 142
141 143