A fork of https://github.com/adriaaah/monit-dashboard that has been updated for latest web.py and python3
Find a file
2020-01-26 23:49:29 +01:00
bin changes based on feedback 2019-12-10 11:12:50 +04:00
conf Fix #1 - Typo in example config file 2017-03-01 09:03:03 +01:00
static Revert "Beautify" 2020-01-26 23:49:29 +01:00
templates Revert "Beautify" 2020-01-26 23:49:29 +01:00
tests Initial commit 2017-01-07 12:46:50 +01:00
.gitignore changes based on feedback 2019-12-10 11:12:50 +04:00
__init__.py Initial commit 2017-01-07 12:46:50 +01:00
LICENSE Initial commit 2017-01-07 12:38:10 +01:00
README.md Merge pull request #11 from saravanan30erd/download_report 2019-12-11 21:35:14 +01:00

Monit Dashboard

Description

Python web application to get a dashboard of a bunch of Monit servers at a glance.

How does it work?

Every 300 seconds (hardcoded) the application ask for the data served by the Monit built-in web server in a XMl report from each configured server. Then, thanks to the built-in web server, it is displayed in a single HTML page.

Pre requisites

Debian GNU/Linux

Web.py framework

  • apt install python-webpy

Python libraries

  • apt install python-xmltodict python-requests

CentOS

Python PIP

  • yum install epel-release
  • yum install python-pip

Web.py framework

  • pip install web.py

Python libaries

  • yum install python-requests python-xmltodict python-simplejson
  • pip install xlsxwriter

Requisites

  • Config file conf/servers.json prior run. You might find a sample file at conf/servers.json.example.
  • Please see Config section for further details.

Run

./bin/monit-dashboard.py

By default, it will be reachable at http://localhost:8080. You might change the port by adjusting app.run(port=8080) in bin/monit-dashboard.py file.

References

Config

  • Placed in conf/servers.json

  • Sample settings as follows:

    {
    "My server to monit": {
      "url": "http://example.com:2812",
      "user": "monit",
      "passwd": "*****"
      }
    }
    

Credits

License

AGPL