Changes between Version 5 and Version 6 of ceasar/ganglia
- Timestamp:
- Mar 8, 2008, 5:48:23 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ceasar/ganglia
v5 v6 25 25 * On frontend, create a gmond configuration file named gmond.conf 26 26 {{{ 27 27 $ /opt/ganglia/sbin/gmond --default_config > /etc/gmond.conf 28 28 }}} 29 29 * Edit file: /etc/gmond.conf … … 41 41 gexec = no 42 42 } 43 44 45 43 cluster { 46 44 name = "DRBL Cluster Project" -------------> as you want … … 60 58 }}} 61 59 62 Edit file /etc/gmetad.conf60 * Edit file /etc/gmetad.conf 63 61 {{{ 64 62 data_source "Test Cluster" 127.0.0.1:8649 … … 70 68 71 69 * On frontend, edit web frontend configuration file "/var/www/ganglia/conf.php" 72 73 70 {{{ 74 71 $gmetad_root = "/var/lib/ganglia"; … … 81 78 82 79 1.3 Setup Ganglia service and start up 83 1.3.1 Perpare rrd log directory 84 $ mkdir -p /var/lib/ganglia/rrds 85 $ chown ganglia:ganglia /var/lib/ganglia/rrds 80 * Perpare rrd log directory 81 {{{ 82 $ mkdir -p /var/lib/ganglia/rrds 83 $ chown ganglia:ganglia /var/lib/ganglia/rrds 84 }}} 86 85 87 1.3.2 Setup service on /etc/rc.local ---------> client 要保留,或以其他方式起動 88 $ vi /ect/rc.local 86 * Start up service during booting, add the follow into file /etc/rc.local '''---------> client 要保留,或以其他方式起動''' 87 {{{ 89 88 # Start up ganglia service 90 89 /opt/ganglia/sbin/gmond 91 /opt/ganglia/sbin/gmetad --------> client 則可以不用 90 /opt/ganglia/sbin/gmetad '''--------> client 則可以不用''' 91 }}} 92 92 93 1.3.3 Start up necessary service 94 $ /opt/ganglia/sbin/gmetad 95 $ /opt/ganglia/sbin/gmond 93 * Start up necessary service now 94 {{{ 95 $ /opt/ganglia/sbin/gmetad 96 $ /opt/ganglia/sbin/gmond 97 }}} 96 98 97 1.4 Setup frontend php web page 98 1.4.1 Copy necessary frontend php scripts 99 $ cp -a /opt/src/ganglia-3.0.4/web /var/www/ganglia 100 1.4.2 Make sure the follow session is correct in config.conf 101 $ vi /var/www/ganglia/conf.php 102 99 1.4 Configure frontend php web page 100 * Copy necessary frontend php scripts 101 {{{ 102 $ cp -a /opt/src/ganglia-3.0.4/web /var/www/ganglia 103 }}} 104 * Make sure the follow session be set correctly file "/var/www/ganglia/conf.php" 105 {{{ 103 106 $gmetad_root = "/var/lib/ganglia"; 104 107 $rrds = "$gmetad_root/rrds"; … … 107 110 108 111 $ganglia_ip = "127.0.0.1"; 112 }}}