[Nagiosplug-devel] check_ntp
Holger Weiss
holger at CIS.FU-Berlin.DE
Thu Apr 5 18:42:08 CEST 2007
* Thomas Guyot-Sionnest <Thomas at zango.com> [2007-04-05 09:19]:
> > * Thomas Guyot-Sionnest <dermoth at aei.ca> [2007-04-05 09:29]:
> > > On 05/04/07 03:08 AM, sean finney wrote:
> > > > the wire to make sure one of them is recieved? or perhaps we could
> > > > default to a single packet, but provide a configurable retry
> > > > parameter or something.
> > >
> > > I'll take a look at what the other check used to do... But I doubt it
> > > would be useful for the jitter section.
> >
> > Why not? Retries are a good idea IMO.
>
> I haven't really tested it but with the current code I expect any packet
> drop will cause the plugin to timeout. That's not really what I call
> retries. So unless you have a suggestion on how to timeout on undeceived
> packets
Use a non-blocking socket and resend the request if reading the reply
(that is, poll(2) or select(2)) times out.
It's far from being a critical feature though, especially since Nagios
knows "soft states".
Holger
--
PGP fingerprint: F1F0 9071 8084 A426 DD59 9839 59D3 F3A1 B8B5 D3DE
More information about the Devel
mailing list