monit-general
[Top][All Lists]
Advanced

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

Alerting granularity


From: Randy Ramsdell
Subject: Alerting granularity
Date: Thu, 12 Aug 2010 11:02:55 -0400
User-agent: Thunderbird 2.0.0.24 (X11/20100228)

Hi,

I have been trying to configure alerting for our 24/7 oncall person. One issue I do not seem to stop is the initial alert. Monit alerts as soon as the service fails which I do not want. I only want monit to alert if the service fails for a specific time. We use an exec if failed but need to know when the exec is unable to restart the service for a specified time period.

I have tried almost every form of alerting but can't solve the "not" alert on initial fail.

Is is possible to alert the way we need?


Example: This host runs the same service but on diff ports then we rotor with load balancer.



check host blah blah

alert address@hidden

if failed host localhost port 81 send "POST / HTTP/1.15 blah blah" expect "ZP4" then exec "$RUNSCRIPT" if failed host localhost port 82 send "POST / HTTP/1.15 blah blah" expect "ZP4" then exec "$RUNSCRIPT" if failed host localhost port 83 send "POST / HTTP/1.15 blah blah" expect "ZP4" then exec "$RUNSCRIPT" if failed host localhost port 84 send "POST / HTTP/1.15 blah blah" expect "ZP4" then exec "$RUNSCRIPT"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]