Skip to content

Small python script to generate a HTML page of multiple livestatus instances map

Notifications You must be signed in to change notification settings

darkweaver87/alertsmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alertsmap

Small python script to generate a HTML page of multiple livestatus instances map

Overview

The goal of this script is to generate an HTML file to summarize alerts (on the right of the screen, comments on the bottom) and have a clear overview of the alert number in each location. The purpose of this is mainly to have to nice page to display on a monitoring screen.

Dependencies

Python >= 2.6
argparse >= 1.1
simplejson >= 2.1.1

Installation

  1. cp -r alerts.js index.html images /somewhere_on_your_server/

  2. cp alertsmap.py /bin_dir_somewhere_on_your_server/

  3. edit a configuration file like the following the one in docs/alertmaps.sample.conf

  4. setup a cronjob like this one:

            • root python /bin_dir_somewhere_on_your_server/alertsmap.py --conf /somewhere_on_your_server/alertsmap.conf --output /somewhere_on_your_server/data.json > /dev/null 2>&1
  5. edit /somewhere_on_your_server/config.js and modify the parameters according to what you want to display

Screenshot

alertsmap screenshot

About

Small python script to generate a HTML page of multiple livestatus instances map

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published