[Nagios-users] Checking time on remote host

2006-04-17 Thread James Nachlin
Hi, I'm trying to figure out a way to check that my clocks are realtively in synch, without running an extra service on port 37 on all of my machines. This rules out the check_time plugin. In order to write my own plugin, I would have to get check_nrpe to send out the current time to the re

Re: [Nagios-users] Checking time on remote host

2006-04-17 Thread Patrick Morris
How about using NRPE to execute the check_time plugin remotely against a known good time source? On Mon, 17 Apr 2006, James Nachlin wrote: > Hi, > > I'm trying to figure out a way to check that my clocks are realtively in > synch, without running an extra service on port 37 on all of my > mac

Re: [Nagios-users] Checking time on remote host

2006-04-17 Thread Hugo van der Kooij
On Mon, 17 Apr 2006, James Nachlin wrote: > I'm trying to figure out a way to check that my clocks are realtively in > synch, without running an extra service on port 37 on all of my > machines. This rules out the check_time plugin. > > In order to write my own plugin, I would have to get check_n

Re: [Nagios-users] Checking time on remote host

2006-04-17 Thread James Nachlin
Hugo van der Kooij wrote: On Mon, 17 Apr 2006, James Nachlin wrote: I'm trying to figure out a way to check that my clocks are realtively in synch, without running an extra service on port 37 on all of my machines. This rules out the check_time plugin. In order to write my own plugin, I would

Re: [Nagios-users] Checking time on remote host

2006-04-17 Thread Jason Martin
On Mon, Apr 17, 2006 at 03:45:45PM -0400, James Nachlin wrote: > Writing the plugin would be easy if there were a way to transmit the > results of `date +%s` via check_nrpe. Have Nagios invoke the following script, passing in the appropriate arguments #!/bin/sh TIME=`perl -e 'print time()'`; che