GStat 2.0 for WeNMR

GStat web page: http://grid-monitor.pd.infn.it:50080/gstat/

Access to everybody

Other links:

Documentation about GStat could be found at https://svnweb.cern.ch/trac/gridinfo/wiki/GStatOverview


Management instructions

Nothing to do about published information, a cron keeps them up-to-date.

After a reconfiguration

  • change http / https ports to make site visible outside pd.infn.it
    • edit /etc/httpd/conf/httpd.conf changing from 80 to 50080
    • edit /etc/httpd/conf.d/ssl.conf changing from 443 to (not-yet-defined)

Installation and configuration instructions

This documentation was followed:

Steps executed on grid-monitor.pd.infn.it (SL5 x86_64)

  • copied hostkey.pem and hostcert.pem, with right permissions, in /etc/grid-security/
cd /etc/yum.repos.d
wget http://grid-deployment.web.cern.ch/grid-deployment/glite/repos/3.2/glite-UI.repo
wget http://grid-deployment.web.cern.ch/grid-deployment/igtf/igtf.repo
wget http://grid-deployment.web.cern.ch/grid-deployment/dag/el5/dag.repo
wget http://www.sysadmin.hep.ac.uk/rpms/egee-SA1/centos5/x86_64/sa1-release-3-1.el5.noarch.rpm
rpm -ivh sa1-release-3-1.el5.noarch.rpm
yum update
yum remove mysql-5.0.77-4.el5_5.4 mysql-5.0.77-4.el5_5.4
yum install MySQL-client-community MySQL-server-community
yum install gstat-web ca_policy_igtf-classic
/etc/init.d/mysql start
chkconfig mysql on
mysql -e "CREATE DATABASE gstat"
mysql -e "GRANT ALL PRIVILEGES ON gstat.* TO 'gstat'@'localhost' IDENTIFIED BY '<GSTAT-PASSWORD>';" 
  • edited /etc/gstat/gstat.ini changing:
    • DATABASE_PASSWORD:<GSTAT-PASSWORD>
mysqladmin password <MySQL-root-password>
/usr/share/gstat/manage syncdb 
  • edited /etc/gstat/ref-bdii.conf
    • # BDII_HOST changed in Febraury, 15th 2011
    • # BDII_HOST=bdii-enmr.cerm.unifi.it
    • BDII_HOST=bdii-wenmr.pd.infn.it
    • BDII_PORT=2170
    • BDII_BIND=mds-vo-name=local,o=grid
    • GSTAT_PROD=TRUE
  • edited /root/gstat-site-info.def
    • INSTALL_ROOT=/opt
    • SITE_NAME=INFN-PADOVA
    • NAGIOS_HTTPD_ENABLE_CONFIG=true
    • NAGIOS_NAGIOS_ENABLE_CONFIG=true
    • NAGIOS_CGI_ENABLE_CONFIG=true
    • VOS="enmr.eu"
    • NAGIOS_ADMIN_DNS="/C=IT/O=INFN/OU=Personal Certificate/L=Padova/CN=Cristina Aiftimiei,/C=IT/O=INFN/OU=Personal Certificate/L=Padova/CN=Peter Solagna,/C=IT/O=INFN/OU=Personal Certificate/L=Padova/CN=Sara Bertocco,/C=IT/O=INFN/OU=Personal Certificate/L=Padova/CN=Sergio Traldi,/C=IT/O=INFN/OU=Personal Certificate/L=LNL/CN=Simone Badoer,/C=IT/O=INFN/OU=Personal Certificate/L=Padova/CN=Marco Verlato"
    • NAGIOS_ESCAPE_HTML=0 #Note: this variable is requested even if not mentioned in documentation
  • vi /root/vo.d/enmr.eu
    • VOMS_SERVERS="'vomss://voms2.cnaf.infn.it:8443/voms/enmr.eu?/enmr.eu' 'vomss://voms-02.pd.infn.it:8443/voms/enmr.eu?/enmr.eu'"
/usr/bin/gstat-update
configure-nagios 
  • because of bug #53745 in yaim-core
 ln -s /bin/true /opt/glite/bin/glite-version 
  • because of permission denied error, edited the file /opt/glite/yaim/functions/config_nagios changing the line
    • lock_file=/var/run/nagios.pid
  • with this:
    • lock_file=/var/nagios/nagios.pid
 /opt/glite/yaim/bin/yaim -c -d 6 -s /root/gstat-site-info.def -n GSTAT 2>&1 | tee /root/yaim05.log 
  • edited /etc/httpd/conf/httpd.conf changing httpd port (from 80 to 50080)
    • Listen 50080

Some months after installation, errors occured while executing /usr/bin/gstat-update (see ticket https://ggus.eu/ws/ticket_info.php?ticket=72270) Steps done to resolve:

cd /root
wget http://koji.afroditi.hellasgrid.gr/packages/gstat-web/1.0.13/1.el5/noarch/gstat-web-1.0.13-1.el5.noarch.rpm
yum remove Django-1.1.1-2.el5
yum install gstat-web-1.0.13-1.el5.noarch.rpm
  • edited /etc/gstat/gstat.ini changing:
    • DATABASE_PASSWORD:<GSTAT-PASSWORD>
 /usr/bin/gstat-update 

-- MarcoVerlato - 2012-03-08

Topic revision: r1 - 2012-03-08 - MarcoVerlato
 
This site is powered by the TWiki collaboration platformCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback