PHP Server Stat Monitor: Monitor machine resources using own Web server

Recommend this page to a friend!
  Info   Documentation   View files (11)   Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 543 All time: 5,469 This week: 282
Version License PHP version Categories
serverstat 1.4BSD License5.3System information, Statistics, Unix, W..., W...
Description Author

This package can monitor machine resources using own Web server.

It starts a Web server that responds to requests to retrieve the information on the server machine resource usage like CPU load, memory usage, swap space usage, RAM usage, etc..

The package can monitor resource usage on either Linux/Unix or Windows machines.

The resource usage values are returned as Web responses encoded in JSON format.

The IP address and port that the Web server are configurable parameters.

Innovation Award
PHP Programming Innovation award nominee
February 2015
Number 4

Prize: One subscription to the PDF edition of the PHP Architect magazine
Checking the usage of resources on a machine is a recommended procedure to detect problems that may be happening on the machine.

This class can check the usage of resources on a machine and provide that information by the means of a Web server started by the class.

This way the class can be used to monitor the resource usage of a machine without using another Web server that may be running on the machine or not.

Manuel Lemos
Picture of Sergey Vanyushin
  Performance   Level  
Name: Sergey Vanyushin is available for providing paid consulting. Contact Sergey Vanyushin .
Classes: 15 packages by
Country: Russian Federation Russian Federation
Age: 24
All time rank: 61319 in Russian Federation Russian Federation
Week rank: 61 6 in Russian Federation Russian Federation
Innovation award
Innovation award
Nominee: 15x

Winner: 2x



Composer package ServerStat is a server monitoring software that tracks cpu, mem and swap.

It's a web server and daemon that saves monitoring statistics and allows access it via ajax request.

serverstat is a standalone web server that reads data from storage and outputs it in web. serverstatd is a daemon that keeps system information and stores it in storage.


File serverstat.conf: storage* - can be file only. period* - time between checks system status. typeperf* - a counter name for typeperf utility.


Run daemon serverstatd. Run server serverstat and provide port (if you want) of server: serverstat --port 83.

Typical serverstat response on any request is:

File Role Description
bin (2 files)
src (5 files)
composer.json Data Auxiliary data
LICENSE Data Auxiliary data Doc. Auxiliary data
serverstat.conf Data Auxiliary data

  Files  /  bin  
File Role Description
   serverstat Appl. Auxiliary data
   serverstatd Aux. Auxiliary data

  Files  /  src  
File Role Description
   ConfigurationReader.php Class Class source
   InformationCollector.php Class Class source
   Storage.php Class Class source
   WebServer.php Class Class source
   WindowsInformation.php Class Class source

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:5,469
This week:282

For more information send a message to info at phpclasses dot org.