summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 20630de)
raw | patch | inline | side by side (parent: 20630de)
author | Matthew Kent <mattkent@users.sourceforge.net> | |
Fri, 19 Nov 2004 03:59:43 +0000 (03:59 +0000) | ||
committer | Matthew Kent <mattkent@users.sourceforge.net> | |
Fri, 19 Nov 2004 03:59:43 +0000 (03:59 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@909 f882894a-f735-0410-b71e-b25c423dba1c
plugins-scripts/check_ntp.pl | patch | blob | history |
index 0546761b5e2fc27006d7c321a644fe8ff0e683f6..7adef9846658edf52d79fe5720bbaa78620022b9 100755 (executable)
} elsif( !$have_ntpq ) { # no errors from ntpdate and no ntpq or ntpq timed out
if (abs($offset) > $ocrit) {
$state = $ERRORS{'CRITICAL'};
- $answer = "Offset $offset msec > +/- $ocrit sec\n";
+ $answer = "Offset $offset sec > +/- $ocrit sec\n";
} elsif (abs($offset) > $owarn) {
$state = $ERRORS{'WARNING'};
- $answer = "Offset $offset msec > +/- $owarn sec\n";
+ $answer = "Offset $offset sec > +/- $owarn sec\n";
} elsif (( abs($offset) > $owarn) && $def_jitter ) {
$state = $ERRORS{'WARNING'};
- $answer = "Offset $offset msec > +/- $owarn sec, ntpq timed out\n";
+ $answer = "Offset $offset sec > +/- $owarn sec, ntpq timed out\n";
} elsif ( $def_jitter ) {
$state = $ERRORS{'WARNING'};
$answer = "Offset $offset secs, ntpq timed out\n";
} else { # no errors from ntpdate or ntpq
if (abs($offset) > $ocrit) {
$state = $ERRORS{'CRITICAL'};
- $answer = "Offset $offset msec > +/- $ocrit sec, jitter $jitter msec\n";
+ $answer = "Offset $offset sec > +/- $ocrit sec, jitter $jitter msec\n";
} elsif (abs($jitter) > $jcrit ) {
$state = $ERRORS{'CRITICAL'};
$answer = "Jitter $jitter msec> +/- $jcrit msec, offset $offset sec \n";
} elsif (abs($offset) > $owarn) {
$state = $ERRORS{'WARNING'};
- $answer = "Offset $offset msec > +/- $owarn sec, jitter $jitter msec\n";
+ $answer = "Offset $offset sec > +/- $owarn sec, jitter $jitter msec\n";
} elsif (abs($jitter) > $jwarn ) {
$state = $ERRORS{'WARNING'};
$answer = "Jitter $jitter msec> +/- $jwarn msec, offset $offset sec \n";