View on GitHub

psmonitor

Monitor a server using psutil (python) + MongoDB + JavaScript for graphics

Download this project as a .zip file Download this project as a tar.gz file

psmonitor

Monitor a server using psutil (python) + MongoDB + JavaScript for graphics

The data capture program runs in a cron job, inserting new data into a Mongodb capped collection.

When you load the psmonitor.html file, psmonitor.js is loaded. The javascript makes an ajax call to get the appropriate data from Mongodb and the data is graphed as a time series.

Requires

* mongodb installation
* pymongo python package
* psutil python package
* python 2.x
* jquery + jqplot
* web server to serve mongo data via ajax. (bottle example included)

Run psmonitor.py in a cron job, something like this to run every 5 minutes::

*/5 * * * * /usr/local/bin/python /usr/local/bin/psmonitor.py

Similar Projects

psdash layer7-psdash

Screenshots

The following two screenshots are examples of the output from psmonitor. The complete list of charts, as configured:

example 1 screenshot

example 2 screenshot