summaryrefslogtreecommitdiffstats
path: root/plugins-scripts/t
diff options
context:
space:
mode:
Diffstat (limited to 'plugins-scripts/t')
0 files changed, 0 insertions, 0 deletions
diff --git a/plugins-scripts/check_ntp.pl b/plugins-scripts/check_ntp.pl
index 17730a5..10079b6 100755
--- a/plugins-scripts/check_ntp.pl
+++ b/plugins-scripts/check_ntp.pl
@@ -138,10 +138,13 @@ if ($ocrit < $owarn ) {
138 print_usage(); 138 print_usage();
139 exit $ERRORS{"UNKNOWN"}; 139 exit $ERRORS{"UNKNOWN"};
140} 140}
141if ($opt_k < $opt_j) { 141
142 print "Critical jitter should be larger than warning jitter\n"; 142if ($def_jitter) {
143 print_usage(); 143 if ($opt_k < $opt_j) {
144 exit $ERRORS{'UNKNOWN'}; 144 print "Critical jitter should be larger than warning jitter\n";
145 print_usage();
146 exit $ERRORS{'UNKNOWN'};
147 }
145} 148}
146 149
147 150