« Home | Useful Kernel manipulation commands » | Saturation of open files in the system » | Set up Auto-Logout for root user » | 20 Linux System Monitoring Tools Every SysAdmin Sh... » | How to send email from the Linux command line » | Installing rrdtool using yum on CentOS » | How to configure TCP/IP filtering in Windows 2000 » | Hardening CentOS 5 » | PacMan: THE LAST FIGHT » | How To: Transfer your PuTTY settings between compu... » 

Wednesday, July 21, 2010 

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

 http://kb.bobcares.com/

Add to Google

The Author

  • Nick Perrydoo
  • Spawn at Philippines
My profile

Links


Read Ons

Article of the Day

This Day in History

Today's Birthday

In the News

Quotation of the Day

Word of the Day


Powered by Blogger
and Blogger Templates
© Copyright 2006 Ba-zoo-ra - All Rights Reserved.