I can see it being passed --daemon:
php ./weathermap.php --config configs//CheyenneCircuits.conf --base-href /plugins/Weathermap/ --chdir /opt/librenms/rrd --daemon 127.0.0.1:42217
Yet, still it complains that many rrd" had no valid data, according to WeatherMapDataSource_rrd" which they don’t, because my timeout is 1800. Is not some manner of communication with rrdcached supposed to prevent this?
Thank you for your time.
I should have looked at bugs first. I guess I’ll look at the code, but I ain’t none php’ good.
opened 03:52PM - 12 Mar 18 UTC
So I have a web front-end that polls, a second regular cronjob poller, and two s… ervers that run the `librenms-poller-service`. The last server is a SQL server that runs `memcached`, `rrdcached`, and of course the SQL backend. The SQL server is also the NFS host of the RRD files for all 4 pollers.
When I run the map poller regularly, I get a lot of links with 0's reported for traffic in the links. When checked with rrdtool, it is in fact missing data for the 800 second time frame. When I run `/opt/librenms/html/plugins/Weathermap/weathermap.php` with the additional `--chdir /my/rrd/path`, I get a lot more values filled in, but many are missing. I tried adding the `--daemon ip.of.my.server:42217` and it didnt seem to help, like it can't read anything in `rrdcached`.
If i change the config on `rrdcached` to `WRITE_TIMEOUT=720` and `WRITE_JITTER=360`, I'm then able to get 90% of my links populated with traffic on the map. I saw that `WeatherMapDataSource_rrd` reads back the last 800 seconds of an rrd, so it seemed the only way to get data to come through was to neuter my rrdcached setup.
TL;DR - How do I get Weathermap to accurately read rrd values from rrdcached when Weathermap is on a different server from the rrdcached server?
A quick socket call to FLUSHALL can make weathermap work a couple minutes after. Can cron that, but not exactly a good work around.