Monitor a server using psutil (python) + MongoDB + JavaScript for graphics
JavaScript Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
images
.gitignore
LICENSE
README.md
bottle_example.py
psmonitor.html
psmonitor.js
psmonitor_data.py

README.md

psmonitor

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

Full documentation here: http://tiarno.github.io/psmonitor

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:

  • CPU User Percent
  • CPU System Percent
  • CPU IRQ
  • CPU Nice Percent
  • CPU Idle Percent
  • Disk Free Space
  • Memory Free Space

example 1 screenshot

example 2 screenshot