Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

monitoring NTP



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.






BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org