GithubHelp home page GithubHelp logo

chnsin365 / psmonitor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tiarno/psmonitor

0.0 1.0 0.0 280 KB

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

License: MIT License

Python 38.16% HTML 17.83% JavaScript 44.01%

psmonitor's Introduction

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

psmonitor's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.