Some Weathermaps not updating

Support questions about the Network Weather Map plugin

Moderators: Moderators, Developers

Post Reply
Posts: 1
Joined: Tue Mar 20, 2018 10:22 pm

Some Weathermaps not updating

#1 Post by ngoclinh23 » Tue Mar 20, 2018 10:29 pm

I have been running Cacti and weathermap for some time. I recently installed cacti on a newer server. It was running fine until one day I saw a few maps with old create dates on them. 99% are still updating fine. All the maps that show stale create dates actually have updated rrd time stamps and show current rrd graph info. From what I can tell I saw another poller running with the same timestamp of the day that some of the graphs stopped updating. If I check the output directory the html, png, thumb.png files for the graph have the same old timestamp of when the second poller process was found.

Will a rebuild poller cache delete all historical rrd graph data?
Is there a way to regen a single map to fix this issue?
I have tried php weathermap --config mapname.conf but this returned a blank map output when clicked on thumbnail image.

Any info appreciated

Plugin Management Cacti Version: 0.8.7g, Plugin Architecture Version: 2.8
WeatherMap 0.97a

Red Hat Enterprise Linux Server release 6.7 (Santiago)
PHP 5.3.3 (cli) (built: Oct 23 2014 06:58:46)
Server version: Apache/2.2.15 (Unix)

Cacti Guru User
Posts: 3135
Joined: Sun Aug 27, 2017 12:05 am

Re: Some Weathermaps not updating

#2 Post by netniV » Wed Mar 21, 2018 4:34 am

Using Cacti's rebuild poller cache does not affect the actually data. That rebuilds the methods and static parameters used when querying devices. Is it possible someone ran a manual poller? Do all the permissions/ownerships look the same? When you say a second poller, is it running the identical name or does it have a different one?

Howard will be the best to answer questions over Weathermap the best.

User avatar
Cacti Guru User
Posts: 5362
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom

Re: Some Weathermaps not updating

#3 Post by Howie » Wed Mar 21, 2018 5:13 am

Do you mean maps or graphs? Weathermap doesn't update rrdtool files (so no changes to modified times) and doesn't care about the poller cache. This seems to be two different problems...

To regenerate a single map, you can use the command-line tool as you have (you need to specify the filenames for the output too, otherwise it uses weathermap.png and weathermap.html, which isn't what the Cacti plugin is looking for).

Alternatively, there is weathermap-cacti-rebuild.php, but that will run all your maps.

You also need to be careful about file permissions if you run either of these as a user that isn't the normal cacti polller user. In fact, you should probably:

1) check file permissions in the output/ directory. Those files should all be owned by the poller user. If someone has manually run the poller as another user, that could have broken your permissions.

2) check the logs. Weathermap writes (usually) useful errors to the cacti.log file in most cases
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)

Cacti Guru User
Posts: 3135
Joined: Sun Aug 27, 2017 12:05 am

Re: Some Weathermaps not updating

#4 Post by netniV » Wed Mar 21, 2018 6:04 am

To run the commands as your poller user, I use:

sudo -u <poller> <command>

The user can vary depending on the system (for example CentOS it's normally apache, ubuntu cacti or www-data).

Post Reply