From c7f0e0f55d417e67acbae37cd775733d5b7e443c Mon Sep 17 00:00:00 2001 From: Subhendu Ghosh Date: Fri, 16 May 2003 17:33:37 +0000 Subject: bug fix git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/release-1.3.0@515 f882894a-f735-0410-b71e-b25c423dba1c 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 ) { print_usage(); exit $ERRORS{"UNKNOWN"}; } -if ($opt_k < $opt_j) { - print "Critical jitter should be larger than warning jitter\n"; - print_usage(); - exit $ERRORS{'UNKNOWN'}; +if ($def_jitter) { + if ($opt_k < $opt_j) { + print "Critical jitter should be larger than warning jitter\n"; + print_usage(); + exit $ERRORS{'UNKNOWN'}; + } } -- cgit v0.10-9-g596f