9.
how to process ?
Shell Scripts
tools
MRTG
RRDTool
Single host monitoring
10.
components
damons on each node of the cluster
the service collecting data from each node
GUI
most efficient tools are Ganglia,Supermon and
Hawkeye.
distributed monitoring
11. Ganglia
Ganglia is a distributed monitoring tool with web GUI
Ganglia Monitoring Daemon(gmond)
Ganglia Meta Daemon(gmetad)
Ganglia PHP Web Frontend
12. Monitor grid or Cluster
Multicast-based Listen/An6nounce protocol
Depends on open standards
– XML
– XDR compact portable data transport
– RRDTool - Round Robin Database
– APR – Apache Portable Runtime
– Apache HTTPD Server
– PHP based web interface
http://ganglia.sourceforge.net or http://www.ganglia.info
14.
Ganglia Monitoring Daemon(gmond)
Gmond is running on all nodes, it collects CPU,memory, space and etc- these
are called “metric”
- Linux src : ganglia/srclib/libmetrics/linux/
gmond is listening 8649, responsing to gmetad requests
- (try it) telnet localhost 8649 (XML output)
gmond can do broadcast: 239.2.11.71:8649
the XML includes all nodes information
Even just one node is dead does not impact to others
15.
Ganglia Meta Daemon(gmetad)
Gmond does not save info, and it only collects one cluster, which is why
we need gmetad. Gmetad listens on 8651 and 8652, provide more info to
the client.
- (try it) telnet localhost 8651
- (try it) telnet localhost 8652
gmetad accesses gmond 8649 port for collecting cluster info.
gmetad saves data into RRD files
- files are here : /var/lib/ganglia/rrds/
17. A. Install ganglia dependacies :
apr-1.2.8.tar.gz ;
apr-util-1.2.8.tar.gz ;
confuse-2.6.tar.gz ;
expat-2.0.1.tar.gz
Before installing gmetad we have to install RRDTool, default
path : /usr/local/rrdtool-<VERSION>
tar zxvf rrdtool-*.tar.gz
cd rrdtool-*
./configure --prefix=/usr
make;
make install
1 server installation
18. B. Gmetad installation
gmetad is installed --with-gmetad
tar –zxvf ganglia-3.0.3.tar.gz
cd ganglia-*
./configure --prefix=/usr/local/ganglia CFLAGS="-I/rrd/header/path"
CPPFLAGS="- I/rrd/header/path" LDFLAGS="-L/rrd/library/path" --with-
gmetad
(./configure CFLAGS="-I/usr/local/rrdtool-1.0.50/include" CPPFLAGS="-I/usr/local/rrdtool-1.0.50/include"
LDFLAGS="-L/usr/local/rrdtool-1.0.50/lib" --with-gmetad --enable-gexec)
make;
make install