Welcome to WebmasterWorld Guest from 54.163.49.19

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)

Junior Member

5+ Year Member

joined:Aug 6, 2007
posts:78
votes: 0


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)

Senior Member

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

joined:Feb 11, 2003
posts:5063
votes: 11


I expect there's 50 ways to do this, but something like
vmstat>outputfile.txt
as a cron job would give you an outline I think.
10:30 pm on Mar 26, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 20, 2004
posts:875
votes: 2


Here's a sime crontab entry to do it:

0-59/15 * * * * logger `uptime`
12:29 pm on Apr 6, 2009 (gmt 0)

New User

5+ Year Member

joined:Apr 6, 2009
posts:1
votes: 0


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)

New User

5+ Year Member

joined:Aug 3, 2009
posts: 2
votes: 0


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)

Administrator

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

joined:Aug 10, 2004
posts:10542
votes: 8


welcome to WebmasterWorld [webmasterworld.com], lewisac!
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members