Hi Michael,
On Tue, May 31, 2011 at 11:28:50AM +0100, Michael Stevens wrote:
Being a big nagios fan, I'm trying to monitor the
bitfolk NTP servers
with nagios.
We already monitor them with nagios, btw. :)
And cacti:
http://tools.bitfolk.com/cacti/graph_779.html
I have:
define host{
use generic-host ; Name of host template to use)
host_name
ntp1.lon.bitfolk.com
alias
ntp1.lon.bitfolk.com
address 212.13.195.4
}
define service{
use generic-service
host
ntp1.lon.bitfolk.com
service_description ntp
check_command check_ntp
}
Which seems like it ought to work. Testing with
pool.ntp.org servers it
seems to work.
What does it do instead of working?
What does your check_ntp command actually look like?
Mine looks like:
define command {
command_name check_ntp
command_line /usr/lib/nagios/plugins/check_ntp -H $HOSTADDRESS$
}
And from some random host appears to work:
$ /usr/lib/nagios/plugins/check_ntp -H 212.13.195.4
NTP OK: Offset 0.006038069725 secs|offset=0.006038s;60.000000;120.000000;
However, this is quite an old version of Nagios so maybe newer
checks do something that require more access.
Cheers,
Andy