<br><tt><font size=2>nagios-users-bounces@lists.sourceforge.net wrote on
02/21/2008 10:40:41 AM:<br>
<br>
> Goltz, Jim (NIH/NLM/LHC) [C] wrote:<br>
> > Sorry. I meant, there's no plugin that lets you check from the
Nagios<br>
> > host whether host A is in sync with NTP server B.  <br>
> ><br>
> > NRPE works, but we can't use it here because of security issues.
 I keep<br>
> > forgetting not everyone is prohibited from running NRPE.<br>
> >   <br>
> If you have ntp on each server, and configure it correctly, you could
<br>
> use check_ntp -H remote_server -w 15 to test if it's out of sync with
<br>
> the Nagios server<br>
> <br>
> The on the nagios server itself have the same check but against the
real <br>
> ntp server, this way you've got a chain of correct times or not.<br>
> <br>
> Not ideal, but one possible workaround.<br>
> <br>
> Other ideas could be SNMP on the remote hosts, or NSCA to feed back
to <br>
> the nagios server...<br>
> <br>
> -h<br>
> <br>
> -- <br>
> Hari Sekhon<br>
> <br>
Another option would to be used check_by_ssh. I am, of course, assuming
they are allowed to use ssh but a machine with no remote connectivity is
a problem to begin with. check_by_ssh isn't quite as nice as nrpe but it
would accomplish the checks in question. One could also write a pretty
simple wrapper to check the time on both servers, compare it, and account
for the lag between the checks. It wouldn't be pretty but it would work
for the most part.</font></tt>