Server Load PHP Script PHP Script by Mike Challis
More Info        - www.642weather.com/weather/scripts-server-load.php
Download         - www.642weather.com/weather/scripts/server-load.zip
Live Demo        - n/a (this script should not be installed in public view, or should be password protected)
Free PHP Scripts - www.642weather.com/weather/scripts.php
Contact Mike     - www.642weather.com/weather/contact_us.php
Donate:          https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2319642


Version: 1.01 - 21-Jul-2009  see changelog.txt for changes

Support thread at weather-watch forum:
http://www.weather-watch.com/smf/index.php/topic,40999.msg334563.html

You are free to use and modify the code

This php code provided "as is", and Long Beach Weather (Michael Challis)
disclaims any and all warranties, whether express or implied, including
(without limitation) any implied warranties of merchantability or
fitness for a particular purpose.

-----------------------------------------
Usage
-----------------------------------------

This PHP script can check the server load and disk usage for your Linux web site.
Tested on LINUX. Windows is currently NOT SUPPORTED.
Requires permissions to use "exec" command in PHP.
If "exec" command is disabled in PHP, this script cannot be used.


1) Settings: (optional)
If you know your servrr account path, this can check the disk usage. 
Set the setting inside the script to enable checking your server path.
 
2) Upload this php file to your web server

4) Test from a URL, see if you can see the HTML output
Example: http://www.yoursite.com/server-load.php

Note: For temporary diagnostic use only.
For security reasons, do not leave permanently installed in public view.
Or you could put it in a directory and protect it with a password.

-----------------------------------------
About Server Load
-----------------------------------------
Server Load Averages from TOP: 0.69, 1.03, 4.37 (sample)

Load averages are for the past 1, 5, and 15 minutes.

The triplet is intended to provide you with some kind of information about 
how much work has been done on the system in the recent 
past (1 minute), the past (5 minutes) and the distant past (15 minutes).

High load averages usually mean that the system is being used heavily and the response time is correspondingly slow.
What's high? ... Ideally, you'd like a load average under, say, 3.
...different systems will behave differently under the same load average. 
running a single cpu-bound background job can bring response to a crawl even though the load avg remains quite low.

In this example, the server was working hard 15 minutes ago, but is OK now.

-----------------------------------------
Live Example
-----------------------------------------
 n/a (this script is for temporary diagnostic use and should not be permanently installed in public view)
Please view the included server-load-sample.png for an example.


-----------------------------------------
Donate
-----------------------------------------
A paypal donate button is on my scripts page
www.642weather.com.com/weather/scripts.php
or use this direct link:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2319642


