Network-WeatherMap with LibreNMS
Integrating LibreNMS with Network-Weathermap, allows you to build network maps to help visulaize network traffic flow rates.
Network-WeatherMap requires php pear to work.
Extract to your LibreNMS plugins directory
so you should see something like
The best way to do this is via git. Go to your install directory and
git clone https://github.com/librenms-plugins/Weathermap.git
Inside the html/plugins directory, change the ownership of the
Weathermap directory by typing
chown -R librenms:librenms Weathermap/
Make the configs directory writeable.
chmod 775 /opt/librenms/html/plugins/Weathermap/configs
Note if you are using SELinux you need to input the following command
chcon -R -t httpd_cache_t Weathermap/
Enable the cron process by editing your current LibreNMS cron file (typically /etc/cron.d/librenms) and add the following:
*/5 * * * * librenms /opt/librenms/html/plugins/Weathermap/map-poller.php >> /dev/null 2>&1
Enable the plugin from LibreNMS Web UI in OverView -> Plugins -> Plugin Admin menu.
Now you should see Weathermap Overview -> Plugins -> Weathermap
Create your maps, please note when you create a MAP, please click Map
Style, ensure Overlib is selected for HTML Style and click submit.
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. use
Optional: If your install is in another directory than standard, set
Automatically generate weathermaps from a LibreNMS database using WeatherMapper.
Adding your Network Weathermaps to the Dashboards
Once you have created your Network Weather Map you can add it to a dashboard page by doing the following.
When you create the Weathermap make sure to export as HTML and PNG you will need this for the out to the dashboard.
In the Weathermap Plugin page, you will see the output maps.
click on one of the maps and click on
copy image address.
Then go back to your Dashboard, create a new dashboard and give it a name. select the widget as External Images.
Give the Widget a Title.
The Image URL will need to be the address you copied but at the end
.html and replace it with
Example Image URL
The Target URL will be the URL you copied but with the
the end of the URL.
Example Target URL
Then Click on Set
You should now be able to see the Weathermap you have created in your list of dashboards. You could also add this to existing dashboards.