Tuesday, June 10, 2014

Ganglia set up notes

To install additional package
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

To install software on client
Install--> yum install ganglia ganglia-gmond
Modify-->  vim /etc/ganglia/gmond.conf
Start--> service gmond restart

To install software on server
yum install ganglia ganglia-gmetad ganglia-web ganglia-gmond
(ganglia-web is for web. Ganglia runs in Apache Webserver. It has php front-end. The message transfer in UDP (unified data protocol) XML.)

Edit /etc/ganglia/gmetad.conf to specify what is being collected and from where

Edit /etc/ganglia/gmond.conf to specify cluster information, etc

Edit /etc/httpd/conf.d/ganglia.conf to Allow from all

Stop iptables
/etc/init.d/iptables stop

In order to get it running, start service /etc/init.d/gmond, gmetad, httpd

If you receive following message: You can edit /etc/httpd/conf/httpd.conf to specify
#ServerName www.example.com:80 (See https://www.centos.org/forums/viewtopic.php?t=3063#p191141 and http://forums.fedoraforum.org/showpost.php?s=93715a43af9e01e59afb4d18208ed200&p=1245069&postcount=6)

Perhaps you can also try this
http://myconfigure.blogspot.com/2013/03/httpd-aprsockaddrinfoget-failed-for.html
http://www.adminsehow.com/2011/03/how-to-fix-starting-httpd-httpd-apr_sockaddr_info_get-failed/

[root@machine~]# /etc/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: httpd: apr_sockaddr_info_get() failed for machine
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName                                           [  OK  ]
 

If you receive following error when trying to view webpage: http://machine/ganglia/
you need to disable selinux. Edit vim /etc/sysconfig/selinux to specify
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing - SELinux security policy is enforced.
#       permissive - SELinux prints warnings instead of enforcing.
#       disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted

# SETLOCALDEFS= Check local definition changes
SETLOCALDEFS=0


(Reference: http://sourceforge.net/p/ganglia/mailman/ganglia-general/thread/1340954951.77006.YahooMailNeo@web112806.mail.gq1.yahoo.com/)

More on how to disable SELINUX
http://www.crypt.gen.nz/selinux/disable_selinux.html
https://www.centos.org/docs/5/html/5.1/Deployment_Guide/sec-sel-enable-disable.html

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

If that does not work, try
chown -R nobody:root /var/lib/ganglia/rrds 
(Reference: http://viewsby.wordpress.com/2013/03/12/ganglia-error-collecting-data-127-0-0-18652-fsockopen-error-connection-refused/)
 
Also, this might be due to permissions: http://mon.iihe.ac.be/trac/t2b/ticket/39 
 
WOOT!!!! 
if disabling selinux is not an option :

# setsebool -P httpd_can_network_connect 1
 
Reference: https://www.mail-archive.com/ganglia-general@lists.sourceforge.net/msg03748.html
 

Refer to tail -500f /var/log/messages for any possible errors

Run gmetad -d 2 to debug gmetad

Hostname can be specified here: /etc/sysconfig/network

You can use curl command to see the output of the webpage on the same server. this can be helpful if trying to determine if firewall, etc is the issue
curl http://machine/ganglia/

Helpful notes on how to validate and test
http://sachinsharm.wordpress.com/2013/08/17/setup-and-configure-ganglia-3-6-on-centosrhel-6-3/

References: 
How to install Ganglia
http://gubendran.blogspot.com/2013/02/about-ganglia-and-steps-to-install-in.html 
http://acidborg.wordpress.com/2010/10/08/how-to-install-and-configure-ganglia-on-red-hat-enterprise-linux-5/ 
http://unixbhaskar.wordpress.com/2011/05/09/ganglia-installation-on-centos/
http://sourceforge.net/apps/trac/ganglia/wiki/ganglia_quick_start

http://www.slashroot.in/how-install-and-configure-ganglia-gmod-and-ganglia-gmetad


2 comments:

  1. Very clear-cut information easy to understand. Thanks for providing for more updates.
    DevOps Online Training

    ReplyDelete
  2. I would like to thank for the efforts you have made in writing this post. I am hoping the same best work from you in the future as well. DevOps Training in Chennai | DevOps Training in anna nagar | DevOps Training in omr | DevOps Training in porur | DevOps Training in tambaram | DevOps Training in velachery

    ReplyDelete