Difference: WebDownload3 (6 vs. 7)

Revision 72012-01-11 - DaniloDongiovanni

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

NEW Installation for emi-WMS/LB, WMSMonitor 3.0

Line: 42 to 42
 
  1. Make sure you have your emi WMS / LB instances to monitor installed with new sensors as described in previous paragraph.
  2. By default the exploited ActiveMQ broker is the one provided by CERN for development purposes. If you use the default broker/topic you can ignore this step. To use your own ActiveMQ server you need to install one and setup a proper topic on it. This HOWTO does not cover the issue.
  3. A fresh installation of SL5/x64. Suggested HW: Virtual Machine with 3GB RAM, 30GB disk, 1 Core
Added:
>
>
  1. If a certificate based web access restriction is needed, an x509 host certificate is required
 
  1. Install php package:
    1. $> yum install php
  2. Install mod_ssl package:
Line: 55 to 56
 
    1. $> chkconfig httpd on
    2. $> service httpd start
Deleted:
<
<
 Then follow instruction:
  1. $> cd /opt
Changed:
<
<
  1. $> tar -xvzf WMSMonitor-server.tgz (--> untar the tarball we provided you with)
  2. $> cp /opt/WMSMonitor/sensors/bin/WMSMonitor.cron /etc/cron.d/
>
>
  1. $> tar -xvzf WMSMonitor_server_3.XX.tgz (--> untar the tarball we provided you with)
  2. $> cp /opt/WMSMonitor/deployment/*cron /etc/cron.d/
 

WMSMonitor Server Instance Configuration

Web Access Configuration:

Line: 68 to 68
 
  • Increased php available memory
Changed:
<
<
In order to increase php performance it is advisable that you increase the php allocable memory.
Modify the /etc/php.ini to have the folloving line:
memory_limit = 56M
>
>
In order to increase php performance it is advisable that you increase the php allocable memory.
Modify the /etc/php.ini to have the folloving line (at least 128) :
memory_limit = 128M
 
Line: 77 to 77
  The WMSMON server needs a valid host certificate stored in a HOST_CERTIFICATE_DIR (i.e. /etc/grid-security)
Changed:
<
<
Install the accepted ca packages, i.e. you can execute the following:
- Create the /etc/yum.repos.d/lcg-ca.repo file containing:
    [CA]
    name=CAs
    baseurl=http://linuxsoft.cern.ch/LCG-CAs/current
    protect=1

- Run : yum install lcg_CA

>
>
Install the accepted ca packages, i.e. you can execute the following:
  1. $> wget http://repository.egi.eu/sw/production/cas/1/current/repo-files/egi-trustanchors.repo -O /etc/yum.repos.d/egi-trustanchors.repo
  2. $> yum install ca-policy-egi-core
  Edit the /etc/httpd/conf/httpd.con f and add the following inside the <Directory /var/www/html> section the following lines :

Line: 112 to 100
  - set the SSLCACertificatePath variable to the name of the directory containing the CA file (i.e. /etc/grid-security/certificates if you installed the lcg_CA metapackage) and comment any other line that set this variable.
Changed:
<
<
If you want to change the default https port (443) you should change in the /etc/httpd/conf.d/ssl.conf file the line:
Listen <port_number> (i.e. Listen 8443)
>
>
\If you want to change the default https port (443) you should change in the /etc/httpd/conf.d/ssl.conf file the line:
Listen <port_number> (i.e. Listen 8443)
  _Oprtional redirect - If you want to automatically redirect http requests to https pages you should add to the
Line: 136 to 124
 
Changed:
<
<
Restart httpd
>
>
  1. $> service httpd restart
 
Added:
>
>

Database Initialization:

  1. ENTER mysql console as root
    1. mysql> CREATE USER 'wmsmon'@'%' IDENTIFIED BY 'mypass';
    2. mysql> CREATE database wmsmon;
    3. mysql> grant ALL on wmsmon.* TO 'wmsmon'@'%';
    4. mysql> flush privileges;
    5. mysql> exit;
  2. Back on shell import the sql dump file provided
    1. $> mysql -u root -p wmsmon < /opt/WMSMonitor/deployment/wmsmon3.0_dumpfile.sql

Sitedef editing:

  1. Edit file /opt/WMSMonitor/common/wmsmon_site-info.def filling following values:
    1. WMSMON_HOST = YOURSERVERWMSMonitor
    2. WMSMON_DB_PWD = yourwmsmon user passwd from above (eg. 'mypass') ----> NOTE: do not change USER!
    3. WMSMON_SEVER_CONTACT_EMAIL = siteemail@domain
 

Monitoring Instance Cluster Configuration:

Adding instances to monitor to WMSMonitor server
  1. Given an LB and a WMS instance to monitor:
    1. Enter Mysql database wmsmon:
    2. mysql$>call insertHostLabels(<WMS-HOSTANME-WITH-DOMAIN>, 'WMS', <VO(for multi-vo services set 'multi')>, <VO_GROUP(ex. 'analysis','mc_production',etc.)>, <SERVICE_USAGE(ex. 'production','test',etc.)>, 1, <HOST-SITENAME>);
Added:
>
>
      1. EX>>> call insertHostLabels('wms014.cnaf.infn.it','WMS','cms','MCproduction','production', 1,'cnaf');
 
    1. mysql$>call insertHostLabels(<LB-HOSTANME-WITH-DOMAIN>, 'LB', <VO(for multi-vo services set 'multi')>, <VO_GROUP(ex. 'analysis','mc_production',etc.)>, <SERVICE_USAGE(ex. 'production','test',etc.)>, 1, <HOST-SITENAME>);
Added:
>
>
      1. EX>>> call insertHostLabels('wms014.cnaf.infn.it','LB','cms','MCproduction','production', 1,'cnaf'); ---> NOTE do this also when wms/lb is cohosted
 
    1. mysql$> call insertLBHost();
Added:
>
>
      1. EX>>> call insertLBHost('lb013.cnaf.infn.it'); ---> NOTE do this only for LB is cohosted
 
    1. shell$> python /opt/WMSMonitor/collector/bin/data_collector_daemon.py stop
    2. shell$> FROM SHELL: python /opt/WMSMonitor/collector/bin/data_collector_daemon.py start
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback