Meet the ganglia installation problems

These days in Figure ganglia, download the latest ganglia-3.6.0.tar.gz and ganglia-web-3.5.10.tar.gz, the compiler installed smoothly, just after he finished, four pictures, but after a while, the data, there are two pictures will not see, there are some log error. Here is the installation steps.

IP:192.168.1.171 virtual host
Version: CentOS 6.232

1, Compile and install ganglia
tar xf ganglia-3.6.0.tar.gz
cd ganglia-3.6.0
./configure --prefix=/usr/local/ganglia --with-gmetad
make && make install

2, Copy startup files and commands
cp ganglia-3.6.0/gmetad/gmetad.init /etc/init.d/gmetad
cp ganglia-3.6.0/gmond/gmond.init /etc/init.d/gmond
cp /usr/local/ganglia/sbin/* /usr/sbin/

3, Edit the /usr/local/ganglia/etc/gmetad.conf, modify the default path RRDS
About 129 rows are added: rrd_rootdir "/usr/local/ganglia/rrds"

4, Generate the gmond configuration file
gmond --default_config > /usr/local/ganglia/etc/gmond.conf

5, Create a RRDS directory and modify permissions
mkdir -p /usr/locaol/ganglia/rrds/
chown nobody:nobody /usr/locaol/ganglia/rrds/

6, Unzip the ganglia-web-3.5.10.tar.gz
tar xf ganglia-web-3.5.10.tar.gz
mv ganglia-web /var/www/html/ganglia-web

7, The COPY default configuration file
cp -rp /var/www/html/ganglia-web/conf_default.php /var/www/html/ganglia-web/conf.php

8, Modify the default item /var/www/html/ganglia-web/conf.php
Modify the gweb_confdir $conf['gweb_confdir'] = "/var/www/html/ganglia-web";
Modify the gmetad_root $conf['gmetad_root'] = "/usr/local/ganglia";
Create a dwoo_compiled_dir MKDIR -p /var/www/html/ganglia-web/dwoo/compiled
Create a dwoo_cache_dir MKDIR -p /var/www/html/ganglia-web/dwoo/cache
Modify the compiled and cache permissions
chmod 777 /var/www/html/ganglia-web/dwoo/compiled
chmod 777 /var/www/html/ganglia-web/dwoo/cache

9, Start gmond and gmetad
/etc/init.d/gmetad start
/etc/init.d/gmond start

10, Access to ganglia

QQ screenshot 20131029105846.jpg
The graph is normal, only a middle have an icon not see.

11, A few minutes in, data out, but there are two pictures without
Figure 1
QQ screenshot 20131029111910.jpg

Have a look in the RRDS directory permissions
Figure two
1.jpg
Have a look the RRDS directory of the following
Figure three
2.jpg
Figure four
3.jpg
Figure five
4.jpg
Figure six
5.jpg
Figure seven
6.jpg

Look to the data, the content in the.

12, Have a look message log content
Oct 28 18:25:32 localhost /usr/sbin/gmetad[6115]: data_thread() for [my cluster] failed to contact node 127.0.0.1
Oct 28 18:25:32 localhost /usr/sbin/gmetad[6115]: data_thread() got no answer from any [my cluster] datasource
Oct 28 18:25:37 localhost /usr/sbin/gmond[6133]: [PYTHON] Can't open the python module path /usr/local/ganglia/lib/ganglia/python_modules.

Have a look Apache error_log log
[Tue Oct 29 10:44:27 2013] [error] [client 192.168.1.109] File does not exist: /var/www/html/favicon.ico
ERROR: invalid rpn expression in: a0,a1,ADDNAN,a2,ADDNAN,a3,ADDNAN,
ERROR: invalid rpn expression in: a0,a1,ADDNAN,
ERROR: invalid rpn expression in: 0,a0,ADDNAN

12, Through the page elements inspection, found the problem
Figure eight
7.jpg

Check the /var/www/html/ganglia-web/js below, do not have this file.

13, There are other error page, click on the link appears blank page, here is not one one examples out.


Question: ask, what no graphical data, a data, there are two graphs without. Log errors, how to solve ah.




7.jpg

Started by Roger at December 30, 2016 - 4:48 AM

/etc/The hosts does not recommend the use of localhost and 127.0.0.1

Posted by Abigail at January 07, 2017 - 5:40 AM

Problem solved, quite a few detours. Should be a PHP version of the problem. Before the system is used in Centos 5.932. PHP version 5.1.6
Later replaced Centos 6.464. PHP version 5.3.6. Then install, no matter what all. Well, the map is normal.

Posted by Roger at January 09, 2017 - 5:32 AM