1、There was an error collecting ganglia data (127.0.0.1:8652): fsockopen error: Permission denied
原因,apache用户无法访问rrd目录,执行journalctl -xe命令有提示
Mar 15 12:13:33 hadoop-n /usr/local/ganglia/sbin/gmetad[6215]: Please make sure that /var/lib/ganglia/rrds is owned by nobody
将rrd目录的所有者和权限组改成nobody后解决
2,Starting GANGLIA gmetad: /usr/sbin/gmetad: error while loading shared libraries: librrd.so.4: cannot open shared object file: No such file or directory
执行
ln -s /usr/local/lib/librrd.so.4 /lib64