Martin and Ramon,
Greeting.....
"Before you read this just want tell you that its working now..... Ofcourse you get the credit for giving hints and suggestion..... This is what I was doing "

I am still in the learning phase, so please forgive me if I don't understands or miss obvious things.
I had php-gd, gd and gd-develop
# rpm -qa | grep gd
gdm-2.6.0.8-16
gdbm-devel-1.8.0-25
sysklogd-1.4.1-30
gd-progs-2.0.33-2
gdbm-1.8.0-25
*gd-2.0.33-2*
*gd-devel-2.0.33-2*
gdk-pixbuf-0.22.0-18
*php-gd-5.0.4-10*
gdb-6.3.0.0-1.21

While I was testing gd support  "php -m"
I got this error in the first line..

[ ~ ]php -m
PHP Warning:  Module 'gd' already loaded in Unknown on line 0
[PHP Modules]
bcmath
bz2
calendar
ctype
curl
dbx
dio
dom
exif
ftp
gd
...........conti..

Remember Martin, you asked me to add extension = gd.so  in php.ini file..
I removed that line and restarted Apache, and Got my pie chart...

Now I have got one more strange problem..
I addded 31 nodes to the cluster, and it was showing all the nodes by hostnames, Yesterday nigh I added three more nodes, which are basically replication of other 31 nodes. Copied gmond.conf file from on old node to new nodes. Added entries in gmetad.conf Restarted gmond and gmetad.on master and gmond new slave nodes, I was able to see new nodes but they dont show hostnames, they Display IP Address. Any Guess, what might be wrong.. DNS, Hostname configuration, netwrok configurations are fine.

Thank you so much for you help and support...
Please let me if I can contribute in some kind of Documentation.

-Jai

Ramon Bastiaans wrote:
Martin,

Hehe, yes. PHP is not case sensitive about function names.
The idiot who decided that should be shot imho. ;)

It seems PHP requires some sort of GD library to be able to use the image** functions.
From the website http://www.php.net/manual/en/ref.image.php:

-- start --
If you have the GD library (available at http://www.boutell.com/gd/) you will also be able to create and manipulate images.

The format of images you are able to manipulate depend on the version of GD you install, and any other libraries GD might need to access those image formats. Versions of GD older than gd-1.6 support GIF format images, and do not support PNG, where versions greater than gd-1.6 and less than gd-2.0.28 support PNG, not GIF. GIF support was re-enabled in gd-2.0.28.

Note: Since PHP 4.3 there is a bundled version of the GD lib. This bundled version has some additional features like alpha blending, and should be used in preference to the external library since its codebase is better maintained and more stable.
-- end --

This is also poorly documented from the PHP side I think

The problem is the last part I think, that it's bundled nowadays. Some developers might assume that it's not a prereq because of this. However some distributions and packaging systems seperate php and gd from each other anyway, for example with Debian you don't get php-gd by default.

I agree the prereqs could use some additions in the Ganglia's documentation, let's put it on the todo list. ;)

Cheers,
- Ramon.


Martin Knoblauch wrote:

Jai,

Ramon is right. You are at least missing "php-gd". I could reproduce
your problem on my FC4 installation. I did not get the pie charts also.
Installing php-gd via yum and restarting Apache solved the problem. You
may also need "gd-devel", which provides /usr/lib/libgd.so.

Check with "php -m" or the following small php-web-script:

[EMAIL PROTECTED] html]# cat >> /var/www/html/phpinfo.php
<?php

// Show all information, defaults to INFO_ALL
phpinfo();

?>

Both should show "gd support" in some way.

You can forget my E-Mail regarding case-sensitivity. I just found out
that (unlike almost everything else) function names are not
case-sensitive. Weird decision. I know why I do not like PHP that much
...

Cheers
Martin
--- Ramon Bastiaans <[EMAIL PROTECTED]> wrote:

That means you are still missing libgd and the php-gd extension, as I

mailed before.

- Ramon.

Jai Rangi wrote:

Hello Martin,
Here is the error message I am getting for pie chart,

[client client_machine] PHP Fatal error:  Call to undefined
function
ImageCreate() in /var/www/html/ganglia/pie.php on line 117,
referer:
http://server_name:/ganglia/?c=Linux%20Cluster&m=&r=hour&s=descending&hc=4
Thank you so much for your help...
Jai



Martin Knoblauch wrote:

Dear Jai,

good to hear that 3.0.2 fixed most of the problems for you. I am
not
sure about the PIE stuff, but there should be some error messages
in
the log-files of you r web server. They could give you a hint. And
there still may be PHP bugs preventing 5.0 to work correctly. As I
said, we want to know.

Cheers
Martin

--- Jai Rangi <[EMAIL PROTECTED]> wrote:



Thanks Martin,
Upgrading to 3.0.2 worked just fine. Still missing PIE though,
but I
guess I am missing some package for that...

Thank you so much,
-Jai

Martin Knoblauch wrote:

------------------------------------------------------
Martin Knoblauch
email: k n o b i AT knobisoft DOT de
www:   http://www.knobisoft.de
--
There are really only three types of people:

 Those who make things happen,
  those who watch things happen,
  and those who say, "What happened?"

---
ing. R. Bastiaans
HPC  - Systems Programmer

SARA - Computing and Networking Services
Kruislaan 415      PO Box 194613
1098 SJ Amsterdam  1090 GP Amsterdam



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through
log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general




------------------------------------------------------
Martin Knoblauch
email: k n o b i AT knobisoft DOT de
www:   http://www.knobisoft.de

Reply via email to