PHP Classes

File: readme.md

Recommend this page to a friend!
  Classes of Istvan Dobrentei   PHP Server Monitor Script   readme.md   Download  
File: readme.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Server Monitor Script
Check if a server is working well using Websockets
Author: By
Last change:
Date: 5 years ago
Size: 1,005 bytes
 

Contents

Class file image Download

Live Server Monitoring

A websocket solution for live server performance monitoring.

Usage:

There are two parts: - server (see: server.php), minimum PHP 7.0 version required setup the config file and run in the background - client (see: index.html) Set the server ip address, port number and click on the start button. Using the HTML5 websocket feature the Google chart shows the current time based server data Live.

Benefits:

The server provides periodically the system informations and send them to the connected clients. It is more efficient than ajax polling requests because the connected client number doesn't add extra work for the system. If there aren't any connected clients it doesn't generate data on the server.

Future todos:
  • setup a token and accept only connections with that
  • putting the whole solution behind a password protected site
  • adding more performance data
  • selecting more charts on the client side
  • store data in nosql database
  • alarm functions
  • etc...