[Nagiosplug-help] [check_ntp] timed out, nothing received BUT offset and jitter are ok

Linuks pytania linuks-pytania at o2.pl
Mon Dec 12 03:12:01 CET 2005


Hello nagios-plug friends. My check_ntp plugin works bad and too long, over 10 secs. I think its failed in line where is 
$ntpq -np $host 2>&1 |


test:/# /usr/local/nagios/libexec/check_ntp --help
check_ntp (nagios-plugins 1.4.2) 1.29
[...]

NORMAL TEST WITH BAD REMOTE HOST:
test:/# /usr/local/nagios/libexec/check_ntp -H 10.20.30.40
Use of uninitialized value in division (/) at /usr/local/nagios/libexec/check_ntp line 424.
NTP CRITICAL: No suitable peer server found - Server for ntp probably down|offset=0.000000, jitter=0,peer_stratum=0

VERBOSE TEST WITH BAD REMOTE HOST:
test:/# /usr/local/nagios/libexec/check_ntp -H 10.20.30.40 -v
ntperr = 0
stderr = 256 :
ntperr = 2 :
10.20.30.40: timed out, nothing received
Use of uninitialized value in division (/) at /usr/local/nagios/libexec/check_ntp line 424.
NTP CRITICAL: No suitable peer server found - Server for ntp probably down|offset=0.000000, jitter=0,peer_stratum=0
test:/#

VERBOSE TEST WITH GOOD REMOTE HOST:
test:/# /usr/local/nagios/libexec/check_ntp -H 10.128.132.129
Use of uninitialized value in division (/) at /usr/local/nagios/libexec/check_ntp line 424.
NTP OK: Offset 14.642343 secs|offset=14.642343, jitter=0,peer_stratum=2
sirnet-test:/# /usr/local/nagios/libexec/check_ntp -H 10.128.132.129 -v
ntperr = 0
ntperr = 0
10.128.132.129: timed out, nothing received
Use of uninitialized value in division (/) at /usr/local/nagios/libexec/check_ntp line 424.
NTP OK: Offset 14.700375 secs|offset=14.700375, jitter=0,peer_stratum=2

AND TIME MEASURE:
test:/# time /usr/local/nagios/libexec/check_ntp -H 10.128.132.129 -v
ntperr = 0
ntperr = 0
10.128.132.129: timed out, nothing received
Use of uninitialized value in division (/) at /usr/local/nagios/libexec/check_ntp line 424.
NTP OK: Offset 14.726690 secs|offset=14.726690, jitter=0,peer_stratum=2

real    0m10.305s
user    0m0.200s
sys     0m0.000s
test:/#  

Do you have problems like this?

Sincerely,
Luke.





More information about the Help mailing list