In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "the installation and configuration steps of ganglia". In the daily operation, I believe many people have doubts about the installation and configuration steps of ganglia. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "installation and configuration steps of ganglia". Next, please follow the editor to study!
A ganglia monitor is installed for ceph, as follows.
1. Environment description
Ceph is three physical machines installed on centos6.5: mon0, osd1, and osd2, so you need to install gmond; on all three machines and install gmetad on osd2.
two。 Installation process
Install the epel source first:
Rpm-ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Install the dependency package:
Yum install apr-devel expat-devel
Install gmond in mon0 and osd1:
Yum install ganglia ganglia-gmond httpd php apr apr-util
Install gmetad on osd2:
Yum install ganglia ganglia-gmetad ganglia-gmond ganglia-web httpd php apr apr-util3. Configuration
Configure web:
Mkdir-p / var/www/html/ganglia/ create the ganglia folder under the home directory of the website, which is used to access gangliacp-a / usr/share/ganglia/* / var/www/html/ganglia/ copy the ganglia website code to this directory chkconfig gmond onchkconfig gmetad onchkconfig httpd on
The owner of the default / var/lib/ganglia/rrds is ganglia, and it doesn't have to be renamed nobody as it is said on the Internet.
The conf.php under / var/www/html/ganglia/ may not be valid. You need to make a manual copy:
Cp / usr/share/ganglia/conf.php / var/www/html/ganglia
You may also encounter a situation where web accesses forbidden on centos6.5. You need to modify / etc/httpd/conf.d/ganglia.conf:
Modify Alias / ganglia / usr/share/ganglia Order deny,allow Deny from all Allow from all / / to all Allow from:: 1 # Allow from .example.com
Configuration / etc/ganglia/gmond.conf:
Cluster {name = "ceph" / / cluster name owner = "unspecified" latlong = "unspecified" url = "unspecified"} / * The host section describes attributes of the host, like the location * / host {location = "unspecified"} / * Feel free to specify as many udp_send_channels as you like. Gmond used to only support having a single channel * / udp_send_channel {host = 192.168.108.4 / / gmetad ip port = 8649} / * You can specify as many udp_recv_channels as you like as well. * / udp_recv_channel {port = 8649 bind = 192.168.108.3 / / Native ip family = inet4}
Configure / etc/ganglia/gmetad.conf, here you only need to modify one line:
Data_source "ceph" 192.168.108.4 data_source 8649 / / gmetad ip
Start various services, and then type gmetad_ip/ganglia in web to see the monitoring interface.
The above is the configuration of unicast and multicast, which can be queried by yourself.
At this point, the study on the "installation and configuration steps of ganglia" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.