monitoring NTP
Dan Ritter
dsr-mzpnVDyJpH4k7aNtvndDlA at public.gmane.org
Thu Jul 2 20:35:08 EDT 2009
On Thu, Jul 02, 2009 at 08:11:45PM -0400, Tom Metro wrote:
> This same Ubuntu system once had a problem where ntpd mysteriously
> exited (probably when a libc or similar update was installed, which
> kills and restarts services), so I'm thinking its time to put some
> monitoring in place, but I'd like something fairly light weight. A
> script or maybe a monit config. Though simply checking that ntpd is
> running wouldn't do it. It needs to periodically check the the delta
> between itself and another server and complain when a threshold is
> exceeded. That seems to be beyond what monit can do.
You need your monitor to parse the output of
ntpq -n -c rv $host
and compare to local time.
I have such a thing, but it's written for mon, not monit.
-dsr-
--
http://tao.merseine.nu/~dsr/eula.html is hereby incorporated by reference.
You can't defend freedom by getting rid of it.
More information about the Discuss
mailing list