- From: Tom H <
>
- To:
- Subject: [chef] monit config to chec chef-server
- Date: Wed, 25 Jan 2012 03:32:07 +0000
HI All,
I had chef die on me earlier, will have to grep the logs to try to find
the problem, but in the meanwhile I will keep an eye on with with monit.
Other than the pid files associated with the daemons, are there any
other items that I can monitor than my initial stab;
check process chef-server with pidfile /var/run/chef/server.main.pid
start program = "/etc/init.d/chef-server start" with timeout 60 seconds
stop program = "/etc/init.d/chef-server stop"
if cpu > 60% for 2 cycles then alert
check process chef-solr with pidfile /var/run/chef/solr.pid
start program = "/etc/init.d/chef-solr start" with timeout 60 seconds
stop program = "/etc/init.d/chef-solr stop"
if cpu > 60% for 2 cycles then alert
check process chef-expander with pidfile /var/run/chef/expander.pid
start program = "/etc/init.d/chef-expander start" with timeout 60
seconds
stop program = "/etc/init.d/chef-expander stop"
if cpu > 60% for 2 cycles then alert
check process chef-server-webui with pidfile chef-server-webui
start program = "/etc/init.d/chef-server-webui start" with timeout
60 seconds
stop program = "/etc/init.d/chef-server-webui stop"
if cpu > 60% for 2 cycles then alert
check host chef-server with address localhost
if failed icmp type echo count 3 with timeout 3 seconds then alert
if failed port 4000 protocol http with timeout 15 seconds then alert
Cheers,
Tom
- [chef] monit config to chec chef-server, Tom H, 01/24/2012
Archive powered by MHonArc 2.6.16.