Lightweight script for monitoring disk space, ports, etc.?

Solution 1:

You can use Monit: http://www.ubuntugeek.com/monitoring-ubuntu-services-using-monit.html

It's lighter weight than Nagios, and it will do alerts and service mending. The drawback is that it's not as flexible as Nagios, and you may need something to monitor Monit (i.e., if it dies, you won't be doing any monitoring, as opposed to Nagios, which can do active checks against NRPE hosts).

Solution 2:

You can use one of the free monitoring services (pingdom, etc) and use a simple script as sensor, see for example http://blog.alertfox.com/2011/01/monitoring-disk-space-and-other-status.html

This way you get detailed reporting with very simple scripts.

Solution 3:

well it is not hard to write it yourself, just make a perl script that does basic commands and uses some regex to get your information, drag it into your master computer, compair it to your tresshold and do something ( email ) when you pass it.

Add it to cron and your off :)

however, if you want something comprehensive, get munin, nagios or cacti send an email to install the packages.

Solution 4:

Probably the best commercial solution is Status2K. It's a PHP script and you'll need access to a MySQL database as it stores Bandwidth and CPU/Memory history.

enter image description here