monit-shared are some drop in scripts for monit.
monit is a free, open source process supervision tool for Unix and Linux. http://mmonit.com/monit/documentation/
monit-shared a library of basic monitoring scripts for standard services on Linux. The intention is to include the 80% of the 80/20 rule out of the box.
The monit scripts and the installer have only tested on a single CentOS 5.x box. This assumes redhat package filesystem paths, so should work anywhere with similar to rhel sementics and fs layout.
You can pick and mix from the available scripts, by linking the individual them in step 3, or you can install them all in that step.
Alternatively there is an install script which will try to link the scripts matching services configured to run at init level 3 as detected by chkconfig.
# sudo git clone git@github.com:nuriyadin/monit-script.git /usr/share/monit-shared
# sudo chmod +x /usr/share/monit-shared/install.sh
# sudo /usr/share/monit-shared/install.sh
added chef-server
Control file syntax OK
-
clone or export the project into your server;
# sudo git clone git@github.com:nuriyadin/monit-script.git /usr/share/monit-shared
-
review the scripts for anything interesting
$ ls -1 /usr/share/monit-shared/monit.d chef-client.conf chef-server.conf openldap-server.conf
-
either install all the scripts, and get deluged with alerts;
# sudo ln -s -t /etc/monit.d/ /usr/share/monit-shared/monit.d/*
Or just link the ones you want to monit;
# sudo ln -s /usr/share/monit/monit.d/chef-client.conf /etc/monit.d/chef-client.conf
-
check the config and restart monit;
# monit -t Control file syntax OK
-
restart monit.
# service monit restart Stopping monit: [ OK ] Starting monit: Starting monit daemon with http interface at [*:2812] [ OK ]