singing the praises of monit
I run a server here at UVA that hosts many of the projectblacklight.org services, and its tomcat has been cutting out on us every once in awhile, which means our jira, hudson, and solr services all die. Our users have been really good about letting me know when things are down, and I have nagios monitoring in place, and usually I get things restarted pretty quickly, but now I have an even better solution.
I recently installed monit on that server and I have it watching httpd and tomcat. Today, while I was biking home, tomcat cut out at 5:01 pm. At 5:02 monit restarted it for me and ran all its checks to ensure that everything came back up properly. By the time I got home and checked my email, everything was fixed with no intervention from me. I’m pretty happy.
Thanks, monit!
From: “monit”
Date: September 28, 2009 5:01:05 PM EDT
To: “eos8d”
Subject: monit alert — Does not exist tomcatDoes not exist Service tomcat
Date: Mon, 28 Sep 2009 17:01:05 -0400
Action: restart
Host: polaris.lib.Virginia.EDU
Description: ‘tomcat’ process is not runningYour faithful employee,
monit
From: “monit”
Date: September 28, 2009 5:02:36 PM EDT
To: “eos8d”
Subject: monit alert — Exists tomcatExists Service tomcat
Date: Mon, 28 Sep 2009 17:02:36 -0400
Action: alert
Host: polaris.lib.Virginia.EDU
Description: ‘tomcat’ process is running with pid 11582Your faithful employee,
monit
Posted: September 28th, 2009 under Uncategorized.
Comments: 1
Comments
Comment from susan teague-rector
Time: November 4, 2009, 7:32 am
thanks for the link to monit – never heard of it. i too have problems with our tomcat/apache application but think it’s the mod_jk connector rather than tomcat. i’ve always had good luck with tomcat as long as you have an app that doesn’t leak memory (like dspace ;(. cheers

Write a comment