HLICT
6 June 2017 03:00
1
So I’ve installed the Weathermap plugin, and I can use the editor to create a map an populate it with some nodes and links.
The test map I created appears as /opt/librenms/html/plugins/Weathermap/configs/testmap.conf
Now what? How do I get this map updating and how do I view it?
1 Like
Have you followed all the install doc:
1. Extract to your LibreNMS plugins directory html/plugins so you should see something like /opt/librenms/html/plugins/Weathermap/
The best way to do this is via git. Go to your install directory and then html/plugins.
Enter:
git clone https://github.com/librenms-plugins/Weathermap.git
2. 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.
3. Enable the plugin from the LibreNMS Plugins -> Plugin Admin menu.
4. Create your maps, please note when you create a MAP, please click Map Style, ensure Overlib is selected for HTML Style and click submit.
5. Also, ensure you set an output image filename and output HTML filename in Map Properties.
I'd recommend you use the output folder as this is excluded from git updates (i.e enter output/mymap.png and output/mymap.html).
6. Enable the cron process by editing your current LibreNMS cron file (typically /etc/cron.d/librenms) and add the following:
LibreNMS:
*/5 * * * * root /opt/librenms/html/plugins/Weathermap/map-poller.php >> /dev/null 2>&1
7. If you need to, set $basehref within map-poller.php if your install is in another directory than standard.
If so, files should be created in the output directory if you’ve followed the docs, you can then go to that in a browser.
HLICT
6 June 2017 20:21
3
That’s the info I was missing. I’m new to Git and didn’t realise .md was a doctype, so I’d missed this.
Might be worth including this in the docs dir?
Anyhow, thanks you very much. Can’t be much fun hand-holding dumb noobs like myself
Hello,
there are some steps you have to do:
enter in editor of weathermap -> map properties -> enter there output HTML and IMAGE
i have:
output/mymap.png
output/mymap.html
after that you can test your config using the command (in server - SSH):
cd /opt/librenms/html/plugins/Weathermap
./weathermap.php --config configs/test.conf --output output/mymap.png --htmloutput output/mymap.html
instead of test.conf you put the name of your conf-file you created before you enter editor in weathermap.
don’t ask me too much because i’ve gotten only this far… now i have to debug other errors
hope this helps