A 10 minute script to graph your server load

I needed to monitor the load on my web server like, right now, so I wrote this script

For referencing: permalink to this article. Published • 16 Sep 2011

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

blog comments powered by Disqus