In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to install the Ganglia monitoring system, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Installation configuration:
1. System updates:
Yum-y install apr-devel apr-util check-devel cairo-devel pango-devel libxml2-devel glib2-devel dbus-devel freetype-devel fontconfig-devel gcc-c++ expat-devel python-devel libXrender-devel zlib libpng freetype libjpeg fontconfig gd libxml2 pcre pcre-devel
2. Install libconfuse dependency
Download address: (the source address may be changed, search the address and install it in real time)
32-bit:
Wget http://download.fedora.redhat.com/pub/epel/5/i386/libconfuse-2.5-4.el5.i386.rpmwget http://download.fedora.redhat.com/pub/epel/5/i386/libconfuse-devel-2.5-4.el5.i386.rpm
64-bit:
Wget http://download.fedora.redhat.com/pub/epel/5/x86_64/libconfuse-2.5-4.el5.x86_64.rpmwget http://download.fedora.redhat.com/pub/epel/5/x86_64/libconfuse-devel-2.5-4.el5.x86_64.rpm
Installation:
Rpm-ivh libconfuse-2.5-4.el5.x86_64.rpmrpm-ivh libconfuse-devel-2.5-4.el5.x86_64.rpm
3. Graphical monitoring interface support
Corresponding to the background, I believe it is basically clear that many monitoring systems, especially in the need to combine web graphics intuitive browsing can not be separated from RRDTool-based tools, such as cacti.
Wget http://oss.oetiker.ch/rrdtool/pub/rrdtool.tar.gztar zxvf rrdtool.tar.gzcd rrdtool-1.4.4./configure-- prefix=/usrmake-j8make installwhich rrdtoolldconfig
4. The protagonist Ganglia3.1.7 takes the stage.
For more information, please take a look at its official website: http://ganglia.info/
Wget http://cdnetworks-kr-1.dl.sourceforge.net/project/ganglia/ganglia%20monitoring%20core/3.1.7/ganglia-3.1.7.tar.gztar zxvf ganglia-3.1.7.tar.gz./configure-with-gmetad-sysconfdir=/etc/gangliamake-j8make install
5. Simple settings on the monitoring server
The server side of the monitoring point is mainly composed of client-side Ganglia Monitoring Daemon (gmond) and server-side Ganglia Meta Daemon (gmetad), as well as Ganglia PHP Web Frontend (based on Web web page dynamic access), so it needs gmond, gmetad and Web server (Apache/Nginx, etc.) support.
Gmond is mainly used to collect and send the relevant information and data of the monitored node server (so the monitored node server only needs to configure the gmond service and will also be mentioned below); while the gmetad service program is only necessary in the cluster node manager, its main function is to poll the gmond program and count the cluster node information detected by gmond Web dynamic mode is mainly combined with RRDTool function library to graphically display and browse the collected data.
Cd / home/src/ganglia-3.1.7 # you should already be in this directorycp-a web/* / data/web/www/ganglia/ # make sure you have apache/nginx installed This is the web interfacecp gmetad/gmetad.init / etc/init.d/gmetad # startup scriptcp gmond/gmond.init / etc/init.d/gmondgmond-t | tee / etc/ganglia/gmond.conf # generate initial gmond configmkdir-p / var/lib/ganglia/rrds # place where RRDTool graphs will be storedchown nobody:nobody / var/lib/ganglia/rrds # make sure RRDTool can write here./etc/init.d/gmetad start # start service/etc/init.d/gmond start
6. Settings of monitored client server node
Nodes only need to install gmond (client): RRDTool and gmetad support is no longer needed.
The compilation and installation method is similar to the server side, except that you do not need to use the-with-gmetad parameter, or you can directly copy some of the corresponding files from the monitoring server node to other node clients and enable the gmond service.
Service configuration:
(mainly: node addition, profile modification, monitoring content service increase)
The time relationship will be updated tomorrow in detail. Or you can look directly at the reference materials.
Some problems that may be encountered:
1, Ganglia web browsing a lot of charts can not be displayed properly.
Make sure that the location of the site program directory is incorrect:
Vim / data/web/www/ganglia/conf.php:# Where gmetad stores the rrd archives.$gmetad_root = "/ var/lib/ganglia"; $rrds = "$gmetad_root/rrds"; # Leave this alone if rrdtool is installed in $gmetad_root,# otherwise, change it if it is installed elsewhere (like / usr/bin) define ("RRDTOOL", "/ usr/local/rrdtool/bin/rrdtool")
Note the * line. If you install it using rpm, it is likely to be / usr/bin/rrdtool. If you use source code to compile and install, you need my personal environment.
And modify the / var/lib/ganglia/rrds directory user read and write permissions are correct, delete the data under / var/lib/ganglia/rrds/*, and then restart gmond and gmetad.
The above is all the contents of the article "how to install the Ganglia Monitoring system". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.