Small python script to generate a HTML page of multiple livestatus instances map
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.
Python >= 2.6
argparse >= 1.1
simplejson >= 2.1.1
-
cp -r alerts.js index.html images /somewhere_on_your_server/
-
cp alertsmap.py /bin_dir_somewhere_on_your_server/
-
edit a configuration file like the following the one in docs/alertmaps.sample.conf
-
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
-
-
-
-
-
edit /somewhere_on_your_server/config.js and modify the parameters according to what you want to display