Monitor a server using
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.js is loaded.
and the data is graphed as a time series.
* 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
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