summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSubhendu Ghosh <sghosh@users.sourceforge.net>2003-05-16 17:33:37 +0000
committerSubhendu Ghosh <sghosh@users.sourceforge.net>2003-05-16 17:33:37 +0000
commitc7f0e0f55d417e67acbae37cd775733d5b7e443c (patch)
tree7f372fd20f745fb156d5a3c6e372469309ad9f8c
parent89167cba185d1e7831cc8518e235ceb019ca5f7c (diff)
downloadmonitoring-plugins-c7f0e0f55d417e67acbae37cd775733d5b7e443c.tar.gz
bug fix
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/release-1.3.0@515 f882894a-f735-0410-b71e-b25c423dba1c
-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 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}
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