diff options
author | Subhendu Ghosh <sghosh@users.sourceforge.net> | 2003-05-16 17:33:37 (GMT) |
---|---|---|
committer | Subhendu Ghosh <sghosh@users.sourceforge.net> | 2003-05-16 17:33:37 (GMT) |
commit | 57c4d460df5db703cbab9e07fd0c68110176e79f (patch) | |
tree | be82f0d07e36aa58fc6df6492fb4878084cdc0b6 /plugins-scripts | |
parent | 3a69b001b4176de9295112157dcbc000b4bbcf81 (diff) | |
download | monitoring-plugins-57c4d460df5db703cbab9e07fd0c68110176e79f.tar.gz |
bug fix
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@515 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins-scripts')
-rwxr-xr-x | plugins-scripts/check_ntp.pl | 11 |
1 files 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 ) { | |||
138 | print_usage(); | 138 | print_usage(); |
139 | exit $ERRORS{"UNKNOWN"}; | 139 | exit $ERRORS{"UNKNOWN"}; |
140 | } | 140 | } |
141 | if ($opt_k < $opt_j) { | 141 | |
142 | print "Critical jitter should be larger than warning jitter\n"; | 142 | if ($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 | ||