Geeky Nuggets

A 10 minute script to graph your server load

September 17, 2011 | 1 Minute Read

This is a quick and dirty PHP script that I whipped up in about 10 minutes, used to show the load averages on the server where it is uploaded.

Here are the load curves for the server that hosts most of my websites at the moment. It is an overworked shared server, which explains why all the curves are through the roof…

The load is updated every minute with a crontab that calls this same script.

The visualization is done using the Google chart API, which does require javascript but offers some great chart options, the “annotatedtimeline” being especially suitable to my purpose.

Get the source on github

installation and project details