Refresh of weathermaps in ver 0.95b
Moderators: Developers, Moderators
Refresh of weathermaps in ver 0.95b
I have installed the new version of weathermap 095b and have found an issue with the maps updating . I have set the map rendering to the default of every poll cycle and while the thumbnails do update , when you click on the thumbnail the png is not displayed just a red X in the top left. When I look at the properties of the failed png it is pointing to http://mywebserverroot/plugins/weatherm ... plugin.php? which is the incorrect path to the PHP file . The correct path should be http://mywebserverroot/cacti/plugins/we ... plugin.php?
If I run a recalculate maps from the weathermaps console the file is displayed correctly and the PNG path is correct.
I think the problem is in the poller-common.php file in libs but I'm not very good on debuging code so any help would be appreciated.
I am running
Cacti v0.8.7b
PHP 5.2.5.5
Window 2003 server with IIS
Plugin arch ver2
If I run a recalculate maps from the weathermaps console the file is displayed correctly and the PNG path is correct.
I think the problem is in the poller-common.php file in libs but I'm not very good on debuging code so any help would be appreciated.
I am running
Cacti v0.8.7b
PHP 5.2.5.5
Window 2003 server with IIS
Plugin arch ver2
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Hang on - the *same* link on the thumbnail changes it's URL when you use Recalculate Now?
It doesn't even use the full url to the plugin in the HTML, it's just a relative URL: weathermap-cacti-plugin.php?action=viewmap&id=....
Could you clarify? and please check that using Recalculate Now hasn't changed permssions for the output directory too.
It doesn't even use the full url to the plugin in the HTML, it's just a relative URL: weathermap-cacti-plugin.php?action=viewmap&id=....
Could you clarify? and please check that using Recalculate Now hasn't changed permssions for the output directory too.
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!)
Yes thats exactly the problem depending on how the PNG update was done depends on where the "relative" URL points
I have checked the file permissions on the files both auto generated and generate now and they are the same regardles. The thumbnails work fine in both cases
I have checked the file permissions on the files both auto generated and generate now and they are the same regardles. The thumbnails work fine in both cases
- Attachments
-
- auto refresh.png (57.43 KiB) Viewed 3088 times
-
- Recalculate now properties.png (50.52 KiB) Viewed 3088 times
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Then I guess you have a browser bug, because as I said, weathermap doesn't put *any* path in there.
Does the URL for the weathermap tab/page itself change?
Does the URL for the weathermap tab/page itself change?
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!)
The Weathermap Tab remains at the correct path. I have tried this from several browsers incudind the server console and the same everywhere.
Is it possible to hard code/define the ['url_path'] in one of the PHP files to test , if so where ? if not any ideas casue every thing else seems to work great except the update.
Is it possible to hard code/define the ['url_path'] in one of the PHP files to test , if so where ? if not any ideas casue every thing else seems to work great except the update.
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
I just realised that I was talking about the thumbnail images and you were talking about the full-size images behind that.
You're right - it seems that in command-line situations, like the poller, the PIA gets the url_path wrong. This was a problem once before with an old PIA, and I know there are plenty of folks with this issue on PIA 2.0.
Try this:
change line 96 of poller-common.php from
to
You're right - it seems that in command-line situations, like the poller, the PIA gets the url_path wrong. This was a problem once before with an old PIA, and I know there are plenty of folks with this issue on PIA 2.0.
Try this:
change line 96 of poller-common.php from
Code: Select all
$wmap->imageuri = $config['url_path'].'plugins/weathermap/weathermap-cacti-plugin.php?action=viewimage&id='.$map['filehash']."&time=".time();
Code: Select all
$wmap->imageuri = 'weathermap-cacti-plugin.php?action=viewimage&id='.$map['filehash']."&time=".time();
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!)
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
cool.
and I believe PIA 2.1 fixes this generally, by not trying to guess your url_path anymore.
and I believe PIA 2.1 fixes this generally, by not trying to guess your url_path anymore.
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!)
Who is online
Users browsing this forum: No registered users and 7 guests