Checking NTP via UDP
Does anyone have a simple send/expect script
to check a Red Hat ntpd server? ntp-4.1.1-1
We use What's Up Gold for monitoring our boxes
and want to add our NTP servers, too. IP Switch
says that NTP servers vary too much, so they're
unable to provide a sample script.
What exactly is it that you want to "check"?
Just to check that the ntpd service is running.
I was going to just do an ntpdate command,
but the server doing the checking is another
ntpd, and I get a "socket is in use" message.
The WUG server does not run ntpd, so it will
not have any socket problems, but it runs on
Windows and does not have ntpdate. :)
How about doing a public key SSH connection to the server and checking the process with ps?