On Jan 26, 2010, at 10:46 AM, Marcus Mülbüsch wrote:

> Eric Pailleau schrieb:
>> ... then exec '/bin/true'
>>> Hello all,
>>> 
>>>   I watch a local connection, and would like to receive a message when the 
>>> service is unreachable. This happens sometimes under high load, but isn't 
>>> such a big concern.
>>> 
>>>   Since the service gets restarted when it misses 3 times within 3 cycles 
>>> it would be enough if the first test just sends a mail when the connection 
>>> failed, but does not when the connection passes later.
>>> 
>>>   Is there any way to do something like this:
>>> 
>>> If failed localhost:80 then alert else if passed then DONOTHING
>>> 
>>>   Obviously there is no DONOTHING action, but it would make sense here. 
>>> Does anybody have a workaround?
>>> 
>>> Thanks,
>>> 
>>> Marcus
> 
> Unfortunately that doesn't work - I still get messages; ecept that the 
> messages contain the text: "Action: exec"
> 
> Now, I can suppress all mails for the action exec; but that isn't such a good 
> idea.
> 
> Any other way?
> 
> Marcus



If the alert filter is not sufficient, you can delegate alert processing to 
M/Monit rules ... it allows to set rule to handle failed message only. 

Martin

--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to