monit-general
[Top][All Lists]
Advanced

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

Alerting query


From: Andy Scutt
Subject: Alerting query
Date: Wed, 15 Sep 2010 10:07:04 +0100

Hi,
 
I was looking through the docs to see if there was any way to limit alerting but couldn't find alerting but couldn't find anything, hopefully someone out there has had the same issue and can educate me :)
 
We monitor many systems for clients, each customer system is setup as a host in monit. Each host has multiple checks (tcp port and url checks). We'd like to limit alerts so that if more than one check fails for a host we only get one set of alerts not alertas for each failed check, is this possible?
 
For example, heres a sample client config:
 
check host Customer_A with address client.address.com
#http check
if failed port 80 proto http timeout 20 seconds then alert
#https check
if failed port 443 type TCPSSL proto http timeout 20 seconds then alert
#node manager check
if failed host 192.168.40.73 port 9400 for 2 cycles then alert
if failed host 192.168.40.76 port 9400 for 2 cycles then alert
#web app check
if failed url http://192.168.40.73:8006/activerecruiter/companies/monitor/jsp-container-monitor.jsp and content == 'JSPContainerOk' timeout 20 seconds for 2 cycles then alert
if failed url http://192.168.40.76:8006/activerecruiter/companies/monitor/jsp-container-monitor.jsp and content == 'JSPContainerOk' timeout 20 seconds for 2 cycles then alert
if failed url http://192.168.40.73:8006/activerecruiter/companies/monitor/db-connection-monitor.jsp and content == 'DatabaseOk' timeout 20 seconds for 2 cycles then alert
if failed url http://192.168.40.76:8006/activerecruiter/companies/monitor/db-connection-monitor.jsp and content == 'DatabaseOk' timeout 20 seconds for 2 cycles then alert
#admin check
if failed url http://192.168.40.73:6900/monitor/admin_test.jsp and content == 'Admin' timeout 20 seconds for 2 cycles then alert
Worst case if the whole client system dies we get 9 alerts per cycle, when one would do. is this possible?
 
Many thanks
Andy
 
 

reply via email to

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