> > On 10/19/06, Az <[EMAIL PROTECTED]> wrote: > >> Brian Loe wrote: >> >>> Is there a way, at all, to specify that if pings are lost - but at >>> least one gets through - or get slow, then nagios waits until the next >>> check before alerting on it. However, if all pings fail, it alerts on >>> the first check? >>> >>> >> The check_ping plugin allows you to specify round trip and packet loss >> thresholds, so that might be a solution for you. >> >> Brian Loe wrote: > I'm using check_icmp, I think, and I believe it does the same - but > how do I differentiate between alert on the first complete failure, > but check twice before alerting when the threshold is exceeded? If I am reading this right, you're saying you have two criteria for a failure (presumably for a host check):
1. *All* packets "fail" on the first check (be it from none arriving or taking too long). 2. *Some* packets "fail" on the first and subsequent check. The only two ways I can think of doing this (and I'm sure there'll be others) are: * Write a custom plugin that carries over the result of the previous check so that the next check can see if case #2 applies. * Some creative mixing of the normal check_icmp/ping/fping plugin with the desired thresholds, and the host max_check_attempts directive (although I don't think this will give you exactly what you want, but you might be able to live with it). * Use an event handler that is triggered when some (but not all) packets fail to meet your criteria, which kicks off a check of its own behind the scene and if that check meets case #2, submit a passive result. Cheers. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Nagios-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
