I am writing this post mainly to publish a very small perl script I wrote to check the health of some server I own.
The script is very simple but useful, it generates output suitable for monit. There are many articles and reviews about this software, so I'm not writing anything else about it here, except that I like it very much because it is exactly the thing you need when you manage many servers.
Run the script by writing on the command line all hosts you want to check, either their names or IP addresses. It will generate a monit.d folder, containing a file for each host. These files contains all the information needed to check that their ssh port is accessible. Copy these file in /etc/monit.d, remember to add
include /etc/monit.d/*
to your /etc/monitrc file, and then start (or restart) monit itself.
If you give a look at the script, there's a line commented in it to enable also ICMP echo checks, in case you need it.
The script can be downloaded here.
Wednesday, August 8, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment