Navigation
|
Linux Server Stats
Obtain uptime/load average details for your machine
GZipped Archive
Download (9KB)
This is a very, very simple script which allows you to display the uptime and load average from your Linux box on your website. The uptime and load average values are retrieved from /proc/uptime and /proc/loadavg. The uptime() function returns a string in the format "3 months, 2 weeks, 4 days, 2 hours, 30 minutes". The loadavg() function returns the load average for the past 1, 5, or 15 minutes, and information about the number of running tasks and processes. Obviously, this script requires Linux, and will not function under Windows. Downloads: 2236
Added: Dec 13, 2005 11:48 PM
Last updated: Dec 13, 2005 11:48 PM
|