Skip to content
Weathermap for Observium
Branch: master
Clone or download
Tobias Rehn
Tobias Rehn Merge pull request #1 from rinsekloek/master
addslashes with ifAlias in javascript onclick
Latest commit b65eb7d Jul 26, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
configs Modifying files Nov 3, 2015
docs Modifying files Nov 3, 2015
editor-resources Modifying files Nov 3, 2015
images Modifying files Nov 3, 2015
lib Modifying files Nov 3, 2015
README.md Update README.md Jun 30, 2017
changes.diff Modifying files Nov 3, 2015
check-gdbug.php Modifying files Nov 3, 2015
check.php Modifying files Nov 3, 2015
data-pick.php addslashes with ifAlias in javascript onclick Jul 20, 2017
editor.php Modifying files Nov 3, 2015
index.php
map-poller.php Modifying files Nov 3, 2015
navbar-custom-old.inc.php Modifying files Nov 3, 2015
navbar-custom.inc.php Modifying files Nov 3, 2015
overlib.js Modifying files Nov 3, 2015
weathermap Modifying files Nov 3, 2015

README.md

  1. Install the Weathermap in the Observium / LibreNMS folder
    cd /opt/observium/html 
    git clone https://github.com/tobzsc/weathermap-for-observium.git weathermap
  1. Edit data-pick.php and make sure the variables at the start are all ok.

  2. Within editor.php, make sure you set $ENABLED=true and check the correct url for $weathermap_url;

  3. Make the configs directory writeable by your web server, either chown apache:apache configs/ or chmod 777 configs (I'd highly advise you choose the first option, replace apache:apache with your web servers user and group.)

  4. Point your browser to your install /weathermap/editor.php (i.e http://testurl.org/weathermap/editor.php)

  5. Create your maps, please note when you create a MAP, please click Map Style, ensure Overlib is selected for HTML Style and click submit.

  6. Enable the cron process:

    */5 * * * * /opt/observium/html/weathermap/weathermap --config=/opt/observium/html/weathermap/configs/config.conf --image-uri=http://testurl.org/weathermap/maps/config.png 2>/dev/null 1>/dev/null
  1. If you are installing this into Observium then you can use the navbar-custom.inc.php by putting it into /opt/observium/html/includes/.

**** IMPORTANT SECURITY *****

It is highly recommended that you set $ENABLED=false in editor.php when you are not editing maps as this is accessible by anyone unless you secure it via .htaccess or your web server config.

You can’t perform that action at this time.