Hello,

currently there is no such statement - the automatic timeout/unmonitor on 
excessive errors is available only with the restart actions => for example:

  if 5 restarts within 5 cycles then unmonitor

We can generalize the syntax in the future to allow "IF <x> <action> WITHIN <y> 
CYCLES THEN <action>", so it will be possible to disable alerts using the 
syntax you mentioned.

Regards,
Martin



On Jan 26, 2012, at 4:45 PM, Tomich,John wrote:

> Hello all,
> 
> Using monit 4, can an alerting config block be modified as below to disable 
> monitoring when temporary system aberrations result in unceasing alerting?
> 
> check process http-resource with pidfile 
> /var/lock/subsys/ej_httpd_all/http-resource.pid 
>     start program = "/opt/apache/bin/ej_httpd start resource" 
>     stop program = "/opt/apache/bin/ej_httpd stop resource" 
>     if failed host 192.168.100.18 port 80 then alert 
>     if cpu > 80% for 15 cycles then alert 
>     if totalmem > 750 MB for 10 cycles then alert 
>     if children > 150 for 10 cycles then alert 
>     if loadavg(5min) greater than 15 for 10 cycles then alert 
>     if 5 alerts in 5 cycles then unmonitor  <== new code
> 
> My goal here is to interrupt alerting if 5 contiguous evaluation cycles 
> result in 5 alerts.
> 
> Many thanks.
> 
> Regards, jt 
> 
> 888888888888 
> John Tomich, IS Web Infrastructure 
> direct: 480.337.5854 
> page: 602.208.9893
> 
>  
> If you are not the intended recipient of this message (including attachments) 
> or if you have received this message in error, immediately notify us and 
> delete it as well as any attachments.
> 
> 
> If you do not wish to receive any email messages from us, excluding 
> administrative communications, please email this request to 
> [email protected] along with the email address you wish to unsubscribe.
> 
> 
> For important additional information related to this email, visit 
> www.edwardjones.com/US_email_disclosure . Edward D. Jones & Co., L.P. d/b/a 
> Edward Jones, 12555 Manchester Road, St. Louis, MO 63131 © Edward Jones. All 
> rights reserved.
> 
>  
>  
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general

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

Reply via email to