Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun Jan 20, 2019 6:14 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Some Weathermaps not updating
PostPosted: Tue Mar 20, 2018 10:29 pm 
Offline

Joined: Tue Mar 20, 2018 10:22 pm
Posts: 1
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)


Top
 Profile  
 
 Post subject: Re: Some Weathermaps not updating
PostPosted: Wed Mar 21, 2018 4:34 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1916
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.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Some Weathermaps not updating
PostPosted: Wed Mar 21, 2018 5:13 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5289
Location: United Kingdom
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.98 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!)


Top
 Profile  
 
 Post subject: Re: Some Weathermaps not updating
PostPosted: Wed Mar 21, 2018 6:04 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1916
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).

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group