How to configure Ganglia in CentOS 5.5
I believe many inexperienced people don't know what to do about how to configure Ganglia in CentOS 5.5.Therefore, this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
Configuration steps:
Generally, you need to configure it after installation. The specific configuration files are gmond.conf and gmetad.conf in the / etc/ganglia/ directory.
Gmond.conf
Cluster {
Name = "unspecified"-"changed to" my cluster "
Owner = "unspecified"
Latlong = "unspecified"
Url = "unspecified"
}
Gmetad.conf
Since the default storage path of RRD data in gmetad.conf is / var/lib/ganglia/rrds, you need to create this and change the owner to nobody (originally root), otherwise the following error will occur:
Err1:
# service gmetad status
Gmetad is dead, but subsys is locked.
Err2:
There was an error collecting ganglia data (127.0.0.1 Connection refused): fsockopen error:
Resolution code:
# mkdir-p / var/lib/ganglia/rrds
# chown nobody:nobody / var/lib/ganglia/rrds
Also note the conf.php file under the directory / var/www/html/ganglia/
Correctly specify the path where you install rrdtool. The default is as follows
Define ("RRDTOOL", "/ usr/bin/rrdtool")
After reading the above, have you mastered how to configure Ganglia in CentOS 5.5? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!