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)
Some Weathermaps not updating
Moderators: Developers, Moderators
Re: Some Weathermaps not updating
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.
Howard will be the best to answer questions over Weathermap the best.
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Some Weathermaps not updating
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
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!)
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!)
Re: Some Weathermaps not updating
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).
sudo -u <poller> <command>
The user can vary depending on the system (for example CentOS it's normally apache, ubuntu cacti or www-data).
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Who is online
Users browsing this forum: No registered users and 6 guests