Difference: WebDownload3 (15 vs. 16)

Revision 162012-01-20 - DaniloDongiovanni

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

NEW Installation for emi-WMS/LB, WMSMonitor 3.0

Line: 19 to 19
 

WMSMonitor SENSORS INSTALLATION ON INSTANCES TO MONITOR

Added:
>
>
<--/twistyPlugin twikiMakeVisibleInline-->
 To be part of the preview, please write to wms-support asking for the tarball. Then follow instruction:
  1. Make sure you have your emi WMS / LB instance installed and you have root privileges on it
Line: 34 to 45
 
  1. WMSMonitor "user mapping" functionality requires wmproxy loglevel set a 6 in glite_wms.conf file
  2. Required package lsof.x86_64 installed on WMS/LB instance

Changed:
<
<

WMSMonitor SERVER (Not Available for Download YET: WORK IN PROGRESS)

>
>
<--/twistyPlugin-->

WMSMonitor SERVER Installation & Configuration (Not Available for Download YET: WORK IN PROGRESS)

 

WMSMonitor Server Instance Installation

Added:
>
>
<--/twistyPlugin twikiMakeVisibleInline-->
 Requirements:
  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.
Line: 66 to 87
 
  1. $> tar -xvzf WMSMonitor_server_3.XX.tgz (--> untar the tarball we provided you with)
  2. $> cp /opt/WMSMonitor/deployment/*cron /etc/cron.d/
Added:
>
>
<--/twistyPlugin-->
 

WMSMonitor Server Instance Configuration

Changed:
<
<

Web Access Configuration:

>
>
<--/twistyPlugin twikiMakeVisibleInline-->
 
Changed:
<
<
Increased php available memory
>
>
Increased php available memory
  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

Changed:
<
<
Secure http enabled (required for enabling user stats web access)
>
>
Secure http enabled (required for enabling user stats web access)
  The WMSMON server needs a valid host certificate stored in a HOST_CERTIFICATE_DIR (i.e. /etc/grid-security)
Line: 133 to 163
 
Changed:
<
<

Database Initialization:

>
>
<--/twistyPlugin-->

<--/twistyPlugin twikiMakeVisibleInline-->
 
  1. ENTER mysql console as root
    1. mysql> CREATE USER 'wmsmon'@'localhost' IDENTIFIED BY 'mypass';
Line: 146 to 185
 
  1. Back on shell import the sql dump file provided
    1. $> mysql -u root -p wmsmon < /opt/WMSMonitor/deployment/wmsmon3.0_dumpfile.sql
Changed:
<
<

Sitedef editing:

>
>
<--/twistyPlugin-->

<--/twistyPlugin twikiMakeVisibleInline-->
 
  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!
Changed:
<
<
    1. WMSMON_SEVER_CONTACT_EMAIL = siteemail@domain
>
>
    1. WMSMON_WEB_DB_PWD = yourwebwmsmon user passwd (eg. 'myotherpass' ) ----> NOTE: do not change USER!
    2. WMSMON_SERVER_CONTACT_EMAIL = siteemail@domain

<--/twistyPlugin-->
 
Deleted:
<
<

Monitoring Instance Cluster Configuration:

 
Changed:
<
<
Adding instances to monitor to WMSMonitor server
>
>
<--/twistyPlugin twikiMakeVisibleInline-->
 
  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 (1 monitored and shown in the web page, 0 not monitored and hided from the web page), <HOST-SITENAME>);
Line: 166 to 225
 
    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
Changed:
<
<
Configuring Load Balancing in WMSMonitor server
>
>
<--/twistyPlugin-->

<--/twistyPlugin twikiMakeVisibleInline-->
 
  1. Set the dns contact in /opt/WMSMonitor/common/wmsmon_site-info.def
  2. Set the passwd for dns contact in /opt/WMSMonitor/common/wmsmon_site-info.def
  3. Define aliases in the dns contact
Line: 181 to 251
 
      1. If needed: REMOVE HOST FROM ALIAS mysql$> call remove_wmshost_from_ALIAS( "hostnamewms", "alias_name")
Added:
>
>
<--/twistyPlugin-->

<--/twistyPlugin twikiMakeVisibleInline-->

Due to privacy reasons statistics about WMS/LB service usage per USER are not public. Therefore access to this section is allowed to a configurable set of personal certificates identified by a subject DN. Authentication process exploits user personal certificate installed in the web browser.

  1. To grant access to a given user:
    1. Enter Mysql database wmsmon and for each user (identified by a DN) run:
    2. ADD DN: mysql$> insert into admin_web_users(dn, privileges) values('/C=IT/O=INFN/OU=Personal Certificate/L=CNAF/CN=Danilo Nicola Dongiovanni','read');
  2. To revoke access privileges from a given user:
    1. Enter Mysql database wmsmon and for each user (identified by a DN) run:
    2. DELETE DN: mysql$> delete from admin_web_users where dn = '/C=IT/O=INFN/OU=Personal Certificate/L=CNAF/CN=Danilo Nicola Dongiovanni' ;

<--/twistyPlugin-->
  -- DaniloDongiovanni - 2011-12-20
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback