Monit Aggregator - A Sinatra interface for Monit

I use Monit to keep an eye on server processes and restart them if they go down. It comes with a useful web interface that gives you an overview of your servers health, and what processes are up/down. If you have a lot of servers then it can be a bit of a pain because you have to access each web Interface with a different URL.

This weekened I wrote a Sinatra app that aggregates the data from each web interface and displays it all on one page. The source is on Github.

It currently does not support HTTPS, and it only currently displays the overall system and individual processes.

 

To get going, install the dependant gems

gem install sinatra nokogiri haml

 

Now clone the repo

git clone git://github.com/mattfawcett/monit-aggregator.git

 

Then edit the monit_installations.yml file to include the details of each of your Monit web servers. To start the app running just type

ruby app.rb

 

Open your browser to http://yourdomain.com:4567

Alternatively you could run with Passenger.

There is also a free hosted version available on my server monitoring site Runs Like Clockwork

Posted by Matt Sun, 05 Jul 2009 16:41:00 GMT


Trackbacks

Use the following link to trackback from your own site:
http://matthewfawcett.co.uk/trackbacks?article_id=10

Comments

  1. Avatar
    Michael D'Auria 21 days later:

    Out of curiosity, why not use M/Monit?