Dear Rene and Bernard,

I managed to obtain a copy of rrdtool, but itself needs
further software for a RedHat 9 box.

        [EMAIL PROTECTED] kits# rpm -Uvh  rrdtool-1.0.48-1.i386.rpm
        warning: rrdtool-1.0.48-1.i386.rpm: V3 DSA signature: NOKEY, key ID
e01260f1
        error: Failed dependencies:
        librrd = 1.0.48-1 is needed by rrdtool-1.0.48-1
        libXpm is needed by rrdtool-1.0.48-1
        libgd.so.2 is needed by rrdtool-1.0.48-1
        librrd.so.0 is needed by rrdtool-1.0.48-1

To cut the story short, I have loaded the following:

        [EMAIL PROTECTED] kits# rpm -Uvh --nodeps libgd2-2.0.15-3mdk.i586.rpm
        warning: libgd2-2.0.15-3mdk.i586.rpm: V3 DSA signature: NOKEY, key
ID 70771ff3
        Preparing...
########################################### 

      (Note the --nodeps option, otherwise, it won't load.)

        [EMAIL PROTECTED] kits# rpm -Uvh librrd-1.0.48-1.i386.rpm    
        warning: librrd-1.0.48-1.i386.rpm: V3 DSA signature: NOKEY, key ID
e01260f1
        Preparing...
########################################### [100%]
        1:librrd                 ###########################################
[100%]

        [EMAIL PROTECTED] kits# rpm -Uvh --nodeps libXpm-4.3.99.901-2.i386.rpm
        warning: libXpm-4.3.99.901-2.i386.rpm: V3 DSA signature: NOKEY, key
ID e01260f1
        Preparing...
########################################### [100%]
        1:libXpm                 ###########################################
[100%]


        [EMAIL PROTECTED] kits# up2date XFree86-libs

        Fetching package list for channel: redhat-linux-i386-9...


        [EMAIL PROTECTED] kits# rpm -Uvh  rrdtool-1.0.48-1.i386.rpm
        warning: rrdtool-1.0.48-1.i386.rpm: V3 DSA signature: NOKEY, key ID
e01260f1
        Preparing...
########################################### [100%]
        1:rrdtool                ###########################################
[100%]

Now
        [EMAIL PROTECTED] kits# rpm -Uvh ganglia-webfrontend-2.5.5-1.noarch.rpm

        Preparing...
########################################### [100%]
        1:ganglia-webfrontend    ###########################################
[100%]


I have also edited /etc/php.ini to make these changes:
        safe_mode = On
      safe_mode_exec_dir = /usr/bin

      where /usr/bin/rrdtool is loaded.

I restarted gmond, gmetad and httpd.

Same result, ie. no graphs produced.

In /var/log/httpd/error_log, I found these:

[Wed Apr 21 18:22:18 2004] [notice] caught SIGTERM, shutting down 
[Wed Apr 21 18:22:21 2004] [notice] Digest: generating secret for digest
authentication ... 
[Wed Apr 21 18:22:21 2004] [notice] Digest: done 
[Wed Apr 21 18:22:22 2004] [notice] Apache/2.0.40 (Red Hat Linux) configured
-- resuming normal operations
ERROR: can't parse DEF
'limits='/var/lib/ganglia/rrds/BADC_Cluster/backup.badc.rl.ac.uk/load_one.rr
d':'sum':AVERAGE' -2
ERROR: can't parse DEF
'limits='/var/lib/ganglia/rrds/BADC_Cluster/balmy.badc.rl.ac.uk/load_one.rrd
':'sum':AVERAGE' -2
ERROR: unknown function 'L'
ERROR: unknown function 'M'
ERROR: unknown function 'N'
ERROR: unknown function 'CPU'
ERROR: invalid color def format
ERROR: invalid color def format
ERROR: can't parse DEF
'limits='/var/lib/ganglia/rrds/BADC_Cluster/backup.badc.rl.ac.uk/load_one.rr
d':'sum':AVERAGE' -2
ERROR: can't parse DEF
'limits='/var/lib/ganglia/rrds/BADC_Cluster/balmy.badc.rl.ac.uk/load_one.rrd
':'sum':AVERAGE' -2
ERROR: unknown function 'L'
ERROR: unknown function 'M'
ERROR: unknown function 'CPU'
ERROR: unknown function 'N'
ERROR: invalid color def format
ERROR: invalid color def format
ERROR: can't parse DEF
'limits='/var/lib/ganglia/rrds/BADC_Cluster/backup.badc.rl.ac.uk/load_one.rr
d':'sum':AVERAGE' -2
ERROR: can't parse DEF
'limits='/var/lib/ganglia/rrds/BADC_Cluster/balmy.badc.rl.ac.uk/load_one.rrd
':'sum':AVERAGE' -2
ERROR: unknown function 'L'
ERROR: unknown function 'M'
ERROR: unknown function 'CPU'
ERROR: unknown function 'N'
ERROR: invalid color def format
ERROR: invalid color def format

Still not quite right.  What have I missed?

Is there any good recipie to mount all these software for RedHat 9/RHEL ?

Peter

-----Original Message-----
From: Rene Salmon [mailto:[EMAIL PROTECTED] 
Sent: 19 April 2004 21:16
To: Chiu, PCM (Peter) 
Cc: [email protected]
Subject: RE: [Ganglia-general] A new user question on ganglia-webfrontend


Hi,

I had a similar problem so I hope this helps.  It had to do with the default
install of php to safe_mode = On. This will not allow you to run executables
like rrdtool to generate the graphs unless they are in the
safe_mode_exec_dir=/path-to-somewhere/safe_mode_exec_dir or something like
that.

Just set these variables in you php.ini file. Then either copy rrdtool or
make a simbolic link to your safe_mode_exec_dir

look in your http/logs/error_log file you should see something like
sh: /rrdtool:  not found
sh: /rrdtool:  not found
sh: /rrdtool:  not found

Once you set your safe_mode_exec_dir this should go away and the graphs
should show up

Hope it helps
Rene




On Mon, 19 Apr 2004, Bernard Li wrote:

> Hi Peter:
>
> What happens if you do the following in your 'headnode':
>
> % telnet localhost | grep "<HOST"
>
> Does it list the hosts?
>
> P.S. I assume you have rrdtool installed as well, correct?
>
> Cheers,
>
> Bernard
>
>
> ________________________________
>
>       From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Chiu, PCM (Peter)
>       Sent: Monday, April 19, 2004 12:27
>       To: '[email protected]'
>       Cc: Chiu, PCM (Peter)
>       Subject: [Ganglia-general] A new user question on
ganglia-webfrontend
>
>
>
>       Hi,
>
>       I followed the instructions given in 
> http://ganglia.sourceforge.net/docs/
> <http://ganglia.sourceforge.net/docs/>
>       to mount the ganglia-monitor-core-gmond-2.5.6-1 and gmetad-2.5.6-1,
>       as well as untarring the ganglia-webfrontend-2.5.5.tar into
> /var/www/html/ganglia.
>
>       Having started up gmond and gmetad, I open up 
> http://localhost/ganglia <http://localhost/ganglia>  and
>       I can see the local host report on the web page.
>
>       But there is no graph showing the cpu load and other status
progress.
>
>       The ganglia documentation seems to have stopped here.
>
>       Have I missed anything to enable the graphs showing the various 
> status?
>
>       (PS. I can see some .rrd files under 
> /var/lib/ganglia/rrds/__SummaryInfo__ directories).
>
>       Thanks.   Peter
>
>

Reply via email to