Tuesday, August 19, 2014

Ganglia – error collecting data (127.0.0.1:8652): fsockopen error: Connection refused

If you are having issues after installing Ganglia according to the Blog  Installing and Configuring Ganglia on CentOS 5.8, and if you are facing errors like Ganglia – error collecting data (127.0.0.1:8652): fsockopen error: Connection refused 

First thing do take a look at whether you have the necessary ganglia and rrdcached userid and group in your /etc/passwd and /etc/shadow. You should have something lines like thie

/etc/passwd
..... 
rrdcached:x:101:445:rrdcached:/var/rrdtool/rrdcached:/sbin/nologin
ganglia:x:102:446:Ganglia Monitoring System:/var/lib/ganglia:/sbin/nologin

At /etc/group
rrdcached:x:445:
ganglia:x:446:

Make sure your /var/lib/ganglia permission is
drwxr-xr-x 4 ganglia ganglia 4096 Aug 19 10:47 rrds

Or you can change permission if your permission is not correct
# chown -Rv ganglia.ganglia rrds

No comments: