Quick Question about weather map config files

Support questions about the Network Weather Map plugin

Moderators: Moderators, Developers

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

Quick Question about weather map config files

#1 Post by z24autox » Thu May 05, 2016 11:27 am

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 2173 times

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

Re: Quick Question about weather map config files

#2 Post by Howie » Thu May 05, 2016 2:10 pm

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.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!)

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

Re: Quick Question about weather map config files

#3 Post by z24autox » Thu May 05, 2016 5:04 pm

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: 5333
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Quick Question about weather map config files

#4 Post by Howie » Thu May 05, 2016 6:31 pm

And are the last-modified dates changing on the html files in there?
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!)

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

Re: Quick Question about weather map config files

#5 Post by z24autox » Tue May 10, 2016 11:51 am

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: 5333
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Quick Question about weather map config files

#6 Post by Howie » Tue May 10, 2016 12:05 pm

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.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!)

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

Re: Quick Question about weather map config files

#7 Post by Howie » Mon Jun 06, 2016 6:24 pm

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.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!)

Post Reply