Logging server load to /var/log/messages

There can be issues when the server goes offline and you can’t find any related log entries in the server. One of the issue that can cause is high load in the server. But we wont be able to conclude whether the load was the exact issue after the server reboot.

The better solution to find the load is set a cronjob to enter the load in the server to /var/log/messages for a particular amount of time. A sample cron is shown below which will log the server load every 10 minutes to /var/log/messages.

*/10 * * * * uptime | logger -t “SERVER LOAD”

Now you will be able to get the load from /var/log/messages

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.