have you experimented with the WeatherMapper plugin ? I got it to work and do a couple of maps, but it has some issues. For example, hovering on a link would not show the traffic graph, and clicking on a link does not do anything.
More on this, I noticed that the links sometimes would show the load (color change) and sometimes would turn gray as if zero traffic is passing. I know that is not the case as I can see some links between our switches have constant traffic, and can’t be zero. See example below:
You can see the link being hovered on. The graph shows clearly constant traffic at around 200 mbps, while the link itself is gray with Zero traffic label.
When I run the map-poller.php manually I see the following errors (few examples below) :
WARNING: configs//vmware-cluster.conf: ReadData: LINK sw81.rai.xxxxxx-node03.xxxxxa, target: ./sw81.xxxxxx/port-id4241.rrd:INOCTETS:OUTOCTETS on config line 475 of configs//vmware-cluster.conf had no valid data, according to WeatherMapDataSource_rrd
WARNING: configs//vmware-cluster.conf: ReadData: LINK sw22.rai.xxxxxx-artemis.xxxxxx, target: ./sw22.xxxxxx/port-id3193.rrd:INOCTETS:OUTOCTETS on config line 483 of configs//vmware-cluster.conf had no valid data, according to WeatherMapDataSource_rrd
WARNING: configs//vmware-cluster.conf: ReadData: LINK sw27.xxxxxxx-aiolos.xxxxxxx, target: ./sw27.xxxxxxx/port-id3175.rrd:INOCTETS:OUTOCTETS on config line 490 of configs//vmware-cluster.conf had no valid data, according to WeatherMapDataSource_rrd
There is a clear inconsistency in updating the Links on the map as they frequently show Zero value, where they shouldn’t. Showing Link values seems to be sporadic and i’m not sure if the issue is caused by the warning shown above.
Below is a sample of a link that shows Zero value, while in fact this link is a connection between two core switches and never has zero traffic. Every few refresh cycle, the link would show a value, but then it goes to zero again.
Usually if you use rrdcached some values are still not written to the rrd files and are still in the rrdcached queue.
I deal with this sending a FLUSHALL command before the weathermap poller. It could be something like this: echo 'FLUSHALL' | nc -w 3 YOUR_RRDCACHED_SERVER 42217 >> /dev/null 2>&1 sleep 60 /opt/librenms/html/plugins/Weathermap/map-poller.php >> /dev/null 2>&1
I will make /when I have some time/ a list of the rrd files which I need to actually FLUSH for the weathermap and not FLUSHALL. But for now the flushall works.
Yes, your rrdcached server. To know which server you use, check out the setting $config['rrdcached'] in config.php
In your case this could be the server where you’ve installed LibreNMS. In my case is a separate server.
in the cron you can add the flush command before the weathermap poller and append a sleep. Or do it like in this post: Weathermap links report "no valid data" with distributed poller (rrdcached)
I put in these two cron lines and now some of my overall traffic graphs are not showing up. System is giving me “Error Drawing Graph:” error. I’ve restarted the servers but it doesn’t seem to fix the issue. Its only showing this error for a few devices not all of them.
I am struggling with Weathermapper as I am un-able to generate any automated weathermap. I have installed both the plugins and when I run php weathermap.php command from the console using “librenms” user. it gives error “No links found for home-network-example, please ensure LibreNMS auto-discovery is enabled and working.”.
Oh man it’s been a while since i’ve deployed WeatherMaps in our LNMS.
Let me dig our server history to remember what I had to do at the time.
One thing I remember, the auto generated maps weren’t really helpful in terms of how I wanted my weathermaps to look like, and what devices/connections I wanted to visualize. So I opted for manual creation (design, add devices, add connections, etc.).
I also noticed that the error you got complains about LNMS auto-discovery might not be enabled. Have you looked into this ?
Now inside Weathermap directory, you should see “configs” directory , which holds your actual weathermap maps:
-rw-r--r-- 1 librenms librenms 25K Feb 18 2020 AIOLOS_SLOT_01.conf
-rwxrwxrwx 1 librenms librenms 12K Jun 29 14:09 backup-servers.conf
-rw-r--r-- 1 librenms librenms 7.3K Mar 13 2020 BGW_DC01-UPSTREAM_2.conf
-rw-r--r-- 1 librenms librenms 8.1K Feb 26 2020 BGW_DC01-UPSTREAM.conf
-rw-r--r-- 1 librenms librenms 8.9K Feb 21 2020 FRA.conf
-rwxr-xr-x 1 librenms librenms 33 Feb 13 2020 .htaccess
-rw-r--r-- 1 librenms librenms 51 Feb 13 2020 index.php
-rw-r--r-- 1 librenms librenms 27K Feb 20 2020 RAI-ROUTER_CONNECTIONS.conf
-rw-r--r-- 1 librenms librenms 23K Feb 20 2020 RAI-SWITCH_CONNECTIONS.conf
-rw-r--r-- 1 librenms librenms 11K Feb 19 2020 RAI-UPSTREAM.conf
-rw-r--r-- 1 librenms librenms 25K Feb 18 2020 ROUTER_BLADE_48-Ports.conf
-rw-r--r-- 1 librenms librenms 23K Feb 18 2020 ROUTER_CONNECTIONS.conf
-rw-r--r-- 1 librenms librenms 21K Feb 18 2020 SWITCH_CONNECTIONS.conf
-rw-r--r-- 1 librenms librenms 1.5K Feb 18 2020 TestMap2.conf
-rwxrwxrwx 1 librenms librenms 21K Feb 20 2020 vmware-cluster.conf
-rw-r--r-- 1 librenms librenms 5.4K Feb 18 2020 vmware-vms.conf
Inside that directory, create a file named testmap.conf (or .conf) and see if you can then find/edit it from LNMS Weathermap plugin page. Note my TestMap2.conf :
If it shows “Read Only”, you might want to change the file attributes to allow Read/Write for everyone to be able to edit it.
Now click on the file to open it for editing (adding hosts, connections, labels, etc).