Welcome to WebmasterWorld Guest from

Forum Moderators: bakedjake

Message Too Old, No Replies

Logging server load averages

script to log load



8:17 am on Mar 26, 2009 (gmt 0)

5+ Year Member

Does anyone know of a way to log server load averages throughout the day - say every 15 minutes so I can see the load averages throughout the day.

A php script I could cron or server script/utility for this type of thing.


8:37 pm on Mar 26, 2009 (gmt 0)

WebmasterWorld Senior Member wheel is a WebmasterWorld Top Contributor of All Time 10+ Year Member

I expect there's 50 ways to do this, but something like
as a cron job would give you an outline I think.


10:30 pm on Mar 26, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

Here's a sime crontab entry to do it:

0-59/15 * * * * logger `uptime`


12:29 pm on Apr 6, 2009 (gmt 0)

5+ Year Member

if you want a bit more heart beat information like load, free memory, temperature, service availablity, connection status etc etc you may consider using the free zabbix.
I am using it and I am quite happy - tho it requires some linux experience to set it up

it supports a ton of sensors plus own triggers, error notification by mail and also shows nice graphs for people which prefer a graph over numbers :)

[edited by: bakedjake at 2:50 pm (utc) on April 8, 2009]
[edit reason] url drop [/edit]


7:10 pm on Aug 3, 2009 (gmt 0)

5+ Year Member

Following on mfeldheim's response -- there are a number of good tools out there to facilitate logging/displaying/graphing load averages etc. They generally vary by the complexity and versatility -- ideally, chose one that isn't too much of a pain to get going, and which provides decent flexibility once configured. Some options:

Munin [munin.projects.linpro.no] -- very versatile.
Scout [scoutapp.com] -- very simple to get started with and configure.
Nagios [nagios.org] -- somewhat intimidating in its breadth, but very flexible.

All these use an open-source plugin model to monitor a variety of stats. My guess is that once you've got load averages logging working, there are other metrics you're going to want to see alongside it, like disk I/O CPU utilization.

[edited by: bakedjake at 5:51 pm (utc) on Aug. 5, 2009]
[edit reason] fixed url [/edit]


4:10 pm on Aug 5, 2009 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

welcome to WebmasterWorld [webmasterworld.com], lewisac!

Featured Threads

Hot Threads This Week

Hot Threads This Month