Weathermap not updating

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
rajjinator
Posts: 3
Joined: Fri Jun 05, 2009 8:02 am

Weathermap not updating

Post by rajjinator »

Hi have a CactiEZ server on running on VMWARE ESX server. I have recently expanded the disk using VMKFSTOOLS -X and extended the primary partition using GParted to give it the extra space.

Since doing this weathermap will not update (created date does not change), However the main cacti graphs are still being updated fine.

any idea what is causing the weathermap to not update?
rajjinator
Posts: 3
Joined: Fri Jun 05, 2009 8:02 am

Post by rajjinator »

when pressing the "recalculate all maps now" button it gives the following errors...



Warning: imagepng() [function.imagepng]: Unable to open '/var/www/html/plugins/weathermap/output/41601a837f84e4805dc3.png' for writing in /var/www/html/plugins/weathermap/Weathermap.class.php on line 2472

Warning: imagepng() [function.imagepng]: Unable to open '/var/www/html/plugins/weathermap/output/41601a837f84e4805dc3.thumb.png' for writing in /var/www/html/plugins/weathermap/Weathermap.class.php on line 2517

Warning: imagepng() [function.imagepng]: Unable to open '/var/www/html/plugins/weathermap/output/c7edd1651d57c257f22f.png' for writing in /var/www/html/plugins/weathermap/Weathermap.class.php on line 2472

Warning: imagepng() [function.imagepng]: Unable to open '/var/www/html/plugins/weathermap/output/c7edd1651d57c257f22f.thumb.png' for writing in /var/www/html/plugins/weathermap/Weathermap.class.php on line 2517
rajjinator
Posts: 3
Joined: Fri Jun 05, 2009 8:02 am

Post by rajjinator »

ok, i've altered the permissions on the output directory and now the "recalculate all maps now" button has worked. and the map updated, but it still does not automatically update every minute like it used to?

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

Post by Howie »

Read the GIGANTIC WARNING about using Recalculate Now.

You are breaking the permissions every time you press it.

Do I need to add something else to that warning? What does it need to say to make it clearer what the problem is?
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!)
pconrad
Posts: 19
Joined: Mon Jun 12, 2006 8:29 am

Post by pconrad »

I have the same issue. The maps will refresh if I press the forbidden update button, but do nothing on their own. I have verified the permissions, and have NO ERRORS in the log files.
If it works with the recalculate now, How do I get it to work on its own?
"So Long, and thanks for all the fish!" DA
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

pconrad wrote:I have the same issue. The maps will refresh if I press the forbidden update button, but do nothing on their own. I have verified the permissions, and have NO ERRORS in the log files.
If it works with the recalculate now, How do I get it to work on its own?
What are the permissions of the output directory and the files in it?
Who is the owner of the output directory and the files in it?

What user does the poller run as?

What *does* appear in the log?
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!)
pconrad
Posts: 19
Joined: Mon Jun 12, 2006 8:29 am

Post by pconrad »

What are the permissions of the output directory and the files in it?

drwxrwxrwx 2 cactiuser apache 4096 2009-08-13 16:06 output
[root@qsccacti01 weathermap]# cd output
[root@qsccacti01 output]# ls -l
total 88
-rwxrwxrwx 1 cactiuser apache 18995 2009-08-13 16:06 35e9ad5482a740d778d0.html
-rwxrwxrwx 1 cactiuser apache 23743 2009-08-13 16:06 35e9ad5482a740d778d0.png
-rwxrwxrwx 1 cactiuser apache 21762 2009-08-13 16:06 35e9ad5482a740d778d0.thumb.png
-rwxrwxrwx 1 cactiuser apache 62 2008-03-19 17:37 index.php

Who is the owner of the output directory and the files in it?


What user does the poller run as?
cactiuser


What *does* appear in the log?

see attached
"So Long, and thanks for all the fish!" DA
pconrad
Posts: 19
Joined: Mon Jun 12, 2006 8:29 am

Post by pconrad »

Here's output from Cacti log

08/13/2009 04:57:34 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "SELECT id FROM plugin_realms WHERE plugin = 'weathermap' AND file = 'weathermap-cacti-plugin-mgmt.php'"
08/13/2009 04:57:34 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "SELECT id FROM plugin_realms WHERE plugin = 'weathermap' AND file = 'weathermap-cacti-plugin.php'"
08/13/2009 04:57:34 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "SELECT id FROM plugin_realms WHERE plugin = 'weathermap' AND file = 'weathermap-cacti-plugin-mgmt.php'"
08/13/2009 04:57:34 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "SELECT id FROM plugin_realms WHERE plugin = 'weathermap' AND file = 'weathermap-cacti-plugin.php'"
"So Long, and thanks for all the fish!" DA
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Do you have the Weathermap 'quiet logging' turned on? I would expect to see at least 2 lines in the log (WEATHERMAP STATS and WEATHERMAP START) even with no maps configured... With DEBUG logging on, you should see a few dozen lines of logs per poller cycle, even without maps configured.

I don't think it's a permission issue either.

Did anything special happen at 16:06? (e.g. cacti upgrade, install other plugin, etc)

Does Weathermap show up in the Plugin Management page? Does it say 'Old Architecture (Running)'?
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!)
pconrad
Posts: 19
Joined: Mon Jun 12, 2006 8:29 am

Post by pconrad »

Quiet Logging is set to Chatty

16:06 is when I pressed the forbidden button to manually update the weathermap.

Weathermap does NOT show up in the plugin management page.
It does show up in the Updates page though.
pconrad
Posts: 19
Joined: Mon Jun 12, 2006 8:29 am

Weathermap working now

Post by pconrad »

Re-installed Cacti, plugin architecture, and several plugins.

Weathermap is working properly now.

Weathermap shows up in the Plugin Management page. It says 'Old Architecture (Running)'.
"So Long, and thanks for all the fish!" DA
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests