|
|
| Author |
Message |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2166 Location: United Kingdom
|
Posted: Sat Aug 12, 2006 4:10 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
flipflap Cacti User
Joined: 09 Jul 2005 Posts: 137
|
Posted: Sat Aug 12, 2006 5:26 am Post subject: |
|
|
| 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 |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2166 Location: United Kingdom
|
Posted: Sat Aug 12, 2006 5:56 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
flipflap Cacti User
Joined: 09 Jul 2005 Posts: 137
|
Posted: Sat Aug 12, 2006 6:23 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
flipflap Cacti User
Joined: 09 Jul 2005 Posts: 137
|
Posted: Mon Aug 14, 2006 9:21 am Post subject: |
|
|
upgraded php, it worked liek a charm. now i got a new problem some of the graphs for the equipments are not showing  |
|
| Back to top |
|
 |
TFC Cacti Pro User
Joined: 09 Apr 2003 Posts: 612 Location: Izmir/Turkey
|
Posted: Mon Sep 25, 2006 3:21 am Post subject: |
|
|
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:
| Quote: | 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? |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2166 Location: United Kingdom
|
Posted: Mon Sep 25, 2006 4:02 am Post subject: |
|
|
| 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:
| Quote: | 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. |
|
| Back to top |
|
 |
TFC Cacti Pro User
Joined: 09 Apr 2003 Posts: 612 Location: Izmir/Turkey
|
Posted: Mon Sep 25, 2006 4:13 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2166 Location: United Kingdom
|
Posted: Mon Sep 25, 2006 4:40 am Post subject: |
|
|
| 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... |
|
| Back to top |
|
 |
TFC Cacti Pro User
Joined: 09 Apr 2003 Posts: 612 Location: Izmir/Turkey
|
Posted: Mon Sep 25, 2006 4:48 am Post subject: |
|
|
| name is backbone.conf |
|
| Back to top |
|
 |
TFC Cacti Pro User
Joined: 09 Apr 2003 Posts: 612 Location: Izmir/Turkey
|
Posted: Mon Sep 25, 2006 5:11 am Post subject: |
|
|
I solve it.
When I clear the poller cache, I can see that config file. |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2166 Location: United Kingdom
|
Posted: Mon Sep 25, 2006 5:17 am Post subject: |
|
|
| 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  |
|
| Back to top |
|
 |
TFC Cacti Pro User
Joined: 09 Apr 2003 Posts: 612 Location: Izmir/Turkey
|
Posted: Mon Sep 25, 2006 5:23 am Post subject: |
|
|
| 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  |
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: | 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: | 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 |
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2166 Location: United Kingdom
|
Posted: Mon Sep 25, 2006 5:27 am Post subject: |
|
|
| 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  |
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. |
|
| Back to top |
|
 |
finale
Joined: 28 Sep 2006 Posts: 1
|
Posted: Thu Sep 28, 2006 4:59 am Post subject: How to fix this problem I cant see graph map |
|
|
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 |
|
| Back to top |
|
 |
|