Skip to content

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

License

Notifications You must be signed in to change notification settings

tiarno/psmonitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

psmonitor

Note: The master branch is an update from python2 to python3. The python2 branch corresponds to the earlier version that goes along with the previous article.

The code here corresponds to the new article

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.

Requires

* mongodb installation
* pymongo python package
* psutil python package
* python 3.x
* NodeJS (example server included)

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

*/5 * * * * /usr/local/bin/python /path/to/load_data.py

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published