Showing Server Load As A Graph With PHP

Along side yesterdays blog post regarding Tweeting out your server status, there are more proactive ways of keeping an eye on whats happening. One of my favorites is showing the server load as a graph/progress bar thing.

Showing the server load alone is pretty nice, however with a little help from jQuery, we can make it bloody epic! – Showing it in real time.

index.php
[php]


[/php]

load.php
[php]
$int)
$status_i[$k]=(($int<0.25)?'green':(($int<0.75)?'orange':'red')); ?>

Current Load: %