diff options
author | Subhendu Ghosh <sghosh@users.sourceforge.net> | 2003-05-16 17:33:37 +0000 |
---|---|---|
committer | Subhendu Ghosh <sghosh@users.sourceforge.net> | 2003-05-16 17:33:37 +0000 |
commit | c7f0e0f55d417e67acbae37cd775733d5b7e443c (patch) | |
tree | 7f372fd20f745fb156d5a3c6e372469309ad9f8c /plugins-scripts | |
parent | 89167cba185d1e7831cc8518e235ceb019ca5f7c (diff) | |
download | monitoring-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
Diffstat (limited to 'plugins-scripts')
-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 | ||