Wednesday, 28 April 2010

Looking for a free server load monitoring utility which will email you about the load on the server on a frequent interval ?

CRONJOB is the Answer …..

create a cronjob from the uptime command if thats all you need.

crontab -e
* */1 * * * (cd /usr/bin; ./uptime 2>&1 | mail -s “System load” your.email.com)

The above example will email the load and uptime to you every hour. “System load” is the email subject and of course change your email to your real address.

You can mail yourself a report the same way with any command you like such as netstat, ps and top or anything you like.

No comments:

Post a Comment