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