Project

General

Profile

Instructions for compiling Ganglia and run the Ganglia server on novadaq-far-daqmon-2016

(Pengfei Ding, 11/16/2016)

This build is a modification of standard ganglia v3_6_0 for compatibility with NovaDAQMonitorClient.

  • Prep the /nova/ups directory structure for the new package:
    • ssh -X novadaq-far-daqmon-2016.fnal.gov -l novadaq
    • cd /nova/ups/ganglia
    • mkdir v3_6_0d
    • cd v3_6_0d
    • mkdir Linux64bit+2.6-2.12-GCC_4_5_1
  • cd /nova/products/install/ganglia/
  • cd ganglia-3.6.0d
  • rm config.cache
  • source /nova/ups/setup
  • setup rrdtool v1_3_8 -q GCC_4_5_1
    (sets up all lower level products including gcc 4_5_1)
  • Create confuse v3_0 ups product and install it to /nova/ups
  • setup confuse v3_0 -q GCC_4_5_1
    (This is newly installed)
  • yum install gperf and zlib-devel
  • setup apr v1_4_2 -f Linux64bit+2.6-2.5 -z /nova/ups -q GCC_4_5_1
  • setup expat v2_0_1 -f Linux64bit+2.6-2.5 -z /nova/ups -q GCC_4_5_1
  • ./configure --prefix=/nova/ups/ganglia/v3_6_0d/Linux64bit+2.6-2.12-GCC_4_5_1 --with-libpcre=no --sysconfdir=/etc/ganglia --with-gmetad CPPFLAGS="-I $APR_DIR/include/apr-1 -I$RRDTOOL_DIR/include -I$CONFUSE_DIR/include -I$EXPAT_DIR/include" LDFLAGS="-L$APR_DIR/lib -L$RRDTOOL_DIR/lib -L$CONFUSE_DIR/lib -L$EXPAT_DIR/lib" --with-librrd=$RRDTOOL_DIR/lib --with-libconfuse=$CONFUSE_DIR/lib --with-libexpat=$EXPAT_DIR/lib --with-libapr=$APR_DIR/lib
  • make -j 8 | tee make.log
  • make install

Return to the ups directory to complete the installation.

  • cd /nova/ups/ganglia/v3_6_0d/Linux64bit+2.6-2.12-GCC_4_5_1
  • ln s lib64 lib
    (create soft link lib
    >lib64)
  • cd sbin
  • ln s gmetad gmetad_dcm
    (create soft link gmetad_dcm
    >gmetad)
  • cd /nova/ups/ganglia/v3_6_0d
  • ups declare -f Linux64bit+2.6-2.12 -q GCC_4_5_1 -r ganglia/v3_6_0d -m ganglia.table ganglia v3_6_0d
  • as root, create /ganglia_database/rrds and /ganglia_database/rrds/DCM/ and change the owner to be nobody.
  • yum install rrdtool
  • yum install httpd
  • yum install php-mysql
  • yum install php-devel
  • yum install php-gd
  • yum install httpd mod_ssl
  • cd /var/www/html
  • ln -s /home/ganglia/webdisplay/NovaDAQMonitor/web/Far ganglia
  • ln -s /home/ganglia/webdisplay/NovaDAQMonitor/web/Far/DCM DCM
  • scp root@novadaq-far-daqmon:/var/www/html/index.html .
  • mkdir -p /usr/apache/auth
  • htpasswd -c /usr/apache/auth/.htpasswd nova
  • cd /etc/httpd/conf
    (edit httpd.conf to add:
    <Directory "/var/www/html/ganglia">
    AllowOverride AuthConfig
    </Directory>
    )
  • /etc/init.d/httpd restart
  • mkdir /etc/ganglia
  • cd /etc/ganglia
  • scp root@novadaq-far-daqmon:/etc/ganglia/gmetad.conf .
  • (edit gmetad.conf to replace daqmon with daqmon-2016)
  • scp root@novadaq-far-daqmon:/etc/ganglia/gmetad_dcm.conf .
  • (edit gmetad_dcm.conf to replace daqmon with daqmon-2016)
  • cd /var/lib
  • mkdir ganglia
  • cd ganglia
  • mkdir dwoo
  • mkdir conf
  • mkdir DCM
  • chown daemon *
  • chgrp daemon *
  • chmod g+w conf
  • chmod 777 dwoo
  • cd conf
  • scp root@novadaq-far-daqmon:/var/lib/ganglia/conf/*.json .
  • cd ../DCM
  • mkdir conf
  • mkdir dwoo
  • chown daemon *
  • chgrp daemon *
  • chmod g+w conf
  • chmod 777 dwoo
  • cd conf
  • scp root@novadaq-far-daqmon:/var/lib/ganglia/DCM/conf/*.json .
  • mkdir /ganglia/ganglia_database
    (copy recovered files from novadaq-far-datadisk-05:/data/novadaq-far-daqmon/ganglia-database)
  • chown -R nobody *
  • cd /etc/init.d
  • scp :/etc/init.d/gmetad .
    (and change "/home/novadaq/DAQOperationsTools/novadaq_setup.sh" to "source /nova/ups/setup; setup libiconv v1_13_1 -f Linux64bit+2.6-2.5 -z /nova/ups -q GCC_4_5_1; setup ganglia v3_6_0d -f Linux64bit+2.6-2.12 -z /nova/ups -q GCC_4_5_1")
  • scp :/etc/init.d/gmetad_dcm .
    (and change "/home/novadaq/DAQOperationsTools/novadaq_setup.sh" to "source /nova/ups/setup; setup libiconv v1_13_1 -f Linux64bit+2.6-2.5 -z /nova/ups -q GCC_4_5_1; setup ganglia v3_6_0d -f Linux64bit+2.6-2.12 -z /nova/ups -q GCC_4_5_1")
  • /etc/init.d/gmetad_dcm start
  • /etc/init.d/gmetad start
  • /sbin/chkconfig --add gmetad
  • /sbin/chkconfig --list gmetad
    (verify add successful)
  • /sbin/chkconfig gmetad && echo "gmetad will be started on system start"
    (verifies gmetad will be started on system startup)

Todo: submit ticket to put "/root/bin/restart-ganglia.sh" into cron.d and make it run 5 minutes after reboot.