Skip to content

A simple package for viewing the 'top' output of multiple machines on a single wegpage.

License

Notifications You must be signed in to change notification settings

UCLA-StarAI/simple-top-viewer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Top Viewer
-----------------

This is a simple package for viewing the 'top' output of multiple machines on a single webpage.

It works as follows:

* it assumes all machines have access to the same directory (e.g. NFS mounted)
* crontab.txt contains a crontab entry that needs to be set on each monitored machine (no root required)
* stats.py is run by crontab on each machine separately, it writes the output of 'top' to a <machine>.dat file (in the shared directory)
* index.php reads all .dat files and shows an overview in HTML


This code is a dump from what has been running in [our research group](http://dtai.cs.kuleuven.be/) for years. Many things are configurable but currently inlined, as that is how the code grew.


How to test
-----------
* Unpack in a working folder of your (php-aware) webserver
* run ./stats.py to generate at least one .dat file
* browse to the correct location on your webserver

Improvements and patches welcome.

About

A simple package for viewing the 'top' output of multiple machines on a single wegpage.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 60.0%
  • Python 38.8%
  • CSS 1.2%