chnsin365 / psmonitor

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:JavaScript 44.0%Language:Python 38.2%Language:HTML 17.8%