ben- here is how to troubleshoot your setup.
1. make sure that gmond is running on your web server % ps -ef | grep gmond nobody 26677 1 0 Sep19 ? 00:00:00 /usr/sbin/gmond nobody 26678 26677 0 Sep19 ? 00:00:00 /usr/sbin/gmond nobody 26679 26678 0 Sep19 ? 00:00:00 /usr/sbin/gmond nobody 26682 26678 0 Sep19 ? 00:00:00 /usr/sbin/gmond nobody 26683 26678 0 Sep19 ? 00:00:00 /usr/sbin/gmond nobody 26684 26678 0 Sep19 ? 00:00:00 /usr/sbin/gmond nobody 26685 26678 0 Sep19 ? 00:00:00 /usr/sbin/gmond % telnet localhost 8649 ... <you should get lots of XML output> ... if you don't get XML output then gmond is not working correctly. 2. make sure that gmetad is running on your web server % ps -ef | grep gmetad % telnet localhost 8651 ... <you should get lots of XML output> ... if you don't get XML output when you connect to port 8651 on your web server then gmetad is not working correctly. especially check your data_source tags... if you have a line data_source "my cluster" 127.0.0.1 then make sure a "telnet 127.0.0.1 8649" works. 3. check that gmetad is saving data to the round-robin database directory % cd /var/lib/ganglia/rrds % find . . ./Matt box ./Matt box/dhcp-50-165.Millennium.Berkeley.EDU ./Matt box/dhcp-50-165.Millennium.Berkeley.EDU/load_one.rrd ./Matt box/dhcp-50-165.Millennium.Berkeley.EDU/load_fifteen.rrd ./Matt box/dhcp-50-165.Millennium.Berkeley.EDU/cpu_nice.rrd ./Matt box/dhcp-50-165.Millennium.Berkeley.EDU/pkts_out.rrd ./Matt box/dhcp-50-165.Millennium.Berkeley.EDU/cpu_user.rrd ./Matt box/dhcp-50-165.Millennium.Berkeley.EDU/proc_total.rrd ./Matt box/dhcp-50-165.Millennium.Berkeley.EDU/mem_free.rrd ... if you don't see files that have the extension ".rrd" then you know the databases are not being created. the files should be owned by the same user that gmetad runs as (by default "nobody"). if they aren't then gmetad will not be able to update the databases. 4. make sure you have the latest web frontend. download it from http://ganglia.sourceforge.net/downloads.php. 5. take a look at the conf.php file .. especially for the following variables.. $gmetad_root = "/var/lib/ganglia"; $gmetad_ip = "127.0.0.1"; $gmetad_port = 8651; the defaults should work for you but if you modified your /etc/gmetad.conf then you need to match it in conf.php. i think that you'll find the problem is with gmond. the web frontend would complain if it can't connect to gmetad. it seems that gmetad is not able to get the data from gmond on the web server. good luck and let me know if this solves you problem. otherwise, we'll dig deeper. -matt Today, Benjamin Khoo wrote forth saying... > hi > > thanks for your advise... > i have been trying.. but it doesn't seem to work... > i have the latest version of PHP compiled on my server.... > http://himiko.dnsalias.net:90/testphp.php > and i have the phpinfo page here... > > my /var/lib/ganglia/rrds is also owned by nobody > and pointed by $gmetad_root > > i still can't figure out what is wrong.. i have turned on registration of > global variables as well... > i can't seem to be able to pick up the $clusters array... > > do you have any idea anywhere might be wrong?? > the full set of errors that i am facing is viewable here > http://himiko.dnsalias.net:90/ganglia/index.php > > ----- Original Message ----- From: "Benjamin Khoo" > <[EMAIL PROTECTED]> > > i keep getting errors that are > ======= > > Warning: ksort() expects parameter 1 to be array, null given in > > /home/httpd/html/ganglia/header.php on line 60 > > Warning: Invalid > argument supplied for foreach() in > /home/httpd/html/ganglia/header.php on > line 61 > > Warning: Invalid argument supplied for foreach() in > > /home/httpd/html/ganglia/header.php on line 116 This might be because of an > older or bad installation of php.. might want to go with a fresh install of > the latest php for apache if you haven't done so already. I installed the > latest version last week and it worked ok. > ======== > and my conf.php > file has no changes short of > ======== > ....... > $gmetad_root = > "/usr/sbin/gmetad" > ========= This most definitely should be pointing to > your rrds directory.. /var/lib/ganglia/rrds is what it is, I believe. You > should have made this directory manually and set the ownership on it to > 'nobody', as pointed out when you tried to start gmetad. From the looks of > the surrounding documentation in the gmetad.conf the $metad_root = > "/usr/sbin/gmetad" is a left over syntax from a previous version of gmetad > that used that approach ... I hope this one change alone does the trick for > you! Lester > > > ------------------------------------ > bENJAMIN kHOO > qIU wENDA > Web Address: http://www.copperblue.per.sg > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Ganglia-general mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ganglia-general >

