From 57c4d460df5db703cbab9e07fd0c68110176e79f Mon Sep 17 00:00:00 2001 From: Subhendu Ghosh Date: Fri, 16 May 2003 17:33:37 +0000 Subject: [PATCH] bug fix git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@515 f882894a-f735-0410-b71e-b25c423dba1c --- plugins-scripts/check_ntp.pl | 11 +++++++---- 1 file changed, 7 insertions(+), 4 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 ) { 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'}; + } } -- 2.30.2