Hi every one,
Hi,
I'm new to nagios. I have added a few servers in nagios monitoring . all pugins are working fine but when i add ntp service its shows like "NTP
UNKNOWN 01-02-2015 16:16:03 0d 16h 30m 27s 4/4 Invalid NTP response: 28 bytes read does not equal 12 plus 3584 data segment "
is it relavant to NTP service issue ?
NTP invalid response
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: NTP invalid response
Can you show the command and service definition you are using?
Have you tried running the plugin from the CLI?
What version of the plugins are you using?
Have you tried running the plugin from the CLI?
What version of the plugins are you using?
Re: NTP invalid response
Hi scottwilkerson ,
i am using check_ntp pluggin and am checked in CLI also results as : /usr/local/nagios/libexec/check_ntp -H localhost -w 0.5 -c 1 -j -1:100 -k -1:200
Invalid NTP response: 28 bytes read does not equal 12 plus 3584 data segment.
and plugins version is nagios-plugins-2.0.3
i am using check_ntp pluggin and am checked in CLI also results as : /usr/local/nagios/libexec/check_ntp -H localhost -w 0.5 -c 1 -j -1:100 -k -1:200
Invalid NTP response: 28 bytes read does not equal 12 plus 3584 data segment.
and plugins version is nagios-plugins-2.0.3
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: NTP invalid response
I might have to dig into the code I changed for this one, but can you try removing the -j and -k from your command first.
Also what ntp server are you checking against? The particular error you are seeing is from a check against the ntp packet provided, that makes sure the size relayed by the device matches the actual packet size it sent, and that there is enough memory allocated to safely process the packet. In this case, your device seems to say the size is 12 + 3584 bytes, but it actually sent only 28. This might be an initialization packet of some sort, but it does seem a bit odd that it would claim to send so much data and instead send so little.
Code: Select all
./check_ntp -H localhost -w 0.5 -c 1Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: NTP invalid response
if i removing j & K it will working
check_ntp -H localhost -w 0.5 -c 1
no error provided.
i checked with different ntp servers like
server 2.in.pool.ntp.org
server 0.asia.pool.ntp.org
server 2.asia.pool.ntp.org
even checked above ntp servers same error occured.
check_ntp -H localhost -w 0.5 -c 1
no error provided.
i checked with different ntp servers like
server 2.in.pool.ntp.org
server 0.asia.pool.ntp.org
server 2.asia.pool.ntp.org
even checked above ntp servers same error occured.
Re: NTP invalid response
using this command ./check_ntp -H localhost -w 0.5 -c 1 Result as
NTP OK: Offset -1.430511475e-06 secs|offset=-0.000001s;0.500000;1.000000;
let us know one thing what exactly usage of jitler (j)
NTP OK: Offset -1.430511475e-06 secs|offset=-0.000001s;0.500000;1.000000;
let us know one thing what exactly usage of jitler (j)
Re: NTP invalid response
See: http://www.ntp.org/ntpfaq/NTP-s-sw-clocks-quality.htmpvkanna wrote:let us know one thing what exactly usage of jitler (j)
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.