| 1 |
<?xml version="1.0" ?> |
| 2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
| 3 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 |
<head> |
| 5 |
<title>Ganglia</title> |
| 6 |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> |
| 7 |
<link rev="made" href="mailto:root@localhost" /> |
| 8 |
</head> |
| 9 |
|
| 10 |
<body style="background-color: white"> |
| 11 |
|
| 12 |
|
| 13 |
<!-- INDEX BEGIN --> |
| 14 |
<div name="index"> |
| 15 |
<p><a name="__index__"></a></p> |
| 16 |
|
| 17 |
<ul> |
| 18 |
|
| 19 |
<li><a href="#name">Name</a></li> |
| 20 |
<li><a href="#version">Version</a></li> |
| 21 |
<li><a href="#synopsis">Synopsis</a></li> |
| 22 |
<li><a href="#installation">Installation</a></li> |
| 23 |
<ul> |
| 24 |
|
| 25 |
<li><a href="#monitoring_core_installation">Monitoring Core Installation</a></li> |
| 26 |
<li><a href="#php_web_frontend_installation">PHP Web Frontend Installation</a></li> |
| 27 |
</ul> |
| 28 |
|
| 29 |
<li><a href="#configuration">Configuration</a></li> |
| 30 |
<ul> |
| 31 |
|
| 32 |
<li><a href="#gmond_configuration">Gmond Configuration</a></li> |
| 33 |
<li><a href="#gmetad_configuration">Gmetad Configuration</a></li> |
| 34 |
<li><a href="#php_web_frontend_configuration">PHP Web Frontend Configuration</a></li> |
| 35 |
</ul> |
| 36 |
|
| 37 |
<li><a href="#commandline_tools">Commandline Tools</a></li> |
| 38 |
<ul> |
| 39 |
|
| 40 |
<li><a href="#gmetric">Gmetric</a></li> |
| 41 |
<li><a href="#gstat">Gstat</a></li> |
| 42 |
</ul> |
| 43 |
|
| 44 |
<li><a href="#extending_ganglia_through_metric_modules">Extending Ganglia through metric modules</a></li> |
| 45 |
<li><a href="#frequently_asked_questions__faq_">Frequently Asked Questions (FAQ)</a></li> |
| 46 |
<li><a href="#getting_support">Getting Support</a></li> |
| 47 |
<li><a href="#copyright">Copyright</a></li> |
| 48 |
<li><a href="#authors">Authors</a></li> |
| 49 |
<li><a href="#contributors">Contributors</a></li> |
| 50 |
</ul> |
| 51 |
|
| 52 |
<hr name="index" /> |
| 53 |
</div> |
| 54 |
<!-- INDEX END --> |
| 55 |
|
| 56 |
<p> |
| 57 |
</p> |
| 58 |
<hr /> |
| 59 |
<h1><a name="name">Name</a></h1> |
| 60 |
<p><strong>ganglia</strong> - distributed monitoring system</p> |
| 61 |
<p> |
| 62 |
</p> |
| 63 |
<hr /> |
| 64 |
<h1><a name="version">Version</a></h1> |
| 65 |
<p><strong>ganglia</strong> 3.7.2</p> |
| 66 |
<p>The latest version of this software and document will always be found at |
| 67 |
<a href="http://ganglia.sourceforge.net/.">http://ganglia.sourceforge.net/.</a></p> |
| 68 |
<p> |
| 69 |
</p> |
| 70 |
<hr /> |
| 71 |
<h1><a name="synopsis">Synopsis</a></h1> |
| 72 |
<pre> |
| 73 |
______ ___ |
| 74 |
/ ____/___ _____ ____ _/ (_)___ _ |
| 75 |
/ / __/ __ `/ __ \/ __ `/ / / __ `/ |
| 76 |
/ /_/ / /_/ / / / / /_/ / / / /_/ / |
| 77 |
\____/\__,_/_/ /_/\__, /_/_/\__,_/ |
| 78 |
/____/ Distributed Monitoring System</pre> |
| 79 |
<p>Ganglia is a scalable distributed monitoring system for high-performance computing systems |
| 80 |
such as clusters and Grids. It is based on a hierarchical design targeted at federations of |
| 81 |
clusters. It relies on a multicast-based listen/announce protocol to monitor state within |
| 82 |
clusters and uses a tree of point-to-point connections amongst representative cluster nodes |
| 83 |
to federate clusters and aggregate their state. It leverages widely used technologies such as |
| 84 |
XML for data representation, XDR for compact, portable data transport, and RRDtool for data |
| 85 |
storage and visualization. It uses carefully engineered data structures and algorithms to |
| 86 |
achieve very low per-node overheads and high concurrency. The implementation is robust, has |
| 87 |
been ported to an extensive set of operating systems and processor architectures, and is |
| 88 |
currently in use on over 500 clusters around the world. It has been used to link clusters |
| 89 |
across university campuses and around the world and can scale to handle clusters with 2000 nodes.</p> |
| 90 |
<p>The ganglia system is comprised of two unique daemons, a PHP-based web frontend and a few other |
| 91 |
small utility programs.</p> |
| 92 |
<dl> |
| 93 |
<dt><strong><a name="daemon" class="item"><strong>Ganglia Monitoring Daemon (gmond)</strong></a></strong></dt> |
| 94 |
|
| 95 |
<dd> |
| 96 |
<p>Gmond is a multi-threaded daemon which runs on each cluster node you want to monitor. |
| 97 |
Installation is easy. You don't have to have a common NFS filesystem or a database backend, |
| 98 |
install special accounts, maintain configuration files or other annoying hassles.</p> |
| 99 |
<p>Gmond has four main responsibilities: monitor changes in host state, announce relevant changes, |
| 100 |
listen to the state of all other ganglia nodes via a unicast or multicast channel and answer requests for |
| 101 |
an XML description of the cluster state.</p> |
| 102 |
<p>Each gmond transmits in information in two different ways: unicasting/multicasting host state in external data |
| 103 |
representation (XDR) format using UDP messages or sending XML over a TCP connection.</p> |
| 104 |
</dd> |
| 105 |
<dt><strong><strong>Ganglia Meta Daemon (gmetad)</strong></strong></dt> |
| 106 |
|
| 107 |
<dd> |
| 108 |
<p>Federation in Ganglia is achieved using a tree of point-to-point |
| 109 |
connections amongst representative cluster nodes to aggregate the |
| 110 |
state of multiple clusters. At each node in the tree, a Ganglia Meta |
| 111 |
Daemon (<code>gmetad</code>) periodically polls a collection of child data |
| 112 |
sources, parses the collected XML, saves all numeric, volatile metrics |
| 113 |
to round-robin databases and exports |
| 114 |
the aggregated XML over a TCP sockets to clients. Data sources may be either |
| 115 |
<code>gmond</code> daemons, representing specific clusters, or other |
| 116 |
<code>gmetad</code> daemons, representing sets of clusters. Data sources |
| 117 |
use source IP addresses for access control and can be specified using |
| 118 |
multiple IP addresses for failover. The latter capability is natural |
| 119 |
for aggregating data from clusters since each <code>gmond</code> daemon |
| 120 |
contains the entire state of its cluster.</p> |
| 121 |
</dd> |
| 122 |
<dt><strong><a name="ganglia_php_web_frontend" class="item"><strong>Ganglia PHP Web Frontend</strong></a></strong></dt> |
| 123 |
|
| 124 |
<dd> |
| 125 |
<p>The Ganglia web frontend provides a view of the gathered information |
| 126 |
via real-time dynamic web pages. Most importantly, it displays Ganglia |
| 127 |
data in a meaningful way for system administrators and computer users. |
| 128 |
Although the web frontend to ganglia started as a simple HTML view of the |
| 129 |
XML tree, it has evolved into a system that keeps a colorful history of |
| 130 |
all collected data.</p> |
| 131 |
<p>The Ganglia web frontend caters to system administrators and users. For |
| 132 |
example, one can view the CPU utilization over the past hour, day, week, |
| 133 |
month, or year. The web frontend shows similar graphs for Memory usage, |
| 134 |
disk usage, network statistics, number of running processes, and all other |
| 135 |
Ganglia metrics.</p> |
| 136 |
<p>The web frontend depends on the existence of the <code>gmetad</code> which provides it |
| 137 |
with data from several Ganglia sources. Specifically, the web frontend will |
| 138 |
open the local port 8651 (by default) and expects to receive a Ganglia XML tree. |
| 139 |
The web pages themselves are highly dynamic; any change to the Ganglia data appears |
| 140 |
immediately on the site. This behavior leads to a very responsive site, but requires |
| 141 |
that the full XML tree be parsed on every page access. Therefore, the Ganglia web |
| 142 |
frontend should run on a fairly powerful, dedicated machine if it presents a large |
| 143 |
amount of data.</p> |
| 144 |
<p>The Ganglia web frontend is written in the PHP scripting language, and uses graphs |
| 145 |
generated by <code>gmetad</code> to display history information. It has been tested on many |
| 146 |
flavours of Unix (primarily Linux) with the Apache webserver and the PHP module (5.0.0 or later). |
| 147 |
The GD graphics library for PHP is used to generate pie charts in the frontend and |
| 148 |
needs to be installed separately. On RPM-based system, it is usually provided by |
| 149 |
the php-gd package.</p> |
| 150 |
</dd> |
| 151 |
</dl> |
| 152 |
<p> |
| 153 |
</p> |
| 154 |
<hr /> |
| 155 |
<h1><a name="installation">Installation</a></h1> |
| 156 |
<p>The latest version of all ganglia software can always be downloaded from <a href="http://ganglia.info/">http://ganglia.info/</a></p> |
| 157 |
<p>Ganglia runs on Linux (i386, x86_64, ia64, sparc, alpha, powerpc, m68k, mips, arm, hppa, s390), |
| 158 |
FreeBSD, NetBSD, OpenBSD, DragonflyBSD, MacOS X, Solaris, AIX, IRIX, Tru64, HPUX and Windows NT/XP/2000/2003/2008 making it as |
| 159 |
portable as it is scalable.</p> |
| 160 |
<p> |
| 161 |
</p> |
| 162 |
<h2><a name="monitoring_core_installation">Monitoring Core Installation</a></h2> |
| 163 |
<p>If you use the Linux RPMs provided on the ganglia web site, you can skip |
| 164 |
to the end of this section.</p> |
| 165 |
<p>Ganglia uses the GNU autoconf so compilation and installation of the monitoring core is basically</p> |
| 166 |
<pre> |
| 167 |
% ./configure |
| 168 |
% make |
| 169 |
% make install</pre> |
| 170 |
<p>but there are some issues that you need to take a look at first.</p> |
| 171 |
<dl> |
| 172 |
<dt><strong><a name="kernel_multicast_support" class="item"><strong>Kernel multicast support</strong></a></strong></dt> |
| 173 |
|
| 174 |
<dd> |
| 175 |
<p>If you use the ganglia multicast support, you must have a kernel that |
| 176 |
supports multicast. The |
| 177 |
vast majority of machines have multicast support by default. If you have |
| 178 |
problems with ganglia this is a core issue.</p> |
| 179 |
</dd> |
| 180 |
<dt><strong><a name="gmetad_is_not_installed_by_default" class="item"><strong>Gmetad is not installed by default</strong></a></strong></dt> |
| 181 |
|
| 182 |
<dd> |
| 183 |
<p>Since <code>gmetad</code> relies on the Round-Robin Database Tool ( see <a href="http://www.rrdtool.org/">http://www.rrdtool.org/</a> ) |
| 184 |
it will not be compiled unless you explicit request it by using a <strong>--with-gmetad</strong> flag.</p> |
| 185 |
<pre> |
| 186 |
% ./configure --with-gmetad</pre> |
| 187 |
<p>The configure script will fail if it cannot find the rrdtool library and header files. |
| 188 |
By default, it expects to find them at /usr/include/rrd.h and |
| 189 |
/usr/lib/librrd.so. |
| 190 |
If you installed them in different locations then you need to instruct |
| 191 |
configure where to find them using:</p> |
| 192 |
<pre> |
| 193 |
% ./configure --with-librrd=/rrd/path --with-gmetad</pre> |
| 194 |
<p>Of course, you need to substitute <code>/rrd/path</code> with the real location of the |
| 195 |
rrd tool directory where the header file can be located inside an include |
| 196 |
subdirectory and the library can be located inside a lib subdirectory. |
| 197 |
As an alternative you could set "-L" in LDFLAGS, and "-I" in CFLAGS and |
| 198 |
CPPFLAGS for the library path and the header path respectively.</p> |
| 199 |
</dd> |
| 200 |
<dt><strong><a name="aix_should_not_be_compiled_with_shared_libraries" class="item"><strong>AIX should not be compiled with shared libraries</strong></a></strong></dt> |
| 201 |
|
| 202 |
<dd> |
| 203 |
<p>You must add the <code>--disable-shared</code> configure flags if you are running on AIX. |
| 204 |
For more details refer to the README.AIX file</p> |
| 205 |
<pre> |
| 206 |
% ./configure --disable-shared</pre> |
| 207 |
</dd> |
| 208 |
<dt><strong><a name="solaris_dependencies_could_be_problematic" class="item"><strong>Solaris dependencies could be problematic</strong></a></strong></dt> |
| 209 |
|
| 210 |
<dd> |
| 211 |
<p>Not really a Solaris specific problem, but since Solaris has several different |
| 212 |
package repositories, all of them unofficial, it is difficult to be sure |
| 213 |
that all possible permutations have been confirmed to work reliably.</p> |
| 214 |
<p>Be sure to have all dependencies covered, as explained in the INSTALL file and |
| 215 |
to use GNU make and a gcc compiler that builds 32bit binaries with all other |
| 216 |
libraries matching that ISA.</p> |
| 217 |
<p>When in doubt, build the problematic dependency from source and remember |
| 218 |
to distribute it together with your ganglia build as everything is dynamically |
| 219 |
linked by default.</p> |
| 220 |
<p>Be particularly careful with libConfuse, especially if using the old 2.5 version. |
| 221 |
LibConfuse 2.5 is known to be incorrectly packaged and to compile by default |
| 222 |
as a static library which will fail to link with ganglia.</p> |
| 223 |
</dd> |
| 224 |
<dt><strong><a name="propietary_nix_systems_might_not_work_at_all" class="item"><strong>Propietary *NIX systems might not work at all</strong></a></strong></dt> |
| 225 |
|
| 226 |
<dd> |
| 227 |
<p>The good news is that the libmetrics code that used to work before 3.1 is |
| 228 |
still most likely working fine and so there is nothing fundamentally broken |
| 229 |
about it.</p> |
| 230 |
<p>But the bad news is that in order to add the dynamic metric functionality, |
| 231 |
the build system and the way gmond used to locate its metrics had to be |
| 232 |
changed significantly. Therefore getting gmond to build and work again |
| 233 |
required fixes to be implemented for all platforms.</p> |
| 234 |
<p>Since none of the developers had access to HPUX, IRIX, Tru64 (OSF/1), or Darwin |
| 235 |
(MacOS X) those platforms might not be able to build or run a 3.1 gmond |
| 236 |
yet. If you have access to any of these platforms and want to run ganglia 3.1, |
| 237 |
feel free to drop by the ganglia-developers list with suggestions, or even |
| 238 |
better patches.</p> |
| 239 |
</dd> |
| 240 |
<dt><strong><a name="gexec_confusion" class="item"><strong>GEXEC confusion</strong></a></strong></dt> |
| 241 |
|
| 242 |
<dd> |
| 243 |
<p>GEXEC is a scalable cluster remote execution system which provides fast, RSA authenticated |
| 244 |
remote execution of parallel and distributed jobs. It provides transparent forwarding of |
| 245 |
stdin, stdout, stderr, and signals to and from remote processes, provides local environment |
| 246 |
propagation, and is designed to be robust and to scale to systems over 1000 nodes. Internally, |
| 247 |
GEXEC operates by building an n-ary tree of TCP sockets and threads between gexec daemons and |
| 248 |
propagating control information up and down the tree. By using hierarchical control, GEXEC |
| 249 |
distributes both the work and resource usage associated with massive amounts of parallelism |
| 250 |
across multiple nodes, thereby eliminating problems associated with single node resource limits |
| 251 |
(e.g., limits on the number of file descriptors on front-end nodes). |
| 252 |
(from <a href="http://www.theether.org/gexec">http://www.theether.org/gexec</a> )</p> |
| 253 |
<p><code>gexec</code> is a great cluster execution tool but integrating it with ganglia is a bit clumsy. |
| 254 |
GEXEC can run standalone without access to a ganglia <code>gmond</code>. In standalone |
| 255 |
mode gexec will use the hosts listed in your GEXEC_SVRS variable to run on. For example, |
| 256 |
say I want to run <code>hostname</code> on three machines in my cluster: <code>host1</code>, <code>host2</code> and <code>host3</code>. |
| 257 |
I use the following command line.</p> |
| 258 |
<pre> |
| 259 |
% GEXEC_SVRS="host1 host2 host3" gexec -n 3 hostname</pre> |
| 260 |
<p>and gexec would build an n-ary tree (binary tree by default) of TCP sockets to those machines |
| 261 |
and run the command <code>hostname</code></p> |
| 262 |
<p>As an added feature, you can have <code>gexec</code> pull a host list from a locally running gmond and |
| 263 |
use that as the host list instead of GEXEC_SVRS. The list is load balanced and <code>gexec</code> will |
| 264 |
start the job on the <em>n</em> least-loaded machines.</p> |
| 265 |
<p>For example..</p> |
| 266 |
<pre> |
| 267 |
% gexec -n 5 hostname</pre> |
| 268 |
<p>will run the command <code>hostname</code> on the five least-loaded machines in a cluster.</p> |
| 269 |
<p>To turn on the <code>gexec</code> feature in ganglia you must configure ganglia with the <code>--enable-gexec</code> |
| 270 |
flag</p> |
| 271 |
<pre> |
| 272 |
% ./configure --enable-gexec</pre> |
| 273 |
<p>Enabling <code>gexec</code> means that by default any host running gmond will send a special |
| 274 |
message announcing that gexec is installed on it and open for requests.</p> |
| 275 |
<p>Now the question is, what if I don't want gexec to run on every host in my cluster? For |
| 276 |
example, you may not want to have <code>gexec</code> run jobs on your cluster frontend nodes.</p> |
| 277 |
<p>You simply add the following line to your <code>gmond</code> configuration file (<code>/etc/ganglia/gmond.conf</code> by |
| 278 |
default)</p> |
| 279 |
<pre> |
| 280 |
no_gexec on</pre> |
| 281 |
<p>Simple huh? I know the configuration file option, <code>no_gexec</code>, seems crazy (and it is). Why |
| 282 |
have an option that says "yes to no gexec"? The early versions of gmond didn't use a configuration |
| 283 |
file but instead commandline options. One of the commandline options was simply <code>--no-gexec</code> |
| 284 |
and the default was to announce gexec as on.</p> |
| 285 |
</dd> |
| 286 |
</dl> |
| 287 |
<p>Once you have successfully run</p> |
| 288 |
<pre> |
| 289 |
% ./configure <options> |
| 290 |
% make |
| 291 |
% make install</pre> |
| 292 |
<p>you should find the following files installed in <code>/usr</code> (by default).</p> |
| 293 |
<pre> |
| 294 |
/usr/bin/gstat |
| 295 |
/usr/bin/gmetric |
| 296 |
/usr/sbin/gmond |
| 297 |
/usr/sbin/gmetad</pre> |
| 298 |
<p>If you installed ganglia using RPMs then these files will be installed when you install |
| 299 |
the RPM. The RPM is installed simply by running</p> |
| 300 |
<pre> |
| 301 |
% rpm -Uvh ganglia-gmond-3.7.2.i386.rpm |
| 302 |
% rpm -Uvh ganglia-gmetad-3.7.2.i386.rpm</pre> |
| 303 |
<p>Once you have the necessary binaries installed, you can test your installation by running</p> |
| 304 |
<pre> |
| 305 |
% ./gmond</pre> |
| 306 |
<p>This will start the ganglia monitoring daemon. You should then be able to run</p> |
| 307 |
<pre> |
| 308 |
% telnet localhost 8649</pre> |
| 309 |
<p>And get an XML description of the state of your machine (and any other hosts running gmond |
| 310 |
at the time).</p> |
| 311 |
<p>If you are installing by source on Linux, scripts are provided to start <code>gmetad</code> and <code>gmond</code> |
| 312 |
at system startup. They are easy to install from the source root.</p> |
| 313 |
<pre> |
| 314 |
% cp ./gmond/gmond.init /etc/rc.d/init.d/gmond |
| 315 |
% chkconfig --add gmond |
| 316 |
% chkconfig --list gmond |
| 317 |
gmond 0:off 1:off 2:on 3:on 4:on 5:on 6:off |
| 318 |
% /etc/rc.d/init.d/gmond start |
| 319 |
Starting GANGLIA gmond: [ OK ]</pre> |
| 320 |
<p>Repeat this step with gmetad.</p> |
| 321 |
<p> |
| 322 |
</p> |
| 323 |
<h2><a name="php_web_frontend_installation">PHP Web Frontend Installation</a></h2> |
| 324 |
<ol> |
| 325 |
<li> |
| 326 |
<p>The <strong>./web</strong> directory of the ganglia distribution contains all the necessary PHP files for |
| 327 |
running your web frontend. Copy those files to <code>/var/www/html</code>, however look for the variable |
| 328 |
<code>DocumentRoot</code> in your Apache configuration |
| 329 |
files to be sure. All the PHP script files use relative URLs in their links, so you may |
| 330 |
place the <code>ganglia/</code> directory anywhere convenient.</p> |
| 331 |
</li> |
| 332 |
<li> |
| 333 |
<p>Ensure your webserver understands how to process PHP script files. Currently, the |
| 334 |
web frontend contains certain php language that requires PHP version 5 or greater. |
| 335 |
Processing PHP script files usually requires a webserver module, such as the |
| 336 |
<code>mod_php</code> for the popular Apache webserver. In RedHat Linux, the RPM package that |
| 337 |
provides this module is called simply "php".</p> |
| 338 |
<p>For Apache, <code>mod_php</code> module must be enabled. The following lines should appear |
| 339 |
somewhere in Apache's *conf files. This example applies to Red Hat Linux (and |
| 340 |
clones). The actual filenames may vary on your system. If you installed the php |
| 341 |
module using an RPM package, this work will have been done automatically.</p> |
| 342 |
<pre> |
| 343 |
LoadModule php5_module modules/libphp5.so</pre> |
| 344 |
<pre> |
| 345 |
AddHandler php5-script .php |
| 346 |
AddType text/html .php</pre> |
| 347 |
</li> |
| 348 |
<li> |
| 349 |
<p>The webfrontend requires the existance of the gmetad package on the webserver. |
| 350 |
Follow the installation instructions on the gmetad page. Specifically, the webfrontend |
| 351 |
requires the rrdtool and the <code>rrds/</code> directory from gmetad. If you are a power user, |
| 352 |
you may use NFS to simulate the local existance of the rrds.</p> |
| 353 |
</li> |
| 354 |
<li> |
| 355 |
<p>Test your installation. Visit the URL:</p> |
| 356 |
<pre> |
| 357 |
<a href="http://localhost/ganglia/">http://localhost/ganglia/</a></pre> |
| 358 |
<p>With a web-browser, where localhost is the address of your webserver.</p> |
| 359 |
</li> |
| 360 |
</ol> |
| 361 |
<p>Installation of the web frontend is simplified on Linux by using rpm.</p> |
| 362 |
<pre> |
| 363 |
% rpm -Uvh ganglia-web-3.7.2-1.noarch.rpm |
| 364 |
Preparing... ########################################### [100%] |
| 365 |
1:ganglia-web ########################################### [100%]</pre> |
| 366 |
<p> |
| 367 |
</p> |
| 368 |
<hr /> |
| 369 |
<h1><a name="configuration">Configuration</a></h1> |
| 370 |
<p> |
| 371 |
</p> |
| 372 |
<h2><a name="gmond_configuration">Gmond Configuration</a></h2> |
| 373 |
<p>The configuration file format has changed between gmond version 2.5.x and version |
| 374 |
3.x. The change was necessary in order to allow more complex configuration options.</p> |
| 375 |
<p>Gmond has a default configuration it will use if it does not find the default configuration |
| 376 |
file <strong>/etc/ganglia/gmond.conf</strong>. To see the default configuration simply run the command:</p> |
| 377 |
<pre> |
| 378 |
% gmond --default_config</pre> |
| 379 |
<p>and gmond will output its default configuration to stdout. This default configuration can |
| 380 |
serve as a good starting place for building a more custom configuration.</p> |
| 381 |
<pre> |
| 382 |
% gmond --default_config > gmond.conf</pre> |
| 383 |
<p>would create a file <strong>gmond.conf</strong> which you can then edit to taste and copy to <strong>/etc/ganglia/gmond.conf</strong> |
| 384 |
or elsewhere.</p> |
| 385 |
<p>To start gmond with a configuration file other then <strong>/etc/ganglia/gmond.conf</strong>, simply specify the |
| 386 |
configuration file location by running</p> |
| 387 |
<pre> |
| 388 |
% gmond --config /my/ganglia/configs/custom.conf</pre> |
| 389 |
<p>If you want to convert a 2.5.x configuration file to 3.x file format, run the following command</p> |
| 390 |
<pre> |
| 391 |
% gmond --convert ./old_25_config.conf</pre> |
| 392 |
<p>and gmond with output the equivalent 3.x configuration file to stdout. You can then redirect |
| 393 |
that output to a new configuration file which can serve as a starting point for your configuration.</p> |
| 394 |
<pre> |
| 395 |
% gmond --convert ./old_25_config.conf > ./new_26_config.conf</pre> |
| 396 |
<p>For details about gmond configuration options, simply run</p> |
| 397 |
<pre> |
| 398 |
% man gmond.conf</pre> |
| 399 |
<p>for a complete listing of options with detailed explanations.</p> |
| 400 |
<p> |
| 401 |
</p> |
| 402 |
<h2><a name="gmetad_configuration">Gmetad Configuration</a></h2> |
| 403 |
<p>The behavior of the Ganglia Meta Daemon is completely controlled by a single configuration |
| 404 |
file which is by default <code>/etc/ganglia/gmetad.conf</code>. For gmetad to do anything useful you much |
| 405 |
specify at least one <code>data_source</code> in the configuration. The format of the data_source |
| 406 |
line is as follows</p> |
| 407 |
<pre> |
| 408 |
data_source "Cluster A" 127.0.0.1 1.2.3.4:8655 1.2.3.5:8625 |
| 409 |
data_source "Cluster B" 1.2.4.4:8655</pre> |
| 410 |
<p>In this example, there are two unique data sources: "Cluster A" and "Cluster B". The |
| 411 |
Cluster A data source has three redundant sources. If gmetad cannot pull the data |
| 412 |
from the first source, it will continue trying the other sources in order.</p> |
| 413 |
<p>If you do not specify a port number, gmetad will assume the default ganglia port which |
| 414 |
is 8649 (U*N*I*X on a phone key pad)</p> |
| 415 |
<p>For a sample gmetad configuration file with comments, look at the gmetad.conf |
| 416 |
file provided as part of the distribution package in the gmetad directory</p> |
| 417 |
<p><code>gmetad</code> has a <code>--conf</code> option to allow you to specify alternate configuration files</p> |
| 418 |
<pre> |
| 419 |
% ./gmetad -conf=/tmp/my_custom_config.conf</pre> |
| 420 |
<p> |
| 421 |
</p> |
| 422 |
<h2><a name="php_web_frontend_configuration">PHP Web Frontend Configuration</a></h2> |
| 423 |
<p>Most configuration parameters reside in the <code>ganglia/conf.php</code> file. Here you |
| 424 |
may alter the template, gmetad location, RRDtool location, and set the default time range |
| 425 |
and metrics for graphs.</p> |
| 426 |
<p>The static portions of the Ganglia website are themable. This means you can alter elements |
| 427 |
such as section lables, some links, and images to suit your individual tastes and environment. |
| 428 |
The <code>template_name</code> variable names a directory containing the current theme. Ganglia uses |
| 429 |
TemplatePower to implement themes. A user-defined skin must conform to the template interface |
| 430 |
as defined by the default theme. Essentially, the variable names and START/END blocks in a |
| 431 |
custom theme must remain the same as the default, but all other HTML elements may be changed.</p> |
| 432 |
<p>Other configuration variables in <code>conf.php</code> specify the location of gmetad's files, and where |
| 433 |
to find the rrdtool program. These locations need only be changed if you do not run gmetad on |
| 434 |
the webserver. Otherwise the default locations should work fine. The <code>default_range</code> variable |
| 435 |
specifies what range of time to show on the graphs by default, with possible values of hour, |
| 436 |
day, week, month, year. The <code>default_metric</code> parameter specifies which metric to show on |
| 437 |
the cluster view page by default.</p> |
| 438 |
<p> |
| 439 |
</p> |
| 440 |
<hr /> |
| 441 |
<h1><a name="commandline_tools">Commandline Tools</a></h1> |
| 442 |
<p>There are two commandline tools that work with <code>gmond</code> to add custom metrics and |
| 443 |
query the current state of a cluster: <code>gmetric</code> and <code>gstat</code> respectively.</p> |
| 444 |
<p> |
| 445 |
</p> |
| 446 |
<h2><a name="gmetric">Gmetric</a></h2> |
| 447 |
<p>The <strong>Ganglia Metric Tool (gmetric)</strong> allows you to easily monitor any arbitrary |
| 448 |
host metrics that you like expanding on the core metrics that gmond measures by default.</p> |
| 449 |
<p>If you want help with the gmetric sytax, simply use the "help" commandline option</p> |
| 450 |
<pre> |
| 451 |
% gmetric --help |
| 452 |
gmetric 3.7.2</pre> |
| 453 |
<pre> |
| 454 |
Purpose: |
| 455 |
The Ganglia Metric Client (gmetric) announces a metric |
| 456 |
on the list of defined send channels defined in a configuration file</pre> |
| 457 |
<pre> |
| 458 |
Usage: gmetric [OPTIONS]...</pre> |
| 459 |
<pre> |
| 460 |
-h, --help Print help and exit |
| 461 |
-V, --version Print version and exit |
| 462 |
-c, --conf=STRING The configuration file to use for finding send channels |
| 463 |
(default=`/etc/ganglia/gmond.conf') |
| 464 |
-n, --name=STRING Name of the metric |
| 465 |
-v, --value=STRING Value of the metric |
| 466 |
-t, --type=STRING Either |
| 467 |
string|int8|uint8|int16|uint16|int32|uint32|float|double |
| 468 |
-u, --units=STRING Unit of measure for the value e.g. Kilobytes, Celcius |
| 469 |
(default=`') |
| 470 |
-s, --slope=STRING Either zero|positive|negative|both (default=`both') |
| 471 |
-x, --tmax=INT The maximum time in seconds between gmetric calls |
| 472 |
(default=`60') |
| 473 |
-d, --dmax=INT The lifetime in seconds of this metric (default=`0') |
| 474 |
-S, --spoof=STRING IP address and name of host/device (colon separated) we |
| 475 |
are spoofing (default='') |
| 476 |
-H, --heartbeat spoof a heartbeat message (use with spoof option)</pre> |
| 477 |
<p>Gmetric sends the metric specified on the commandline to all <strong>udp_send_channel</strong>s specified |
| 478 |
in the configuration file <strong>/etc/ganglia/gmond.conf</strong> by default. If you want to send metric to |
| 479 |
alternate <strong>udp_send_channel</strong>s, you can specify a different configuration file as such:</p> |
| 480 |
<pre> |
| 481 |
% gmetric --conf=./custom.conf -n "wow" -v "it works" -t "string"</pre> |
| 482 |
<p>All metrics in ganglia have a name, value, type and optionally units. For example, say I wanted |
| 483 |
to measure the temperature of my CPU (something gmond doesn't do by default) then I could |
| 484 |
send this metric with name="temperature", value="63", type="int16" and units="Celcius".</p> |
| 485 |
<p>Assume I have a program called <code>cputemp</code> which outputs in text the temperature of the CPU</p> |
| 486 |
<pre> |
| 487 |
% cputemp |
| 488 |
63</pre> |
| 489 |
<p>I could easily send this data to all listening gmonds by running</p> |
| 490 |
<pre> |
| 491 |
% gmetric --name temperature --value `cputemp` --type int16 --units Celcius</pre> |
| 492 |
<p>Check the exit value of gmetric to see if it successfully sent the data: 0 on success and -1 on failure.</p> |
| 493 |
<p>To constantly sample this temperature metric, you just need too add this command to your cron table.</p> |
| 494 |
<p> |
| 495 |
</p> |
| 496 |
<h2><a name="gstat">Gstat</a></h2> |
| 497 |
<p>The Ganglia Cluster Status Tool (gstat) is a commandline utility that allows you to get status |
| 498 |
report for your cluster.</p> |
| 499 |
<p>To get help with the commandline options, simply pass <code>gstat</code> the <code>--help</code> option</p> |
| 500 |
<pre> |
| 501 |
% gstat --help |
| 502 |
gstat 3.7.2</pre> |
| 503 |
<pre> |
| 504 |
Purpose: |
| 505 |
The Ganglia Status Client (gstat) connects with a |
| 506 |
Ganglia Monitoring Daemon (gmond) and output a load-balanced list |
| 507 |
of cluster hosts</pre> |
| 508 |
<pre> |
| 509 |
Usage: gstat [OPTIONS]... |
| 510 |
-h --help Print help and exit |
| 511 |
-V --version Print version and exit |
| 512 |
-a --all List all hosts. Not just hosts running gexec (default=off) |
| 513 |
-d --dead Print only the hosts which are dead (default=off) |
| 514 |
-m --mpifile Print a load-balanced mpifile (default=off) |
| 515 |
-1 --single_line Print host and information all on one line (default=off) |
| 516 |
-l --list Print ONLY the host list (default=off) |
| 517 |
-n --numeric Print numeric addresses instead of hostnames (default=off) |
| 518 |
-iSTRING --gmond_ip=STRING Specify the ip address of the gmond to query (default='127.0.0.1') |
| 519 |
-pINT --gmond_port=INT Specify the gmond port to query (default=8649)</pre> |
| 520 |
<p>Note: gstat with no option will only show gexec-enabled hosts. To see all hosts that are UP (regardless |
| 521 |
of their gexec state) you need to add the <strong>--all</strong> flag.</p> |
| 522 |
<pre> |
| 523 |
% gstat --all</pre> |
| 524 |
<p> |
| 525 |
</p> |
| 526 |
<hr /> |
| 527 |
<h1><a name="extending_ganglia_through_metric_modules">Extending Ganglia through metric modules</a></h1> |
| 528 |
<p>There are currently two ways in which metric modules can be written and plugged into Gmond in order |
| 529 |
to extend the types of metrics that Ganglia is able to monitor. As of Ganglia 3.1, a pluggable |
| 530 |
interface has been added to allow the Gmond metric gathering agent to collect any type of metric |
| 531 |
that can be acquired through programatic means. The primary metric module interface is C with a |
| 532 |
secondary python interface. This means that pluggable modules can either be written and compiled |
| 533 |
into dynamically loadable C based language modules or written and deployed as python pluggable modules.</p> |
| 534 |
<p>The basic steps when writting a pluggable module either in C or in python, is as follows:</p> |
| 535 |
<ol> |
| 536 |
<li><strong><a name="create_a_module_definition_structure_that_contains_callback_data_and_metric_information" class="item">Create a module definition structure that contains callback data and metric information</a></strong> |
| 537 |
|
| 538 |
</li> |
| 539 |
<li><strong><a name="implement_3_callback_functions_that_will_serve_as_the_links_between_the_gmond_metric_gathering_agent_and_the_metric_module_these_callback_functions_include_module_initialization_metric_handler_and_module_cleanup" class="item">Implement 3 callback functions that will serve as the links between the Gmond metric |
| 540 |
gathering agent and the metric module. These callback functions include module initialization, |
| 541 |
metric handler and module cleanup.</a></strong> |
| 542 |
|
| 543 |
</li> |
| 544 |
</ol> |
| 545 |
<p>There are simple metric module examples for both a C based and a python based module under the |
| 546 |
gmond/modules and gmond/python_modules source code sub-trees. Please see these module examples for |
| 547 |
more details.</p> |
| 548 |
<p> |
| 549 |
</p> |
| 550 |
<hr /> |
| 551 |
<h1><a name="frequently_asked_questions__faq_">Frequently Asked Questions (FAQ)</a></h1> |
| 552 |
<dl> |
| 553 |
<dt><strong><a name="what_metrics_does_ganglia_collect_on_platform_x" class="item"><strong>What metrics does ganglia collect on platform x?</strong></a></strong></dt> |
| 554 |
|
| 555 |
<dd> |
| 556 |
<p>To see a complete list of the metrics |
| 557 |
that a particular gmond supports, run the command:</p> |
| 558 |
<pre> |
| 559 |
% gmond -m</pre> |
| 560 |
<p>and gmond will output all the metrics that it is capable of collecting |
| 561 |
and sending.</p> |
| 562 |
<p>This table describes all the metrics that ganglia collects and |
| 563 |
shows what platforms the metric are supported on. (The following table |
| 564 |
is only partially complete).</p> |
| 565 |
<pre> |
| 566 |
Metric Name Description Platforms |
| 567 |
----------------------------------------------------------------------- |
| 568 |
boottime System boot timestamp l,f |
| 569 |
bread_sec |
| 570 |
bwrite_sec |
| 571 |
bytes_in Number of bytes in per second l,f |
| 572 |
bytes_out Number of bytes out per second l,f |
| 573 |
cpu_aidle Percent of time since boot idle CPU l |
| 574 |
cpu_arm |
| 575 |
cpu_avm |
| 576 |
cpu_idle Percent CPU idle l,f |
| 577 |
cpu_intr |
| 578 |
cpu_nice Percent CPU nice l,f |
| 579 |
cpu_num Number of CPUs l,f |
| 580 |
cpu_rm |
| 581 |
cpu_speed Speed in MHz of CPU l,f |
| 582 |
cpu_ssys |
| 583 |
cpu_system Percent CPU system l,f |
| 584 |
cpu_user Percent CPU user l,f |
| 585 |
cpu_vm |
| 586 |
cpu_wait |
| 587 |
cpu_wio |
| 588 |
disk_free Total free disk space l,f |
| 589 |
disk_total Total available disk space l,f |
| 590 |
load_fifteen Fifteen minute load average l,f |
| 591 |
load_five Five minute load average l,f |
| 592 |
load_one One minute load average l,f |
| 593 |
location GPS coordinates for host e |
| 594 |
lread_sec |
| 595 |
lwrite_sec |
| 596 |
machine_type |
| 597 |
mem_buffers Amount of buffered memory l,f |
| 598 |
mem_cached Amount of cached memory l,f |
| 599 |
mem_free Amount of available memory l,f |
| 600 |
mem_shared Amount of shared memory l,f |
| 601 |
mem_sreclaimable Amount of slab reclaimable memory l (kernel >= 2.6.19) |
| 602 |
mem_total Amount of available memory l,f |
| 603 |
mtu Network maximum transmission unit l,f |
| 604 |
os_name Operating system name l,f |
| 605 |
os_release Operating system release (version) l,f |
| 606 |
part_max_used Maximum percent used for all partitions l,f |
| 607 |
phread_sec |
| 608 |
phwrite_sec |
| 609 |
pkts_in Packets in per second l,f |
| 610 |
pkts_out Packets out per second l,f |
| 611 |
proc_run Total number of running processes l,f |
| 612 |
proc_total Total number of processes l,f |
| 613 |
rcache |
| 614 |
swap_free Amount of available swap memory l,f |
| 615 |
swap_total Total amount of swap memory l,f |
| 616 |
sys_clock Current time on host l,f |
| 617 |
wcache</pre> |
| 618 |
<pre> |
| 619 |
Platform key: |
| 620 |
l = Linux, f = FreeBSD, a = AIX, c = Cygwin |
| 621 |
m = MacOS, i = IRIX, h = HPUX, t = Tru64 |
| 622 |
e = Every Platform</pre> |
| 623 |
<p>If you are interested in <strong>how</strong> the metrics are collected, just |
| 624 |
take a look in directory <code>./libmetrics</code> in the source distribution. |
| 625 |
There is a directory for each platform that is supported.</p> |
| 626 |
</dd> |
| 627 |
<dt><strong><a name="xml" class="item"><strong>What does the error "Process XML (x): XML_ParseBuffer() error at line x: not well-formed"</strong></a></strong></dt> |
| 628 |
|
| 629 |
<dd> |
| 630 |
<p>This is an error that occurs when a ganglia components reads data from another ganglia component |
| 631 |
and finds that the XML is not well-formed. The most common time this is a problem is when the PHP |
| 632 |
web frontend tries to read the XML stream from gmetad.</p> |
| 633 |
<p>To troubleshoot this problem, capture an XML from the ganglia component in question (gmetad/gmond). |
| 634 |
This is easy to do if you have telnet installed. Simply login to the machine running the |
| 635 |
component and run.</p> |
| 636 |
<pre> |
| 637 |
% telnet localhost 8651</pre> |
| 638 |
<p>By default, gmetad exports its XML on port 8651 and gmond exports its XML on port 8649. Modify |
| 639 |
the port number above to suite your configuration.</p> |
| 640 |
<p>When you connect to the port you should get an XML stream. If not, look in the process table on |
| 641 |
the machine to ensure that the component is actually running.</p> |
| 642 |
<p>Once you are getting an XML stream, capture it to a file by running.</p> |
| 643 |
<pre> |
| 644 |
% telnet localhost 8651 > XML.txt |
| 645 |
Connection closed by foreign host.</pre> |
| 646 |
<p>If you open the file <code>XML.txt</code>, you will see the captured XML stream. You will need to remove |
| 647 |
the first three lines of the <code>XML.txt</code> which will read...</p> |
| 648 |
<pre> |
| 649 |
Trying 127.0.0.1... |
| 650 |
Connected to localhost. |
| 651 |
Escape character is '^]'.</pre> |
| 652 |
<p>Those lines are output from <code>telnet</code> and not the ganglia component (I wish telnet would send |
| 653 |
those messages to <code>stderr</code> but they are send to <code>stdout</code>).</p> |
| 654 |
<p>There are many ways that XML can be misformed. The great tool for validating XML is <code>xmllint</code>. |
| 655 |
<code>xmllint</code> will read the file and find the line containing the error.</p> |
| 656 |
<pre> |
| 657 |
% xmllint --valid --noout XML.txt</pre> |
| 658 |
<p>will read your captured XML stream, validate it against the ganglia DTD and check that it is |
| 659 |
well-formed XML. <code>xmllint</code> will quiet exit if there are no errors. If |
| 660 |
there are errors they will be reported with line numbers. For example...</p> |
| 661 |
<pre> |
| 662 |
/tmp/XML.txt:3393: error: Opening and ending tag mismatch: HOST and CLUSTER |
| 663 |
</CLUSTER> |
| 664 |
^ |
| 665 |
/tmp/XML.txt:3394: error: Opening and ending tag mismatch: CLUSTER and GANGLIA_XML |
| 666 |
</GANGLIA_XML> |
| 667 |
^ |
| 668 |
/tmp/XML.txt:3395: error: Premature end of data in tag GANGLIA_XML</pre> |
| 669 |
<p>If you get errors, open <code>XML.txt</code> and go to the line numbers in question. See if you can |
| 670 |
understand based on your configuration how these errors could occur. If you cannot fix the |
| 671 |
problem yourself, please email your <code>XML.txt</code> and output from <code>xmllint</code> to |
| 672 |
<code>[email protected]</code>. Please include information about the version |
| 673 |
of each component in question along with the operating system they are running on. The |
| 674 |
more details we have about your configuration the more likely it is we will be able to help |
| 675 |
you. Also, all mailing to <code>ganglia-developers</code> is archiving and available to read on the |
| 676 |
web. You may want to modify <code>XML.txt</code> to remove any sensitive information.</p> |
| 677 |
</dd> |
| 678 |
<dt><strong><a name="how_do_i_remove_a_host_from_the_list" class="item"><strong>How do I remove a host from the list?</strong></a></strong></dt> |
| 679 |
|
| 680 |
<dd> |
| 681 |
<p>A common problem that people have is not being able to remove a host from the ganglia |
| 682 |
web frontend.</p> |
| 683 |
<p>Here is a common scenario</p> |
| 684 |
<ol> |
| 685 |
<li><strong><a name="all_hosts_in_a_cluster_are_send_on_the_ganglia_udp_send_channels" class="item">All hosts in a cluster are send on the ganglia udp_send_channels.</a></strong> |
| 686 |
|
| 687 |
</li> |
| 688 |
<li><strong><a name="one_of_the_hosts_fails_or_is_moved_for_whatever_reason" class="item">One of the hosts fails or is moved for whatever reason.</a></strong> |
| 689 |
|
| 690 |
</li> |
| 691 |
<li><strong><a name="all_the_hosts_in_the_cluster_report_that_the_host_is_dead_or_expired" class="item">All the hosts in the cluster report that the host is "dead" or "expired".</a></strong> |
| 692 |
|
| 693 |
</li> |
| 694 |
<li><strong><a name="the_sysadmin_wants_to_removed_this_host_from_the_dead_list" class="item">The sysadmin wants to removed this host from the "dead" list.</a></strong> |
| 695 |
|
| 696 |
</li> |
| 697 |
</ol> |
| 698 |
<p>Unfortunately there is currently no nice way to remove a single dead host from the list. |
| 699 |
All data in gmond is soft state so you will need to restart all gmond and gmetad processes. |
| 700 |
It is important to note that ALL dead hosts will be flushed from the record by restarting |
| 701 |
the processes (since they have to hear the host at least once to know it is expired).</p> |
| 702 |
<p>If you add the line</p> |
| 703 |
<pre> |
| 704 |
globals { |
| 705 |
host_dmax = 3600 |
| 706 |
}</pre> |
| 707 |
<p>then hosts will be removed from host tables when they haven't been heard from in 3600 seconds. |
| 708 |
See <code>man gmond.conf</code> for details.</p> |
| 709 |
</dd> |
| 710 |
<dt><strong><a name="how_good_is_solaris_irix_tru64_support" class="item"><strong>How good is Solaris, IRIX, Tru64 support?</strong></a></strong></dt> |
| 711 |
|
| 712 |
<dd> |
| 713 |
<p>Here is an email from Steve Wagner about the state of the ganglia on Solaris, |
| 714 |
IRIX and Tru64. Steve is to thank for porting ganglia to Solaris and Tru64. He also |
| 715 |
helped with the IRIX port.</p> |
| 716 |
<pre> |
| 717 |
State of the IRIX port: |
| 718 |
|
| 719 |
* CPU percentage stuff hasn't improved despite my efforts. I fear there |
| 720 |
may be a flaw in the way I'm summing counters for all the CPUs. |
| 721 |
* Auto-detection of network interfaces apparently segfaults. |
| 722 |
* Memory and load reporting appear to be running properly. |
| 723 |
* CPU speed is not being reported properly on multi-proc machines. |
| 724 |
* Total/running processes are not reported. |
| 725 |
* gmetad untested. |
| 726 |
* Monitoring core apparently stable in foreground, background being tested |
| 727 |
(had a segfault earlier). |
| 728 |
|
| 729 |
State of the Tru64 port: |
| 730 |
|
| 731 |
* CPU percentage stuff here works perfectly. |
| 732 |
* Memory and swap usage stats are suspected to be inaccurate. |
| 733 |
* Total/running processes are not reported. |
| 734 |
* gmetad untested. |
| 735 |
* Monitoring core apparently stable in foreground and background. |
| 736 |
|
| 737 |
State of the Solaris port: |
| 738 |
* CPU percentages are slightly off, but correct enough for trending |
| 739 |
purposes. |
| 740 |
* Load, ncpus, CPU speed, breads/writes, lreads/writes, phreads/writes, |
| 741 |
and rcache/wcache are all accurate. |
| 742 |
* Memory/swap statistics are suspiciously flat, but local stats bear |
| 743 |
this out (and they *are* being updated) so I haven't investigated |
| 744 |
further. |
| 745 |
* Total processes are counted, but not running ones. |
| 746 |
* gmetad appears stable |
| 747 |
|
| 748 |
Anyway, all three ports I've been messing with are usable and fairly |
| 749 |
stable. Although there are areas for improvement I think we really can't |
| 750 |
keep hogging all this good stuff - what I'm looking at is ready for |
| 751 |
release.</pre> |
| 752 |
</dd> |
| 753 |
<dt><strong><a name="where_are_the_debian_packages" class="item"><strong>Where are the debian packages?</strong></a></strong></dt> |
| 754 |
|
| 755 |
<dd> |
| 756 |
<p>Debian packages for 2.5 are available from the main Debian archive for all |
| 757 |
releases.</p> |
| 758 |
<p>There was never an oficial Debian package for 3.0 and so if you need to use |
| 759 |
that branch you will need to build your own binaries.</p> |
| 760 |
<p>Packages for 3.1 are available from Debian (and therefore derivative |
| 761 |
distributions like Ubuntu) standard repositories.</p> |
| 762 |
</dd> |
| 763 |
<dt><strong><a name="how_should_i_configure_multihomed_machines" class="item"><strong>How should I configure multihomed machines?</strong></a></strong></dt> |
| 764 |
|
| 765 |
<dd> |
| 766 |
<p>Various issues arise when a multihomed machine is running the gmond agent.</p> |
| 767 |
<p>Sending multicast packets out on the right interface: the <strong>mcast_if</strong> |
| 768 |
option can be declared in the <strong>udp_send_channel</strong> to force outgoing |
| 769 |
multicast packets to use a particular interface. The system administrator |
| 770 |
may also be able to make other platform-specific configuration settings |
| 771 |
through the OS to achieve the desired behaviour.</p> |
| 772 |
<p>Ensuring that outgoing metric packets are always sent with the same |
| 773 |
source address: the <strong>bind</strong> and <strong>bind_hostname</strong> parameters are the solution. |
| 774 |
Either (but not both) of these can be specified in the <strong>udp_send_channel</strong> |
| 775 |
if required. See the <strong>gmond.conf</strong> man page for details.</p> |
| 776 |
<p>Previous advice given in this document suggested adding a route |
| 777 |
like so:</p> |
| 778 |
<p>route add -host 239.2.11.71 dev eth1</p> |
| 779 |
<p>and this method is still valid, but it will be over-ridden by the |
| 780 |
<strong>bind</strong> or <strong>bind_hostname</strong> setting.</p> |
| 781 |
</dd> |
| 782 |
<dt><strong><a name="how_should_i_configure_my_cisco_catalyst_switches" class="item"><strong>How should I configure my Cisco Catalyst Switches?</strong></a></strong></dt> |
| 783 |
|
| 784 |
<dd> |
| 785 |
<p>Perhaps information regarding gmond on networks set up through cisco |
| 786 |
catalyst switches should be mentioned in the ganglia documentation. I think |
| 787 |
by default multicast traffic on the catalyst will flood all devices unless |
| 788 |
configured properly. Here is a relavent snipet from a message forum, with a |
| 789 |
link to cisco document.</p> |
| 790 |
<p>If what you are trying to do, is minimizing the impact on your network due |
| 791 |
to a multicast application, this link may describe what you want to do: |
| 792 |
<a href="http://www.cisco.com/warp/public/473/38.html">http://www.cisco.com/warp/public/473/38.html</a></p> |
| 793 |
<p>We set up our switches according to this after a consultant came in and |
| 794 |
installed an application multicasting several hundred packets per second. |
| 795 |
This made the network functional again.</p> |
| 796 |
</dd> |
| 797 |
</dl> |
| 798 |
<p> |
| 799 |
</p> |
| 800 |
<hr /> |
| 801 |
<h1><a name="getting_support">Getting Support</a></h1> |
| 802 |
<pre> |
| 803 |
The tired and thirsty prospector threw himself down at the edge of the |
| 804 |
watering hole and started to drink. But then he looked around and saw |
| 805 |
skulls and bones everywhere. "Uh-oh," he thought. "This watering hole |
| 806 |
is reserved for skeletons." --Jack Handey</pre> |
| 807 |
<p>There are three mailing lists available to you: <code>ganglia-general</code>, <code>ganglia-developers</code> and |
| 808 |
<code>ganglia-announce</code>. You can join these lists or read their archives by |
| 809 |
visiting <a href="https://sourceforge.net/mail/?group_id=43021">https://sourceforge.net/mail/?group_id=43021</a></p> |
| 810 |
<p><code>All of the ganglia mailing lists are closed</code>. That means that in order to |
| 811 |
post to the lists, you must be subscribed to the list. We're sorry for the |
| 812 |
inconvenience however it is very easy to subscribe and unsubscribe from the |
| 813 |
lists. We had to close the mailing lists because of SPAM problems.</p> |
| 814 |
<p>When you need help please follow these steps until your problem is resolved.</p> |
| 815 |
<ol> |
| 816 |
<li> |
| 817 |
<p>completely read the documentation</p> |
| 818 |
</li> |
| 819 |
<li> |
| 820 |
<p>check the <code>ganglia-general</code> archive to see if other people have had the same problem</p> |
| 821 |
</li> |
| 822 |
<li> |
| 823 |
<p>post your support request to the <code>ganglia-general</code> mailing list</p> |
| 824 |
</li> |
| 825 |
<li> |
| 826 |
<p>check the <code>ganglia-developers</code> archive</p> |
| 827 |
</li> |
| 828 |
<li> |
| 829 |
<p>post your question to the <code>ganglia-developers</code> list</p> |
| 830 |
</li> |
| 831 |
</ol> |
| 832 |
<p>please send all bugs, patches, and feature requests to the <code>ganglia-developers</code> list |
| 833 |
after you have checked the <code>ganglia-developers</code> archive to see if the question has |
| 834 |
already been asked and answered.</p> |
| 835 |
<p> |
| 836 |
</p> |
| 837 |
<hr /> |
| 838 |
<h1><a name="copyright">Copyright</a></h1> |
| 839 |
<pre> |
| 840 |
Copyright (C) 2002,2003 University of California, Berkeley</pre> |
| 841 |
<p> |
| 842 |
</p> |
| 843 |
<hr /> |
| 844 |
<h1><a name="authors">Authors</a></h1> |
| 845 |
<p>The <strong>Ganglia Development Team</strong>...</p> |
| 846 |
<pre> |
| 847 |
Bas van der Vlies basv Developer basv at users.sourceforge.net |
| 848 |
Neil T. Spring bluehal Developer bluehal at users.sourceforge.net |
| 849 |
Brooks Davis brooks_en_davis Developer brooks_en_davis at users.sourceforge.net |
| 850 |
Eric Fraser fraze Developer fraze at users.sourceforge.net |
| 851 |
greg bruno gregbruno Developer gregbruno at users.sourceforge.net |
| 852 |
Jeff Layton laytonjb Developer laytonjb at users.sourceforge.net |
| 853 |
Doc Schneider maddocbuddha Developer maddocbuddha at users.sourceforge.net |
| 854 |
Mason Katz masonkatz Developer masonkatz at users.sourceforge.net |
| 855 |
Mike Howard mhoward Developer mhoward at users.sourceforge.net |
| 856 |
Matt Massie massie Project Admin massie at users.sourceforge.net |
| 857 |
Oliver Mössinger olivpass Developer olivpass at users.sourceforge.net |
| 858 |
Preston Smith pmsmith Developer pmsmith at users.sourceforge.net |
| 859 |
Federico David Sacerdoti sacerdoti Developer sacerdoti at users.sourceforge.net |
| 860 |
Tim Cera timcera Developer timcera at users.sourceforge.net |
| 861 |
Mathew Benson wintermute11 Developer wintermute11 at users.sourceforge.net |
| 862 |
Brad Nicholes bnicholes Developer bnicholes at users.sourceforge.net |
| 863 |
Carlo Arenas carenas Developer carenas at users.sourceforge.net</pre> |
| 864 |
<p> |
| 865 |
</p> |
| 866 |
<hr /> |
| 867 |
<h1><a name="contributors">Contributors</a></h1> |
| 868 |
<p>There have been dozens of contributors who have provided patches and helpful bug reports. |
| 869 |
We need to list them here later.</p> |
| 870 |
|
| 871 |
</body> |
| 872 |
|
| 873 |
</html> |