One thing you definitely don’t want to happen to your server is for it to run out of disk space, especially the root partition.
There are lots of pieces of open source monitoring software, a popular one being monit.
Below is a quick guide to installing monit and generating alert e-mails for disk space and cpu/memory usage. The installation was done on a SysAdminMan VPS running CentOS 5.5
First download and compile the software –
If the ‘make’ fails you may need to install the following requirements –
Next generate a configuration file. The alert thresholds should be fairly self explanatory, there are many more options –
Next we are going to set the desired e-mail alert address. Don’t forget to change it to your e-mail address! –
and now we just set monit to start when the system it restarted and fire it up –
A good idea is to temporarily set the disk space alert to something low (say 1%) and ensure that the monit alerts are working.