Check_time


#1

I’d like to get nagios setup to montier the time on each box, I’ve been trying to get a ntp demon working but as of yet havent got it working properly.

In the meantime I’d like nagios to report the time on each box, the plugin check_time seems like it will do what I want, however it trys to go through a port 37.

yoda# ./check_time -H 10.110.110.13
Connection refused
TIME UNKNOWN - could not connect to server 10.110.110.13, port 37
yoda# ./check_time -H localhost
Connection refused
TIME UNKNOWN - could not connect to server localhost, port 37
yoda#

is port 37 a ntp port its looking for?


#2

yes, look at /etc/services and you will see that port 37 is for the timeserver.


#3

You have to have an ntp daemon running on each machine whose time you want monitor. check_time -H then works. Make sure that firewall, etc. are not blocking the port and that the ntp daemon allows the nagios host to access it.


#4

timeserver (port 37 UDP and TCP) is usually handled by inetd/xinetd and has nothing to do with NTP. Perhaps you need to use check_ntp instead?


#5

inetd/xinetd is a process/network manager. It can run the ntp daemon. It doesn’t matter so much what runs the daemon, just so long as it runs.


#6

My point was the check_time plugin - I believe - uses the timeserver protocol (port 37, handled by inetd), not the NTP protocol.