Server Status Script

Tiresias Server Status


All of the scripts on this page are released as open source software under the GPL, feel free to do whatever you want with any of the information/source provided on this page. However, it's always nice to hear of people using the script so drop me a line in the Site5 forums, username: g_bowskill. To get the legal stuff out of the way, I accept no responsibility for your use of the scripts provided here, I provide no gurantees of their functionality and you use them purely at your own risk. Apologies for any bugs!

Create Database:

To install the server status script in your own server, you must first setup a database for the server logs history to be held. Once you have setup the database you need to create the table, to do so, simply copy and paste the following sql code into the sql editor in phpadmin.


Create Script:

Next, simply download this file and upload it in a folder on the webserver, making sure you fill in the database details correctly. The folder I use is "public_html/site5". Then rename it to "server_status.php".

How To Use:

To use the script you can use the following methods:

If you wish to display a graph showing load over the last 24 hours (GMT) then simply add "&showgraph=1" on to the end of any of the above urls.

Forums:

If you are trying to link to your script through a forum then you need to upload a .htaccess file to the directory where the server_status.php script is, this is because alot of forums block dynamic images so you need to trick the forum into believing this isn't a dynamic image. Simply create the following ".htaccess" file and upload it into the same directory as the "server_status.php" file.


To ensure this ".htaccess" file works correctly you need to replace SUBFOLDER_NAME with the subfolder name where you have placed the "server_status.php" file. You can now use urls such as:

To show graphs in the above images, simply insert "1/" before "image.gif".

Web Design By Isee Online © 2006