Map not generating when nodes are present.

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
briodan
Posts: 22
Joined: Fri Apr 10, 2009 9:21 pm

Map not generating when nodes are present.

Post by briodan »

I recently did a new installation of Cacti and the plugin for Weathermap and it's not generating maps when i add a node in the map. The maps generate fine if i add the legend for example but no nodes.

Here is the logfile generating when i'm using the default included simple.conf config file

Code: Select all

01/06/2010 09:58:36 AM - WEATHERMAP: Poller[0] [Map 5] Example.conf: About to write image file. If this is the last message in your log, increase memory_limit in php.ini [WMPOLL01]  
01/06/2010 09:58:36 AM - WEATHERMAP: Poller[0] [Map 5] Example.conf: Map: /usr/local/groundwork/apache2/htdocs/cacti/plugins/weathermap/configs/simple.conf -> /usr/local/groundwork/apache2/htdocs/cacti/plugins/weathermap/output/a1bb0b0d4d559a2e8221.html & /usr/local/groundwork/apache2/htdocs/cacti/plugins/weathermap/output/a1bb0b0d4d559a2e8221.png  
: Poller[0] Weathermap 0.96a starting - Normal logging mode. Turn on DEBUG in Cacti for more information  
01/06/2010 09:58:36 AM - WEATHERMAP  
This the the log generating when i edit the config fiel and remove all nodes and links

Code: Select all

01/06/2010 10:53:38 AM - WEATHERMAP: Poller[0] STATS: Weathermap 0.96a run complete - 1 maps were run in 4 seconds with 15 warnings.  
01/06/2010 10:53:38 AM - WEATHERMAP: Poller[0] [Map 6] simple.conf: Wrote map to /usr/local/groundwork/apache2/htdocs/cacti/plugins/weathermap/output/6d0303660c8ae543ea11.png and /usr/local/groundwork/apache2/htdocs/cacti/plugins/weathermap/output/6d0303660c8ae543ea11.thumb.png  
01/06/2010 10:53:35 AM - WEATHERMAP: Poller[0] WARNING: [Map 6] simple.conf: Using a non-existent special font (100) - falling back to internal GD fonts [WMWARN03]  
01/06/2010 10:53:35 AM - WEATHERMAP: Poller[0] WARNING: [Map 6] simple.conf: Using a non-existent special font (100) - falling back to internal GD fonts [WMWARN03]  
01/06/2010 10:53:35 AM - WEATHERMAP: Poller[0] WARNING: [Map 6] simple.conf: Using a non-existent special font (100) - falling back to internal GD fonts [WMWARN03]  
01/06/2010 10:53:35 AM - WEATHERMAP: Poller[0] WARNING: [Map 6] simple.conf: Using a non-existent special font (100) - falling back to internal GD fonts [WMWARN03]  
01/06/2010 10:53:35 AM - WEATHERMAP: Poller[0] WARNING: [Map 6] simple.conf: Using a non-existent special font (100) - falling back to internal GD fonts [WMWARN03]  
01/06/2010 10:53:35 AM - WEATHERMAP: Poller[0] WARNING: [Map 6] simple.conf: Using a non-existent special font (100) - falling back to internal GD fonts [WMWARN03]  
01/06/2010 10:53:35 AM - WEATHERMAP: Poller[0] WARNING: [Map 6] simple.conf: Using a non-existent special font (100) - falling back to internal GD fonts [WMWARN03]  
01/06/2010 10:53:35 AM - WEATHERMAP: Poller[0] WARNING: [Map 6] simple.conf: Using a non-existent special font (100) - falling back to internal GD fonts [WMWARN03]  
01/06/2010 10:53:35 AM - WEATHERMAP: Poller[0] WARNING: [Map 6] simple.conf: Using a non-existent special font (100) - falling back to internal GD fonts [WMWARN03]  
01/06/2010 10:53:35 AM - WEATHERMAP: Poller[0] WARNING: [Map 6] simple.conf: Using a non-existent special font (100) - falling back to internal GD fonts [WMWARN03]  
01/06/2010 10:53:35 AM - WEATHERMAP: Poller[0] WARNING: [Map 6] simple.conf: Using a non-existent special font (100) - falling back to internal GD fonts  
01/06/2010 10:53:35 AM - WEATHERMAP: Poller[0] WARNING: [Map 6] simple.conf: Using a non-existent special font (100) - falling back to internal GD fonts  
01/06/2010 10:53:35 AM - WEATHERMAP: Poller[0] WARNING: [Map 6] simple.conf: Using a non-existent special font (100) - falling back to internal GD fonts  
01/06/2010 10:53:35 AM - WEATHERMAP: Poller[0] WARNING: [Map 6] simple.conf: Using a non-existent special font (100) - falling back to internal GD fonts  
01/06/2010 10:53:34 AM - WEATHERMAP: Poller[0] [Map 6] simple.conf: About to write image file. If this is the last message in your log, increase memory_limit in php.ini [WMPOLL01]  
01/06/2010 10:53:34 AM - WEATHERMAP: Poller[0] WARNING: [Map 6] simple.conf: Dropping LINK DEFAULT - it hasn't got 2 NODES!  
01/06/2010 10:53:34 AM - WEATHERMAP: Poller[0] [Map 6] simple.conf: Map: /usr/local/groundwork/apache2/htdocs/cacti/plugins/weathermap/configs/simple.conf -> /usr/local/groundwork/apache2/htdocs/cacti/plugins/weathermap/output/6d0303660c8ae543ea11.html & /usr/local/groundwork/apache2/htdocs/cacti/plugins/weathermap/output/6d0303660c8ae543ea11.png  
: Poller[0] Weathermap 0.96a starting - Normal logging mode. Turn on DEBUG in Cacti for more information  
01/06/2010 10:53:34 AM - WEATHERMAP  
I am also getting the following notice message when i go to the weathermap tab, not sure if it has any impact or not:

Code: Select all

Notice: Undefined index: action in /usr/local/groundwork/apache2/htdocs/cacti/plugins/weathermap/setup.php on line 147
OS - Ubuntu 8.04.1 (Hardy)
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

So when you got

Code: Select all

01/06/2010 09:58:36 AM - WEATHERMAP: Poller[0] [Map 5] Example.conf: About to write image file. If this is the last message in your log, increase memory_limit in php.ini [WMPOLL01] 
as the last message in your log, what did you think? :-)

You should also run check.php and check-gdbug.php from the command-line - older Ubuntu versions suffer from a particular GD bug which might also cause you problems.
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!)
briodan
Posts: 22
Joined: Fri Apr 10, 2009 9:21 pm

Post by briodan »

forgot to mention that I did increase the memory limit for 8Mb to 128Mb, when i got the message, after the change and a reboot still got the same message.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

OK - and the check-gdbug.php?

I don't remember which Ubuntu release fixed the bug, but Edgy (7.1) definitely had it.
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!)
briodan
Posts: 22
Joined: Fri Apr 10, 2009 9:21 pm

Post by briodan »

running check_gdbug.php results in the following:

Code: Select all

Some version of the GD graphics library have a bug in their handling of Alpha channels. Unfortunately, Weathermap uses these to draw Nodes. 
This program will test if your PHP installation is using a buggy GD library. 

If you are, you should either use PHP's built-in (aka 'bundled') GD library, or update to GD Version 2.0.34 or newer. Weathermap REQUIRES working Alpha support. 

Let's see if you have the GD transparency bug... 

If you see no more output, or a segfault, then you do, and you'll need to upgrade. 

If you get other errors, like 'undefined function', then run check.php to make sure that your PHP installation is otherwise OK. 

Here we go... 
I have tried applying the patch in the sticky and removing gd and reisntalling through apt but that did not fix the issue.
Looks like php is using an external gd library, i'll see about recompiling.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests