Main menu:

Site search

Feeds

Categories

August 2014
S M T W T F S
« Mar    
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Archive

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 tomcat

Does 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 running

Your faithful employee,
monit

From: “monit”
Date: September 28, 2009 5:02:36 PM EDT
To: “eos8d”
Subject: monit alert — Exists tomcat

Exists 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 11582

Your faithful employee,
monit

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