PHP Network Weathermap 0.8 (now 0.9)

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

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

Post by Howie »

flipflap wrote: Fatal error: Call to undefined function imagecreatetruecolor() in c:\Inetpub\wwwroot\cacti\plugins\weathermap\Weathermap.class.php on line 2962

what could be causing it? thanks for the help.
Does the regular plugin part produce maps OK? The error is caused by a missing function in your GD library. I would have thought that the map-generation side of things would fail too. Try adding (say) the example.conf file to your map list, and see if it is generated. If it isn't (after 5-10 minutes), then have a look in your cacti.log. The short version is that you probably need to upgrade your GD library, and possibly recompile your PHP to use the new library.
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!)
flipflap
Cacti User
Posts: 142
Joined: Sat Jul 09, 2005 3:13 pm

Post by flipflap »

Howie wrote:
flipflap wrote: Fatal error: Call to undefined function imagecreatetruecolor() in c:\Inetpub\wwwroot\cacti\plugins\weathermap\Weathermap.class.php on line 2962

what could be causing it? thanks for the help.
Does the regular plugin part produce maps OK? The error is caused by a missing function in your GD library. I would have thought that the map-generation side of things would fail too. Try adding (say) the example.conf file to your map list, and see if it is generated. If it isn't (after 5-10 minutes), then have a look in your cacti.log. The short version is that you probably need to upgrade your GD library, and possibly recompile your PHP to use the new library.
what do you mean by regular plugin part? my cacti is installed in win2k server. i don't think there is a gd library there. thanks for the reply
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

flipflap wrote:what do you mean by regular plugin part? my cacti is installed in win2k server. i don't think there is a gd library there. thanks for the reply
OK. Read the installation guide for Weathermap. Follow through the part about adding an example map, and see if that works. You should be able to get a map to appear under the Weathermap tab in Cacti. If that doesn't work, check your cacti.log file for lines that contain "WEATHERMAP", to see if there are any errors to explain why.

You will need the GD PHP module for weathermap to work though. You can find out if it's installed by running php -m from a command prompt. Look for 'gd' in the list of modules that it produces. You might need a newer version of gd to get the createimagetruecolor() function, 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!)
flipflap
Cacti User
Posts: 142
Joined: Sat Jul 09, 2005 3:13 pm

Post by flipflap »

got this from cacti log

08/12/2006 07:05:31 PM - WEATHERMAP: Poller[0] Required modules for PHP Weathermap were not present. Not running.
Available in your command-line php program. Please check the output from 'php -i' and your 'php.ini' to be sure!
IMPORTANT: Just because mod_php and php_info() shows gd in a webpage, it doesn't mean it's
08/12/2006 07:05:31 PM - WEATHERMAP: Poller[0]
No image (gd) extension is loaded. This is required by weathermap.
08/12/2006 07:05:31 PM - WEATHERMAP: Poller[0]
08/12/2006 07:05:31 PM - WEATHERMAP: Poller[0] Weathermap 0.82 in da house

got this from php -m

[PHP Modules]
bcmath
calendar
com_dotnet
ctype
dom
ftp
iconv
libxml
mysql
odbc
pcre
session
SimpleXML
snmp
sockets
SPL
SQLite
standard
tokenizer
wddx
xml
zlib

noob question --> how do i get the gd php module?

browse gd website

told me that it's not enabled by default and would just have to uncomment an extension for it to work i'll try it first. thanks
flipflap
Cacti User
Posts: 142
Joined: Sat Jul 09, 2005 3:13 pm

Post by flipflap »

upgraded php, it worked liek a charm. now i got a new problem some of the graphs for the equipments are not showing :(
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

Hi,
I Install Plugin arch.
Then Install weathermap as plugin
Changed permission weathermap directory as nobody:nobody ( inc. all subfolders and files)
I set cacti log as DEBUG.
I set some config file in configs. dir.
But still there is no graph in weathermap tab.
My cacti log file says that:
09/25/2006 11:11:35 AM - WEATHERMAP: Poller[0] Weathermap 0.82 in da house
09/25/2006 11:11:35 AM - WEATHERMAP: Poller[0] Engaging Weathermap DEBUG mode
09/25/2006 11:11:35 AM - WEATHERMAP: Poller[0] Iterating all maps.
09/25/2006 11:11:35 AM - WEATHERMAP: Poller[0] Iterated all 0 maps.
09/25/2006 11:11:35 AM - WEATHERMAP: Poller[0] Weathermap has left the building
What is the problem you think?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

TFC wrote:Hi,
I Install Plugin arch.
Then Install weathermap as plugin
Changed permission weathermap directory as nobody:nobody ( inc. all subfolders and files)
I set cacti log as DEBUG.
I set some config file in configs. dir.
But still there is no graph in weathermap tab.
My cacti log file says that:
09/25/2006 11:11:35 AM - WEATHERMAP: Poller[0] Weathermap 0.82 in da house
09/25/2006 11:11:35 AM - WEATHERMAP: Poller[0] Engaging Weathermap DEBUG mode
09/25/2006 11:11:35 AM - WEATHERMAP: Poller[0] Iterating all maps.
09/25/2006 11:11:35 AM - WEATHERMAP: Poller[0] Iterated all 0 maps.
09/25/2006 11:11:35 AM - WEATHERMAP: Poller[0] Weathermap has left the building
What is the problem you think?
I think the problem is that you didn't go into the Manage.. Weathermaps page and add the config files to the list 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!)
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

Yes.
U r right. But still I have one problem.
I have three config file. But I can see only two files when I want to add.
I check the permission of this file there is no difference.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

TFC wrote:Yes.
U r right. But still I have one problem.
I have three config file. But I can see only two files when I want to add.
I check the permission of this file there is no difference.
What is the name of the file? I don't think it will treat any files differently, but just in case...
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
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

name is backbone.conf
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

I solve it.
When I clear the poller cache, I can see that config file.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

TFC wrote:I solve it.
When I clear the poller cache, I can see that config file.
That's really weird! I don't use the poller cache :o
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
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

Howie wrote:
TFC wrote:I solve it.
When I clear the poller cache, I can see that config file.
That's really weird! I don't use the poller cache :o
:) I dont know how but when I did this everything is ok :)
Another question is:
I have two links between two nodes.
But I cant see both links at the same time.
I use VIA parameter.
Here is the config:

Code: Select all

NODE MTP-CR-02
	LABEL MTP-CR-02
	POSITION 640 464

NODE SGT-CR-02 
	LABEL SGT-CR-02 
	POSITION 640 600

LINK MTP-CR-02-SGT-CR-02 
	INFOURL http://10.200.167.214/cacti/graph.php?local_graph_id=3177&rra_id=all
	OVERLIBGRAPH http://10.200.167.214/cacti/graph_image.php?local_graph_id=3177&rra_id=1&graph_nolegend=true&graph_height=100&graph_width=300
	TARGET /www/htdocs/cacti/rra/mtpcr02_traffic_in_3633.rrd
	VIA 600 535
	WIDTH 5
	NODES MTP-CR-02 SGT-CR-02 

	
LINK MTP-CR-02-SGT-CR-02
	INFOURL http://10.200.167.214/cacti/graph.php?rra_id=all&local_graph_id=3307
	OVERLIBGRAPH http://10.200.167.214/cacti/graph_image.php?local_graph_id=3307&rra_id=1&graph_nolegend=true&graph_height=100&graph_width=300
	TARGET /www/htdocs/cacti/rra/mtpcr02_traffic_in_3780.rrd
	VIA 680 535
	WIDTH 5
	NODES MTP-CR-02.1 SGT-CR-02 
What is wrong ?
I always see that one:

Code: Select all

LINK MTP-CR-02-SGT-CR-02 
	INFOURL http://10.200.167.214/cacti/graph.php?local_graph_id=3177&rra_id=all
	OVERLIBGRAPH http://10.200.167.214/cacti/graph_image.php?local_graph_id=3177&rra_id=1&graph_nolegend=true&graph_height=100&graph_width=300
	TARGET /www/htdocs/cacti/rra/mtpcr02_traffic_in_3633.rrd
	VIA 600 535
	WIDTH 5
	NODES MTP-CR-02 SGT-CR-02
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

TFC wrote:
Howie wrote:
TFC wrote:I solve it.
When I clear the poller cache, I can see that config file.
That's really weird! I don't use the poller cache :o
:) I dont know how but when I did this everything is ok :)
Another question is:
I have two links between two nodes.
But I cant see both links at the same time.
Both the LINKs have the same name. Rename one or both of them (e.g. MTP-CR-02-SGT-CR-02-a and MTP-CR-02-SGT-CR-02-b). Otherwise the second one just overwrites the first one.
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!)
finale
Posts: 1
Joined: Thu Sep 28, 2006 4:57 am

How to fix this problem I cant see graph map

Post by finale »

09/26/2006 04:50:03 PM - WEATHERMAP: Poller[0] Required modules for PHP Weathermap were not present. Not running.
Available in your command-line php program. Please check the output from 'php -i' and your 'php.ini' to be sure!
IMPORTANT: Just because mod_php and php_info() shows gd in a webpage, it doesn't mean it's
09/26/2006 04:50:03 PM - WEATHERMAP: Poller[0]
No image (gd) extension is loaded. This is required by weathermap.

09/26/2006 04:50:03 PM - WEATHERMAP: Poller[0]
09/26/2006 04:50:03 PM - WEATHERMAP: Poller[0] Weathermap 0.82 in da house
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests