Difference: WMSMonitorForWeNMR (1 vs. 2)

Revision 22012-11-22 - MarcoVerlato

Line: 1 to 1
 
META TOPICPARENT name="DocForDedicatedServices"
Added:
>
>

WMSMonitor 3.0 for WeNMR

WMSMonitor web page: https://wmsmonitor.cnaf.infn.it:8443/wmsmon/main/main.php

Access requires a valid certificate.

Detailed documentation and instructions about WMSMonitor could be found at https://wiki.italiangrid.it/twiki/bin/view/WMSMonitor/WebDownload3


Old Stuff

 

WMSMonitor 2.1 for WeNMR

WMSMonitor web page: https://wmsmonitor.pd.infn.it:50080/wmsmon/main/main.php

Line: 138 to 147
  where DN are authorized people allowed to view users statistics
Changed:
<
<
-- MarcoVerlato - 2012-03-08
>
>
-- MarcoVerlato - 2012-11-22

Revision 12012-03-08 - MarcoVerlato

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="DocForDedicatedServices"

WMSMonitor 2.1 for WeNMR

WMSMonitor web page: https://wmsmonitor.pd.infn.it:50080/wmsmon/main/main.php

Access requires a valid certificate.

Detailed documentation and instructions about WMSMonitor could be found at https://twiki.cnaf.infn.it/cgi-bin/twiki/view/WMSMonitor/WebDocumentation


Management instructions

Add, remove or change a WMS/LB entry in WMSMonitor

To modify the list of monitored WMS/LB, execute these steps on wmsmonitor.pd.infn.it:

 cd /opt/WMSMonitor/collector/etc/ 
  • edit the file wmslist.conf
    • syntax is WMS-hostname LB-hostname VO [SNMPport]
      • VO is needed only for grouping WMS/LB on wmsmon web pages, not for job counting.
      • If SNMPport is not declared, the collector connects to WMS/LB on standard SNMP port 161.
    • comments are not allowed in this file
 ./wmsmon_server_setup.py 
  • the script above resets the file /var/www/html/wmsmon/common/config.php, so:
    • copy the good backuped config.php:
 cp /var/www/html/wmsmon/common/config.php.ok /var/www/html/wmsmon/common/config.php 
    • be sure that, for each VO values in wmslist.conf, there are lines like these in config.php (otherwise add/remove them and create a new backup of config.php):
case 'enmr.eu':
             $wmsCount[0]='wms-enmr.chem.uu.nl';
             $wmsCount[1]='mb-enmr.chemie.uni-frankfurt.de';
             $wmsCount[2]='wms-enmr.cerm.unifi.it';
             $wmsCount[3]='prod-wms-01.pd.infn.it'; 
break; 

Add or remove authorized users to let them see User Activity

For privacy reasons, User Activity pages on WMSMonitor are protected. To permit some user to see them, insert certificate DNs of authorized users in /var/www/html/wmsmon/common/config.php; for example:

  • $config->dnEnabledList=array('/C=IT/O=INFN/OU=Personal Certificate/L=LNL/CN=Simone Badoer','/C=IT/O=INFN/OU=Personal Certificate/L=Padova/CN=Marco Verlato');

Installation instructions

WMS/LB sensors installation

These steps must be executed both on WMS and LB hosts.

  • Required o.s.: SL4
cd /etc/yum.repos.d
wget http://grid-it.cnaf.infn.it/certification/downloads/WMSMonitor.repo
yum clean all
yum install WMSMonitor.sensors
cd /opt/WMSMonitor/common 
  • Edit wmsmon_site-info.def defining this variables:
cd /opt/WMSMonitor/sensors/etc
./WMSLB_wmsmon_configuration.py
  • running this script on WMS could generate this error:
    • ERROR 1049 (42000): Unknown database 'lbserver20'
  • ignore it

  • If a firewall is blocking remote connection to standard SNMP port (161)
    • change the file /etc/snmp/snmpd.conf editing the line:
      • agentaddress
      • for example agentaddress 10161
      • Use the same port for WMS and associated LB
 service snmpd restart 
    • check SNMP from collector host:
 snmpwalk -v 3 -u wmsmon -l authNoPriv -a MD5 -A <SNMP_pwd> hostname:10161 1.3.6.1.4.1.10403.80 

WMSMonitor collector installation

Steps executed on collector host wmsmonitor.pd.infn.it

cd /etc/yum.repos.d
wget http://grid-it.cnaf.infn.it/certification/downloads/WMSMonitor.repo
yum clean all
yum install WMSMonitor.collector 
  • edited file /opt/WMSMonitor/common/wmsmon_site-info.def defining this variables
    • WMSMON_HOST = wmsmonitor.pd.infn.it
    • WMSMON_DB_PWD =
    • LEMONFLAG=0
    • WMSMON_SEVER_CONTACT_EMAIL = grid-services-pd(AT)lists.infn.it
    • SNMPPASSWD = ''
    • Load Balancing Arbiter not installed
 cd /opt/WMSMonitor/collector/etc 
  • edited wmslist.conf (comments not allowed, syntax is: WMSname LBname VO SNMPport):
    • wms-enmr.chem.uu.nl lb-enmr.chem.uu.nl enmr.eu 10161
    • mb-enmr.chemie.uni-frankfurt.de mb-enmr.chemie.uni-frankfurt.de enmr.eu
    • wms-enmr.cerm.unifi.it lb-enmr.cerm.unifi.it enmr.eu 10161
    • prod-wms-01.pd.infn.it prod-lb-01.pd.infn.it enmr.eu
 
service mysqld start
chkconfig mysqld on
chkconfig httpd on
./wmsmon_server_setup.py
    • this script installed:
      • web pages in /var/www/html/wmsmon/
      • /etc/cron.d/wmsmon.cron (every 15 minutes collects data)
      • /etc/cron.d/wmsmon_logrotate.conf
      • /var/www/html/wmsmon/common/config.php
        • NOTE: after every run of wmsmon_server_setup.py, config.php is not well configured and must be modified by hand (see TIPS below)
  • edit /etc/php.ini changing the line
    • memory_limit = 56M
  • enabled secure http
yum install mod_ssl
cd /etc/yum.repos.d/
wget -O lcg-ca.repo http://grid-it.cnaf.infn.it/mrepo/repos/lcg-ca.repo
yum install lcg_CA 

  • edited the /var/www/html/wmsmon/common/config.php file and modified the line:
    • $config->dnEnabledList=array('DN1','DN2'....'DNn') where DN are authorized people allowed to view users statistics

-- MarcoVerlato - 2012-03-08

 
This site is powered by the TWiki collaboration platformCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback