Keeping tabs on our server ...

Rolling Server Status

What does the data mean? ... Here is a sample:
5 • 11:08:59 • 4 5 6 8 8 4 5 6 8 6 • 26 d 7:48 • 1 user • 0.17, 0.22, 0.19

5 - 5th record in the current run / sequence
11:08:59 - report time hours, minutes, seconds on the server
4 5 6 ... 6 - 4 logged URLs requested in last 10 seconds, 5 in previous 10s ...
26 d 7:48 - the time the server has been running (d=days)
1 user - there is one person logged in to maintain the server
0.17, 0.22, 0.19 - server load averages for last 1 5 & 15 mins (per uptime)

A fresh line is added to the server status above every 10 seconds. For the purpose of this demonstration, we have limited the updates to 20 times, and we are displaying just the last eight reports at any time. There's no reason in principle while you could not run this as a continual monitor.

This example uses Ajax technology (client side Javascript interacting with PHP on the server via an XMLHttpRequest object) to allow the page to be dynamically updated - prior to this use of JavaScript and the XMLHttpdRequest object, such interaction was impractical and you had to use HTML frames, or reload the whole page. These techniques are taught on our PHP Techniques Workshop. We also offer some early Javascript / Ajax tutorials on line, starting here

Training sample © 2024, WELL HOUSE CONSULTANTS LTD
This is http://www.wellho.net/demo/ajaxstatus.html
See source code here • More examples - same topic here
Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
Phone: +44 (0) 1225 708 225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net