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

Recently after rebooting ganglia server and while accessing ganglia-webfrontend I got following error.

There was an error collecting ganglia data (127.0.0.1:8652): fsockopen error: Connection refused.

Until reboot ganglia is working without any issue.

While debugging this issue the reason I got to know is there some problem with ownership permissions to /var/lib/ganglia/rrds.

There are wrong owner and group is set for directory /var/lib/ganglia/rrds.

/var/lib/ganglia/rrds directory following user and group permissions are needed:

User: nobody

Group: root

Use following command to set above permissions

$ chown -R nobody:root /var/lib/ganglia/rrds

After updating the permissions I am able to access ganglia-webfrontend without any issue.

-Sany

9 comments on “Ganglia – error collecting data (127.0.0.1:8652): fsockopen error: Connection refused

  1. Hi shuklaalok7; I just did all you wrote here, but noting, I can’t continue, the same error:

    There was an error collecting ganglia data (127.0.0.1:8652): fsockopen error: Permission denied

    ping ok
    iptables -F

    -ganglia ~]# telnet 192.168.10.1 8652
    Trying 192.168.10.1…
    Connected to 192.168.10.1.
    Escape character is ‘^]’.
    Connection closed by foreign host.

    any help?

    thanks…

  2. I run ” chown -R nobody:root /var/lib/ganglia/rrds ” from ssh and still getting the same error from I.p\ganglia.

    “There was an error collecting ganglia data (127.0.0.1:8652): fsockopen error: Connection refused”

    Could ant one help me in this iisue?
    Thanks in advance

  3. Thanks Solved after “sudo chown nobody:root -R /var/lib/ganglia/rrds/ && service ganglia-monitor restart && sudo service gmetad restart && sudo service apache2 restart”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s