diff options
| -rwxr-xr-x | plugins-scripts/check_ntp.pl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins-scripts/check_ntp.pl b/plugins-scripts/check_ntp.pl index 0262f5bf..67abb747 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 | } |
| 135 | if ($opt_k < $opt_j) { | 135 | if ($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 | ||
