diff options
Diffstat (limited to 'plugins-scripts/check_ntp.pl')
-rwxr-xr-x | plugins-scripts/check_ntp.pl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins-scripts/check_ntp.pl b/plugins-scripts/check_ntp.pl index 0546761b..7adef984 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"; |