Changes between Version 4 and Version 5 of ceasar/ganglia
- Timestamp:
- Mar 8, 2008, 5:41:36 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ceasar/ganglia
v4 v5 4 4 5 5 1. Install (Base on Ubuntu Dapper) 6 1.1 Install necessary package from repository : apache2-php4, php4-gd, php4-jpgraph, php4-rrdtool, rrdtool, gcc, g++, libc6, librrd2-dev[[BR]] 7 1.1 Download last stable version ganglia 8 http://sourceforge.net/project/showfiles.php?group_id=43021&package_id=35280 9 (In our case, use "ganglia-3.0.4.tar.gz" )[[BR]] 10 1.1 Uncompress package, and configure and make 6 * Install necessary package from repository : apache2-php4, php4-gd, php4-jpgraph, php4-rrdtool, rrdtool, gcc, g++, libc6, librrd2-dev[[BR]] 7 * Download last stable version ganglia, In our case, use "ganglia-3.0.4.tar.gz" 8 {{{ 9 http://sourceforge.net/project/showfiles.php?group_id=43021&package_id=35280 10 }}} 11 * Uncompress package, and configure and make 11 12 {{{ 12 13 $ tar xzvf ganglia-3.0.4.tar.gz; cd /ganglia-3.0.4 … … 15 16 $ sudo make install 16 17 }}} 17 1.1Install Web Frontend:18 * Install Web Frontend: 18 19 {{{ 19 20 $ cp -a web /var/www/ganglia 20 21 }}} 21 1.2 Configure 22 1.2.0 Add a user, group for ganglia service, say "ganglia:ganglia" 23 1.2.1 On frontend, create a gmond configuration file named gmond.conf 22 23 2. Configure 24 * Add a user, group for ganglia service, say "ganglia:ganglia" 25 * On frontend, create a gmond configuration file named gmond.conf 26 {{{ 24 27 $ /opt/ganglia/sbin/gmond --default_config > /etc/gmond.conf 25 26 $ vi /etc/gmond.conf 28 }}} 29 * Edit file: /etc/gmond.conf 30 {{{ 27 31 globals { 28 32 daemonize = yes … … 49 53 port = 8649 50 54 } 51 1.2.2 On frontend, create a Gmetad configuration file named gmetad.conf 52 $ cp /opt/src/ganglia-3.0.4/gmetad/gmetad.conf /etc/gmetad.conf 53 $ vi /etc/gmetad.conf 55 56 }}} 57 * On frontend, create a Gmetad configuration file named gmetad.conf 58 {{{ 59 $ cp /opt/src/ganglia-3.0.4/gmetad/gmetad.conf /etc/gmetad.conf 60 }}} 61 62 Edit file /etc/gmetad.conf 63 {{{ 54 64 data_source "Test Cluster" 127.0.0.1:8649 55 65 … … 57 67 58 68 setuid_username "ganglia" 69 }}} 59 70 60 1.2.3 On frontend, edit web frontend configuration file named conf.php 61 $ vi /var/www/ganglia/conf.php 71 * On frontend, edit web frontend configuration file "/var/www/ganglia/conf.php" 72 73 {{{ 62 74 $gmetad_root = "/var/lib/ganglia"; 63 75 $rrds = "$gmetad_root/rrds"; … … 66 78 67 79 $ganglia_ip = "127.0.0.1"; 68 69 1.3 Setup Ganglia service and start up 80 }}} 81 82 1.3 Setup Ganglia service and start up 70 83 1.3.1 Perpare rrd log directory 71 84 $ mkdir -p /var/lib/ganglia/rrds