Difference: InstallationProcedure (20 vs. 21)

Revision 212009-03-10 - DaniloDongiovanni

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

WMS/LB sensors installation:

Line: 10 to 10
 
  • Download the following tar.gz in /root:
cd /root
Changed:
<
<
wget --no-check-certificate https://grid-it.cnaf.infn.it/certification/downloads/wmsmon_sensors-v1.4-1.tgz
>
>
wget --no-check-certificate https://grid-it.cnaf.infn.it/certification/downloads/wmsmon_sensors-v1.4-1.tgz
 
  • Untar the file in /root
Line: 73 to 73
 yum install httpd_ (tested with httpd-2.0.52-38.sl4.2)
Changed:
<
<
yum install php  php-mysql
>
>
yum install php php-mysql
  (tested with php-4.3.9-3.22.9, php-mysql-4.3.9-3.22.9

yum install python_

Changed:
<
<
(tested with PYTHON-2.3.4-14.4.EL4_6.1)    #PYTHON 2.3 is REQUIRED
>
>
(tested with PYTHON-2.3.4-14.4.EL4_6.1) #PYTHON 2.3 is REQUIRED
  yum install mysql mysql-server
Line: 100 to 100
 

Changed:
<
<
  • Download this tar.gz file in /root : 
>
>
  • Download this tar.gz file in /root :
  wget --no-check-certificate https://grid-it.cnaf.infn.it/certification/downloads/wmsmon_server-v1.4-1.tgz

Changed:
<
<
  • Untar the downloaded  file
>
>
  • Untar the downloaded file
  tar -xvzf wmsmon_server-v1.4-1.tgz
Line: 117 to 117
  You must pay attention in editing the wmsmon_site-info.def file because it contains all the information needed by executables to run properly.
It is important that it is edited carefully using a key = value notation.
Comments can be made using # at the beginning of the line.
Changed:
<
<
You can leave the defaults if you do not see the need for a change. 
>
>
You can leave the defaults if you do not see the need for a change.
 For sure on the collector instance you need to change the following keys:
Changed:
<
<
-  WMSMON_HOST = 'Set here the name of the wmsmon data collector host'
-  WMSMON_DB_PWD = 'set here the collector root mysql passwd'
>
>
- WMSMON_HOST = 'Set here the name of the wmsmon data collector host'
- WMSMON_DB_PWD = 'set here the collector root mysql passwd'
  - SNMPPASSWD = 'The password you choose for snmp communication between data collector and wms instance !! NOTE: it must be the same on
Line: 133 to 133
 Start the mysql server

Changed:
<
<
 service mysqld start
>
>
service mysqld start
 

Line: 166 to 166
  cp /root/wmsmon/cron.d/wmsmon_logrotate.conf /etc/
Changed:
<
<
(Pay attention that if you change the log file name in wmsmon_site-info.def you need to change it also in the wmsmon_logrotate.conf file) 
>
>
*(Pay attention that if you change the log file name in wmsmon_site-info.def you need to change it also in the wmsmon_logrotate.conf file) *
 
Changed:
<
<
The wmsmon.cron and the wmsmon_daily.cron  cronjobs trigger the execution of the two python executables that collect the data. The first one is executed every 15 minutes and collects data from the wms/lb instances, while the second one creates some daily aggregated statistics and runs every two hours.
>
>
The wmsmon.cron and the wmsmon_daily.cron cronjobs trigger the execution of the two python executables that collect the data. The first one is executed every 15 minutes and collects data from the wms/lb instances, while the second one creates some daily aggregated statistics and runs every two hours.
  If you want to increase the rate of data collection you need to increase the running frequency of the first cronjob. Note the the tool was not widely tested at acquisition rates greater than 900 seconds.

  • Edit the wmsmonlist.conf file
Changed:
<
<
Put here the WMS/LB instances you want to monitor as described in the file.
Every line contains a WMS(first string), its associated LB (second string) and a word indicating which VO is served by the WMS (you can put just one word) (third string)
Please do not use comments in this file 
>
>
Put here the WMS/LB instances you want to monitor as described in the file.
Every line contains a WMS(first string), its associated LB (second string) and a word indicating which VO is served by the WMS (you can put just one word) (third string)
Please do not use comments in this file
 

Line: 186 to 186
  Execute the cron executables:
Changed:
<
<
 
>
>
 /root/wmsmon/bin/data_collector_main_autoup.py /root/wmsmon/wmsmonlist.conf 900

Check if errors are reported

Line: 200 to 200
 
  • Configure the WEB
cd /root/wmsmon
Changed:
<
<
yum install  php-gd gd gd-devel
>
>
yum install php-gd gd gd-devel
  python phpconf_script.py /root/wmsmon/wmsmonlist.conf

In /etc/php.ini set : memory_limit = 24M (Default should be 8M)

Line: 215 to 215
 
Changed:
<
<
If you need an https connection  you need to install the mod_ssl rpm (yum install mod_ssl) and restart the httpd service
service httpd restart
The web interface will be reachable at:
https://<your_wmsmon_host>/wmsmon/main
>
>
If you need an https connection you need to install the mod_ssl rpm (yum install mod_ssl) and restart the httpd service
service httpd restart
The web interface will be reachable at:
https://<your_wmsmon_host>/wmsmon/main
 Moreover if you would like to use a server certificate, or to change the standard port you need to edit the /etc/httpd/conf.d/ssl.conf file and restart the httd service. \ No newline at end of file
 
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