Quick Question about weather map config files

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
z24autox
Posts: 6
Joined: Thu May 05, 2016 10:19 am

Quick Question about weather map config files

Post by z24autox »

I am using cacti 0.8.8a and weather map 0.97a. I created php scripts to automatically generate weather map configs every 2 days, ( we consistently add/remove 5-10 links to the network per week). I have noticed that after the maps config files have been updated it takes a day or so before those changes are reflected on maps drawn in cacti. Specifically, if a link is removed or simply moved to a different location on the map, visually the links look correct, however the links for the hover graphs remain. Take a look a the below image. As you can see the html links are still there even though the LINK has been deleted from the config file. The only way I have found to correct the behavior is to go into the console and remove then re-add the weather map that was updated. This can be a pain as I have adjust view permissions and placement within map group each time. Is there a way to force a refresh of whatever cache exists for the map configuration data?
Attachments
Screen Shot 2016-05-05 at 9.20.32 AM.png
Screen Shot 2016-05-05 at 9.20.32 AM.png (590.49 KiB) Viewed 3194 times
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Quick Question about weather map config files

Post by Howie »

What are the permissions on your output/ directory and the files inside it?

Weathermap rewrites both the HTML and the image file every time... the HTML file contains the outline information for where 'hover' graphs will appear. It sounds like in your case that isn't happening for the html file. Or, you have some very strange HTTP caching happening.
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!)
z24autox
Posts: 6
Joined: Thu May 05, 2016 10:19 am

Re: Quick Question about weather map config files

Post by z24autox »

permissions on output/ are 775 cactiuser:www-data
permissions on the files in output/ are 664 cactiuser:cactiuser
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Quick Question about weather map config files

Post by Howie »

And are the last-modified dates changing on the html files in there?
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!)
z24autox
Posts: 6
Joined: Thu May 05, 2016 10:19 am

Re: Quick Question about weather map config files

Post by z24autox »

Yes, the last modified on the html files are changing.
in the request weathermap-cacti-plugin.php?action=viewimage&id=c3c0ab49bb7e7ec23013&time=1462896261
how is time determined?

I have noticed that time does not change from request to request in the browser.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Quick Question about weather map config files

Post by Howie »

The time is just added to the end of the URL by the PHP script to try and avoid caching issues. It should change every time you refresh the web page though! That's strange.
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!)
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Quick Question about weather map config files

Post by Howie »

What web server are you using? Is it apache or something else?

I just had a "caching" issue with someone else who was using lighttpd+fastcgi-php, that was resolved by a restart of the webserver. But in that case, the root cause is probably cache settings in the fastcgi-php module.
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!)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests