summaryrefslogtreecommitdiffstats
path: root/plugins-scripts
diff options
context:
space:
mode:
authorMatthew Kent <mattkent@users.sourceforge.net>2004-11-19 03:59:43 (GMT)
committerMatthew Kent <mattkent@users.sourceforge.net>2004-11-19 03:59:43 (GMT)
commitcb737f57265d4afb80004c680d9f6e3861b59e41 (patch)
tree3e0a47829551ef75c827f8b45f1bf0cc220f1b78 /plugins-scripts
parent20630de1405d538478c0c613f9922f548c4b5172 (diff)
downloadmonitoring-plugins-cb737f57265d4afb80004c680d9f6e3861b59e41.tar.gz
Fix incorrectly labelled units in output (1025905, Jason Martin)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@909 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins-scripts')
-rwxr-xr-xplugins-scripts/check_ntp.pl10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins-scripts/check_ntp.pl b/plugins-scripts/check_ntp.pl
index 0546761..7adef98 100755
--- a/plugins-scripts/check_ntp.pl
+++ b/plugins-scripts/check_ntp.pl
@@ -358,13 +358,13 @@ if ($ntpdate_error != $ERRORS{'OK'}) {
358} elsif( !$have_ntpq ) { # no errors from ntpdate and no ntpq or ntpq timed out 358} elsif( !$have_ntpq ) { # no errors from ntpdate and no ntpq or ntpq timed out
359 if (abs($offset) > $ocrit) { 359 if (abs($offset) > $ocrit) {
360 $state = $ERRORS{'CRITICAL'}; 360 $state = $ERRORS{'CRITICAL'};
361 $answer = "Offset $offset msec > +/- $ocrit sec\n"; 361 $answer = "Offset $offset sec > +/- $ocrit sec\n";
362 } elsif (abs($offset) > $owarn) { 362 } elsif (abs($offset) > $owarn) {
363 $state = $ERRORS{'WARNING'}; 363 $state = $ERRORS{'WARNING'};
364 $answer = "Offset $offset msec > +/- $owarn sec\n"; 364 $answer = "Offset $offset sec > +/- $owarn sec\n";
365 } elsif (( abs($offset) > $owarn) && $def_jitter ) { 365 } elsif (( abs($offset) > $owarn) && $def_jitter ) {
366 $state = $ERRORS{'WARNING'}; 366 $state = $ERRORS{'WARNING'};
367 $answer = "Offset $offset msec > +/- $owarn sec, ntpq timed out\n"; 367 $answer = "Offset $offset sec > +/- $owarn sec, ntpq timed out\n";
368 } elsif ( $def_jitter ) { 368 } elsif ( $def_jitter ) {
369 $state = $ERRORS{'WARNING'}; 369 $state = $ERRORS{'WARNING'};
370 $answer = "Offset $offset secs, ntpq timed out\n"; 370 $answer = "Offset $offset secs, ntpq timed out\n";
@@ -378,13 +378,13 @@ if ($ntpdate_error != $ERRORS{'OK'}) {
378} else { # no errors from ntpdate or ntpq 378} else { # no errors from ntpdate or ntpq
379 if (abs($offset) > $ocrit) { 379 if (abs($offset) > $ocrit) {
380 $state = $ERRORS{'CRITICAL'}; 380 $state = $ERRORS{'CRITICAL'};
381 $answer = "Offset $offset msec > +/- $ocrit sec, jitter $jitter msec\n"; 381 $answer = "Offset $offset sec > +/- $ocrit sec, jitter $jitter msec\n";
382 } elsif (abs($jitter) > $jcrit ) { 382 } elsif (abs($jitter) > $jcrit ) {
383 $state = $ERRORS{'CRITICAL'}; 383 $state = $ERRORS{'CRITICAL'};
384 $answer = "Jitter $jitter msec> +/- $jcrit msec, offset $offset sec \n"; 384 $answer = "Jitter $jitter msec> +/- $jcrit msec, offset $offset sec \n";
385 } elsif (abs($offset) > $owarn) { 385 } elsif (abs($offset) > $owarn) {
386 $state = $ERRORS{'WARNING'}; 386 $state = $ERRORS{'WARNING'};
387 $answer = "Offset $offset msec > +/- $owarn sec, jitter $jitter msec\n"; 387 $answer = "Offset $offset sec > +/- $owarn sec, jitter $jitter msec\n";
388 } elsif (abs($jitter) > $jwarn ) { 388 } elsif (abs($jitter) > $jwarn ) {
389 $state = $ERRORS{'WARNING'}; 389 $state = $ERRORS{'WARNING'};
390 $answer = "Jitter $jitter msec> +/- $jwarn msec, offset $offset sec \n"; 390 $answer = "Jitter $jitter msec> +/- $jwarn msec, offset $offset sec \n";