Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
IntroductionThis installation guide is divided as follows: | ||||||||
Line: 28 to 28 | ||||||||
| ||||||||
Changed: | ||||||||
< < | wget --no-check-certificate https://grid-it.cnaf.infn.it/certification/downloads/wmsmon_sensors_v2.0.tgz![]() | |||||||
> > | wget http://grid-it.cnaf.infn.it/certification/downloads/wmsmon_sensors_v2.0.tgz![]() | |||||||
| ||||||||
Line: 106 to 106 | ||||||||
| ||||||||
Changed: | ||||||||
< < | wget --no-check-certificate https://grid-it.cnaf.infn.it/certification/downloads/install_wmsmon_server-v2.0_00.py![]() | |||||||
> > | wget http://grid-it.cnaf.infn.it/certification/downloads/install_wmsmon_server-v2.0_00.py![]() | |||||||
chmod +x /root/install_wmsmon_server-v2.0_00.py |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
IntroductionThis installation guide is divided as follows: | ||||||||
Line: 106 to 106 | ||||||||
| ||||||||
Changed: | ||||||||
< < | wget --no-check-certificate https://grid-it.cnaf.infn.it/certification/downloads/install_wmsmon_server-v2.0_00.py![]() | |||||||
> > | wget --no-check-certificate https://grid-it.cnaf.infn.it/certification/downloads/install_wmsmon_server-v2.0_00.py![]() | |||||||
chmod +x /root/install_wmsmon_server-v2.0_00.py |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
IntroductionThis installation guide is divided as follows: | ||||||||
Line: 28 to 28 | ||||||||
| ||||||||
Changed: | ||||||||
< < | wget --no-check-certificate https://grid-it.cnaf.infn.it/certification/downloads/wmsmon_sensors_v2.0.tgz![]() | |||||||
> > | wget --no-check-certificate https://grid-it.cnaf.infn.it/certification/downloads/wmsmon_sensors_v2.0.tgz![]() | |||||||
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
IntroductionThis installation guide is divided as follows: | ||||||||
Line: 75 to 75 | ||||||||
| ||||||||
Changed: | ||||||||
< < | At the end check that the following lines are present in /etc/snmp/snmp.conf file | |||||||
> > | At the end check that the following lines are present in /etc/snmp/snmpd.conf file | |||||||
exec .1.3.6.1.4.1.10403.98 /bin/sh /root/wmsmon/bin/send_ce_stats.sh exec .1.3.6.1.4.1.10403.97 /bin/sh /root/wmsmon/bin/send_users_stats.sh |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
IntroductionThis installation guide is divided as follows: | ||||||||
Line: 322 to 322 | ||||||||
Deleted: | ||||||||
< < | -- Main.DanieleCesini - 16 Sep 2008 | |||||||
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
IntroductionThis installation guide is divided as follows: | ||||||||
Line: 15 to 15 | ||||||||
In case of problems during installation please contact wms-support<at>cnaf.infn.it | ||||||||
Changed: | ||||||||
< < | NOTE: In release 2.0 the database schema is changed! if you are running an update it will be automatically ported to the new schema by the installation script. However old data will disappear from the new VO statistic page. | |||||||
> > | NOTE: In release 2.0 the database schema has changed! if you are running an update it will be automatically ported to the new schema by the installation script. However old data will disappear from the new VO statistic page. | |||||||
If you are want to port the old data to the new VO statistics page please contact wms-support<at>cnaf.infn.it after the instalaltion/configuration completes.
WMS/LB sensors installation: |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
IntroductionThis installation guide is divided as follows: | ||||||||
Line: 14 to 14 | ||||||||
It is advisable, even if not required that the sensors are installed before the collector. In case of problems during installation please contact wms-support<at>cnaf.infn.it | ||||||||
Added: | ||||||||
> > | NOTE: In release 2.0 the database schema is changed! if you are running an update it will be automatically ported to the new schema by the installation script. However old data will disappear from the new VO statistic page. If you are want to port the old data to the new VO statistics page please contact wms-support<at>cnaf.infn.it after the instalaltion/configuration completes. | |||||||
WMS/LB sensors installation:Sensors MUST be installed on every machine that needs to be monitored, being it a WMS, an LB or a coupled WMSLB. The following procedure is identical for every kind of nodes, since all the sensors are installed on every node. This waste a little bit of h/d space but simplifies the following installation procedure. | ||||||||
Line: 94 to 98 | ||||||||
(done all the following as root) | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
![]() | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
yum install mysql_server | ||||||||
Line: 125 to 131 | ||||||||
/root/wmsmon /var/www/html/wmsmon | ||||||||
Deleted: | ||||||||
< < | ||||||||
Changed: | ||||||||
< < | If an older installation was found a wmsmon_bkg directory is created containing all the old files. | |||||||
> > | If an older installation was found a wmsmon_old and /tmp/wmsmon_web_bkp directory are created containing all the old files. | |||||||
Now you can proceed with the configuration of the server. | ||||||||
Line: 146 to 151 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
This file contains the list of wms present in your cluster (those were the wmsmon sensors are or will be installed). It must be edit as shown in the template file in the following way: wms1.your_domain lb1.your_domain vo1 | ||||||||
Line: 155 to 160 | ||||||||
wmsn.your_domain lbn.your_domain von | ||||||||
Changed: | ||||||||
< < | You should insert the wms/lb pairs monitored and a vo served by the pair. The vo indication will be used only to group the wms in the wmsmon web pages, and not for the job counting per vo. If a pair serve more taht one VO you can choose a word like multi or multiVO. You can also use this tag to group the wms by their role: PROD, DEVEL etc... | |||||||
> > | You should insert the wms/lb pairs monitored and a vo served by the pair. The vo indication will be used only to group the wms in the wmsmon web pages, and not for the job counting per vo. If a pair serve more than one VO you can choose a word like multi or multiVO. You can also use this tag to group the wms by their role: PROD, DEVEL etc... | |||||||
THE FILE CANNOT BE COMMENTED. | ||||||||
Line: 181 to 186 | ||||||||
If you see no data at that page, but only the top banner and an empty table it means that data were not collected and you probably need to wait for the main cron to run at least once. | ||||||||
Changed: | ||||||||
< < | If the cron already run, it is likely that communication problems between the collector and the sensor exist and the log file should be investigated in order to find problem. | |||||||
> > | If the cron already run, it is likely that communication problems between the collector and the sensor exist and the log file should be investigated in order to find problem what's going on. | |||||||
Post installation STEPS | ||||||||
Line: 205 to 210 | ||||||||
Listen | ||||||||
Changed: | ||||||||
< < | Then restart httpd ( _service httpd restart _) | |||||||
> > | Then restart httpd ( service httpd restart) | |||||||
| ||||||||
Line: 214 to 219 | ||||||||
The WMSMON server needs a valid host certificate stored in a HOST_CERTIFICATE_DIR (i.e. /etc/grid-security) Install mod_ssl package: -Run: yum install mod_ssl | ||||||||
Changed: | ||||||||
< < | Install the accepted ca packages, in examples you can execute the following: - Create the /etc/yum.repos.d/lcg-ca.repo file containing: | |||||||
> > | Install the accepted ca packages, i.e. you can execute the following: - Create the /etc/yum.repos.d/lcg-ca.repo file containing: | |||||||
[CA] | ||||||||
Line: 232 to 237 | ||||||||
Edit the /etc/httpd/conf/httpd.con f and add the following inside the <Directory /var/www/html> section the following lines :
| ||||||||
Changed: | ||||||||
< < | SSLRequireSSL_ | |||||||
> > | SSLRequireSSL | |||||||
SSLVerifyClient require | ||||||||
Line: 249 to 254 | ||||||||
- set the SSLCertificatePath 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) | |||||||
Changed: | ||||||||
< < | Oprtional redirect - If you want to automatically redirect http reuqests to https pages you should add to the /etc/httpd/conf/httpd.conf file the folllowing section (using the proper values for the variables SERVER_HOST_IP,SERVER_HOST_NAME and YOUR_DOMAIN): | |||||||
> > | Oprtional redirect - If you want to automatically redirect http requests to https pages you should add to the /etc/httpd/conf/httpd.conf file the following section (using the proper values for the variables SERVER_HOST_IP,SERVER_HOST_NAME and YOUR_DOMAIN): | |||||||
<VirtualHost SERVER_HOST_IP:80> |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Changed: | ||||||||
< < | PAGE IS UNDER CONSTRUCTION, PLEASE COME BACK LATER | |||||||
> > | IntroductionThis installation guide is divided as follows: | |||||||
Changed: | ||||||||
< < | WMS/LB sensors installation: | |||||||
> > |
WMS/LB sensors installation: | |||||||
Sensors MUST be installed on every machine that needs to be monitored, being it a WMS, an LB or a coupled WMSLB. The following procedure is identical for every kind of nodes, since all the sensors are installed on every node. This waste a little bit of h/d space but simplifies the following installation procedure. | ||||||||
Line: 12 to 24 | ||||||||
| ||||||||
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_v2.0.tgz![]() | |||||||
Added: | ||||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < | tar -xvzf wmsmon_sensors-v1.4-1.tgz | |||||||
> > | tar -xvzf wmsmon_sensors_v2.0.tgz | |||||||
| ||||||||
Line: 57 to 71 | ||||||||
| ||||||||
Changed: | ||||||||
< < | At the end check that the following lines are present in /etc/snmp/snmp.conf file exec .1.3.6.1.4.1.10403.60 /bin/sh /root/wmsmon/bin/wms/wms-sensor-wrapper exec .1.3.6.1.4.1.10403.70 /bin/sh /root/wmsmon/bin/lb/lb-sensor-wrapper exec .1.3.6.1.4.1.10403.75 /bin/sh /root/wmsmon/bin/lb-refill/lb-refill-sensor-wrapper to be REVIEWED!!! | |||||||
> > | At the end check that the following lines are present in /etc/snmp/snmp.conf file exec .1.3.6.1.4.1.10403.98 /bin/sh /root/wmsmon/bin/send_ce_stats.sh exec .1.3.6.1.4.1.10403.97 /bin/sh /root/wmsmon/bin/send_users_stats.sh exec .1.3.6.1.4.1.10403.96 /bin/sh /root/wmsmon/bin/sendLongFile/send_long_file /root/wmsmon/tmp/USERSMAPPING.txt 5 exec .1.3.6.1.4.1.10403.95 /bin/sh /root/wmsmon/bin/sendLongFile/send_long_file /root/wmsmon/tmp/CE_MM.txt 50 exec .1.3.6.1.4.1.10403.94 /bin/sh /root/wmsmon/bin/CE_MM.sh exec .1.3.6.1.4.1.10403.60 /bin/sh /root/wmsmon/bin/wms/wms-sensor-wrapper exec .1.3.6.1.4.1.10403.70 /bin/sh /root/wmsmon/bin/lb/lb-sensor-wrapper exec .1.3.6.1.4.1.10403.75 /bin/sh /root/wmsmon/bin/lb-refill/lb-refill-sensor-wrapper | |||||||
OIDs are those set in the wmsmon_site-info.def file. | ||||||||
Line: 66 to 88 | ||||||||
#service snmpd status #snmpd (pid 21770) is running... | ||||||||
Changed: | ||||||||
< < |
WMSMON data collector installation | |||||||
> > |
WMSMON data collector installation | |||||||
(done all the following as root) | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
![]() | ||||||||
Changed: | ||||||||
< < | chmod +x /root/install_wmsmon_server-v2.0_00.py | |||||||
> > | chmod +x /root/install_wmsmon_server-v2.0_00.py | |||||||
| ||||||||
Changed: | ||||||||
< < | yum install mysql_server | |||||||
> > | yum install mysql_server | |||||||
service mysqld start
| ||||||||
Changed: | ||||||||
< < | The script will look for older wmsmon installations. If none is found a brand new installation will start otherwise an upgrade process will be tempted. Errors will be reported, please pay attention to them. | |||||||
> > | The script will look for older wmsmon installations. If none is found a brand new installation will start otherwise an upgrade process will be attempted. Errors will be reported, please pay attention to them. | |||||||
The root mysql password will be asked in order to check older installation.
When the script is completed the following directory should be present: | ||||||||
Changed: | ||||||||
< < | /root/wmsmon /var/www/html/wmsmon | |||||||
> > | /root/wmsmon /var/www/html/wmsmon If an older installation was found a wmsmon_bkg directory is created containing all the old files. | |||||||
Now you can proceed with the configuration of the server. | ||||||||
Line: 107 to 135 | ||||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
Changed: | ||||||||
< < | The file is self commented, but the most foundamental variable are: | |||||||
> > | The file is self commented, but the most fundamental variables are: | |||||||
Changed: | ||||||||
< < | WMSMON_HOST WMSMON_DB_PWD SNMPUSER SNMPPASSWD | |||||||
> > | WMSMON_HOST WMSMON_DB_PWD SNMPUSER SNMPPASSWD | |||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
This file contains the list of wms present in your cluster (those were the wmsmon sensors are or will be installed). It must be edit as shown in the template file in the following way: wms1.your_domain lb1.your_domain vo1 | ||||||||
Line: 284 to 317 | ||||||||
Changed: | ||||||||
< < | -- Main.DanieleCesini - 16 Sep 2008 | |||||||
> > | -- Main.DanieleCesini - 16 Sep 2008
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
PAGE IS UNDER CONSTRUCTION, PLEASE COME BACK LATER | ||||||||
Added: | ||||||||
> > | WMS/LB sensors installation:Sensors MUST be installed on every machine that needs to be monitored, being it a WMS, an LB or a coupled WMSLB. The following procedure is identical for every kind of nodes, since all the sensors are installed on every node. This waste a little bit of h/d space but simplifies the following installation procedure. (done all the following as root)
![]()
Comments can be made using # at the beginning of the line. You can leave the defaults if you do not see the need for a change. For sure on the WMS/LB instances you need to change the following keys: - WMSMON_HOST = 'Set here the name of the wmsmon data collector host' - LEMONFLAG = 1 'If you do not have a lemon tool on the wms/lb instance set to 0' - LEMONURL = 'Set to the machine lemon url if any' - SERVER_MYSQL_PASSWORD = 'If the node is an LB set the root mysql passwd here' !!! IT IS IMPORTANT TO HAVE THE RIGHT PASSWORD ON LB nodes info.def, it is not important on WMS. If the node was installed using the gLite yaim tool this password can be grabbed from the site_info.def file used at configuration time. - SNMPPASSWD = 'The password you choose for snmp communication between data collector and wms instance !! NOTE: it must be the same on every wmsmon_site-info.def When setting a password please read the comments in the wmsmon_site-info.def file to know if the password must be enclosed between ' ' - LB_PARA_HOST = Host publishing the LB_PARAMETER FILE that initializes lb queries. It is the procol://host:port of the http service running on the collector instances. If you follow the instruction below for the server installation without modifying the httpd configuration it s http://<WMSMMON_HOST> ![]() # http://host.domain ![]() # https://host.domain ![]() # https://host.domain:8443 ![]()
net-snmp-devel-5.1.2-11.el4_6.11.2 net-snmp-5.1.2-11.el4_6.11.2 net-snmp-utils-5.1.2-11.el4_6.11.2 net-snmp-libs-5.1.2-11.el4_6.11.2 net-snmp-perl-5.1.2-11.el4_6.11.2 (version numbers may vary) Finally the file /etc/rc.local should contain a line about snmp Please check all the above statements.
exec .1.3.6.1.4.1.10403.60 /bin/sh /root/wmsmon/bin/wms/wms-sensor-wrapper exec .1.3.6.1.4.1.10403.70 /bin/sh /root/wmsmon/bin/lb/lb-sensor-wrapper exec .1.3.6.1.4.1.10403.75 /bin/sh /root/wmsmon/bin/lb-refill/lb-refill-sensor-wrapper to be REVIEWED!!! OIDs are those set in the wmsmon_site-info.def file. and the snmp daemon should be running #service snmpd status #snmpd (pid 21770) is running...
| |||||||
WMSMON data collector installation |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
PAGE IS UNDER CONSTRUCTION, PLEASE COME BACK LATER | ||||||||
Line: 19 to 19 | ||||||||
chmod +x /root/install_wmsmon_server-v2.0_00.py | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
yum install mysql_server |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
PAGE IS UNDER CONSTRUCTION, PLEASE COME BACK LATER | ||||||||
Line: 8 to 8 | ||||||||
(done all the following as root) | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
![]() | |||||||
Changed: | ||||||||
< < |
![]()
| |||||||
> > | chmod +x /root/install_wmsmon_server-v2.0_00.py
service mysqld start
| |||||||
/root/install_wmsmon_server-v2.0_00.py -i | ||||||||
Changed: | ||||||||
< < | The script will look for older wmsmon installations. If none is found a brand new installation will start otherwise an upgrade process will be tempted. Errors will be reported, please pay attention to them. | |||||||
> > | The script will look for older wmsmon installations. If none is found a brand new installation will start otherwise an upgrade process will be tempted. Errors will be reported, please pay attention to them. | |||||||
The root mysql password will be asked in order to check older installation. | ||||||||
Changed: | ||||||||
< < | When the script is completed the following directory shoul dbe present: /root/wmsmon, /var/www/html/wmsmon. Now you can proceed with the configuration of the server
WMSMON data collector configuration | |||||||
> > | When the script is completed the following directory should be present: /root/wmsmon /var/www/html/wmsmon Now you can proceed with the configuration of the server. WMSMON data collector configuration | |||||||
| ||||||||
Changed: | ||||||||
< < | WMSMON_HOST WMSMON_DB_PWD SNMPUSER SNMPPASSWD | |||||||
> > | WMSMON_HOST WMSMON_DB_PWD SNMPUSER SNMPPASSWD | |||||||
| ||||||||
Changed: | ||||||||
< < | This file contains the list of wms present in your cluster (those were the wmsmon sensors are or will be installed). it must be edit as shown in the template file in the following way: wms1.your.damain lb1.your.domain vo1 .... wmsn.your.damain lbn.your.domain von | |||||||
> > | This file contains the list of wms present in your cluster (those were the wmsmon sensors are or will be installed). It must be edit as shown in the template file in the following way: wms1.your_domain lb1.your_domain vo1 .... wmsn.your_domain lbn.your_domain von | |||||||
Changed: | ||||||||
< < | You should insert the wms/lb pairs monitored and a vo served by the pair. The vo indication will be used only to group the wms in the wmsmon web pages, and not for the job counting per vo. If a pair serve more taht one VO you can choose a word like multi or multiVO. You can also use this tag to group the wms by their role: PROD, DEVEL etc... | |||||||
> > | You should insert the wms/lb pairs monitored and a vo served by the pair. The vo indication will be used only to group the wms in the wmsmon web pages, and not for the job counting per vo. If a pair serve more taht one VO you can choose a word like multi or multiVO. You can also use this tag to group the wms by their role: PROD, DEVEL etc... | |||||||
THE FILE CANNOT BE COMMENTED. | ||||||||
Line: 43 to 65 | ||||||||
| ||||||||
Changed: | ||||||||
< < | As before pay attention to error messages, if any. | |||||||
> > | As before pay attention to error messages, if any. | |||||||
Changed: | ||||||||
< < | When the script completes the /root/wmsmon/directory should have been moved to the INSTALL_PATH define in the site-info.def file and the /var/www/html/wmsmon directory should now be in /var/www/html/WEBDIR where WEBDIR is again in the .def file. | |||||||
> > | When the script completes the /root/wmsmon/ directory should have been moved to the INSTALL_PATH defined in the wmsmon_site-info.def file and the /var/www/html/wmsmon directory should now be in /var/www/html/WEBDIR, where WEBDIR is defined in the wmsmon_site-info.def file. | |||||||
Changed: | ||||||||
< < | Two crons should be present in /etc/cron.d: wmsmon.cron and wmsmon_logrotate.conf. | |||||||
> > | Two crons should be present in /etc/cron.d: wmsmon.cron and wmsmon_logrotate.conf. | |||||||
Changed: | ||||||||
< < | The wmsmon.cron is the cron that launches the main data collector script. By default it is launched every 15 mins, if you want to change this frequency you should cheng the cron file by hand, but in this case you are advised to change also the STEPDATE value in the .def file to 2x(cron frequency). | |||||||
> > | The wmsmon.cron is the cron that launches the main data collector script. By default it is launched every 15 mins, if you want to change this frequency you should change the cron file by hand, and in this case in order to optimize performance you are advised to change also the STEPDATE value in the wmsmon_site-info.def file to 2x(cron frequency). | |||||||
Changed: | ||||||||
< < | By default the data collector script logs to the /var/log/WMSMONITOR.log file, but you can configure this on the .def file. By thefault the wmsmon_logrotate cron creates 10 files 100MB big, to modify this parameters you should change by hand the /etc/wmsmon_logrotate.cron file. | |||||||
> > | By default the data collector script logs to the /var/log/WMSMONITOR.log file, but you can configure this on the .def file. By default the wmsmon_logrotate cron creates 10 files 100MB big, to modify this parameter you should change by hand the /etc/wmsmon_logrotate.cron file. | |||||||
Changed: | ||||||||
< < | The std output of the data collector script is maintained in the /var/log/data_collector_main.log for debugging reasons, this file is rotated as the main log file, please keep it. | |||||||
> > | The standard output of the data collector script is maintained in the /var/log/data_collector_main.log for debugging reasons, this file is rotated as the main log file, please keep it. | |||||||
Changed: | ||||||||
< < | If no errors were reported by the configuration you should be able to find at the following url the WMSMON main page: | |||||||
> > | If no errors were reported by the configuration script you should be able to find at the following url the WMSMON main page: | |||||||
Changed: | ||||||||
< < | http://your_wmsmon_server.your.domain/wmsmon/main/main.php![]() | |||||||
> > | http://your_wmsmon_server.your_domain/wmsmon/main/main.php![]() | |||||||
Changed: | ||||||||
< < | If you see no data at that page, but only the top banner and an empty table it means that no data were collected and you probably need to wait for the main cron to run. | |||||||
> > | If you see no data at that page, but only the top banner and an empty table it means that data were not collected and you probably need to wait for the main cron to run at least once. | |||||||
If the cron already run, it is likely that communication problems between the collector and the sensor exist and the log file should be investigated in order to find problem. | ||||||||
Changed: | ||||||||
< < |
Post installation STEPS | |||||||
> > |
Post installation STEPS | |||||||
Changed: | ||||||||
< < |
I.e. 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: memory_limit = 56M The WMSMON web configuration does not modify the default port (80) used by httpd. To modify the port number edit /etc/httpd/conf/httpd.conf and edit the line: Listen <port_number>Then restart httpd ( _service httpd restart _) The WMSMON server needs a valid host certificate stored in a HOST_CERTIFICATE_DIR (i.e. /etc/grid-security) Install mod_ssl package: -Run: yum install mod_ssl Install the accepted ca packages, in examples 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 | |||||||
Changed: | ||||||||
< < |
in the line: $config->dnEnabledList=array('DN1','DN2'....'DNn'); | |||||||
> > | - Run : yum install lcg_CA | |||||||
Changed: | ||||||||
< < |
| |||||||
> > | Edit the /etc/httpd/conf/httpd.con f and add the following inside the <Directory /var/www/html> section the following lines :
SSLRequireSSL_ SSLVerifyClient require SSLVerifyDepth 10Edit the /etc/httpd/conf.d/ssl.conf and: - set the SSLCertificateFile variable to HOST_CERTIFICATE_DIR/hostcert.pem and comment any other line that set this variable. - set the SSLCertificateKeyFile variable to HOST_CERTIFICATE_DIR/hostkey.pem and comment any other line that set this variable. _ _ - set the SSLCertificatePath 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. 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 reuqests to https pages you should add to the /etc/httpd/conf/httpd.conf file the folllowing section (using the proper values for the variables SERVER_HOST_IP,SERVER_HOST_NAME and YOUR_DOMAIN): <VirtualHost SERVER_HOST_IP:80> DocumentRoot /var/www/html ServerName SERVER_HOST_NAME.YOUR_DOMAIN RedirectMatch (/.*)$ https://SERVER_HOST_NAME.YOUR_DOMAIN/$1 </VirtualHost>Restart httpd WMSMONitor reports a section with users activity on each WMS. Name and surname of each user is reported on some pages and these pages for privacy reasons are not exposed to all certificates If you want to unlock those pages to some certificate DN you should enable https protocol as descrbed in the previous paragraph(Optional secure http enabled) and do the following: - Edit the /var/www/html/wmsmon/common/config.php file and modify the last line adding the list of DNs in the line $config->dnEnabledList=array('DN1','DN2'....'DNn');If you want to unlock the pages with sensible data to everyone (using either http or https) you have to change the value of the $config->protectedPage variable in /var/www/html/WEBDIR/common/config.php file (WEBDIR is defined inthe site-info.def file) and set it to 0: $config->protectedPages=0; | |||||||
Changed: | ||||||||
< < | WMSMON uses the snmp standard port (in general the 183) for sensor-collector communications. If a firewall blocks the snmp port it is possible to enable the communication on a not-standard port. This can be useful when the data collector and the WMS cluster are not in the same computing centre. If you are not in this case you can skip this section. NOTE: this feature is not well tested, please report any problem and bug found to wms-support<at>cnaf.infn.it To enable high port support you should modify the wmslist.conf file adding a fourth column indicating wnich is the port number to be used on that particular wms/lb pair: | |||||||
> > | WMSMON uses the snmp standard port (in general the 183) for sensor-collector communications. If a firewall blocks the snmp port it is possible to enable the communication on a not-standard port. This can be useful when the data collector and the WMS cluster are not in the same computing centre. If you are not in this case you can skip this section. NOTE: this feature is not well tested, please report any problem and bug found to wms-support<at>cnaf.infn.it To enable high port support you should modify the wmslist.conf file adding a fourth column indicating which is the port number to be used on that particular wms/lb pair: | |||||||
Changed: | ||||||||
< < | wms1.your.damain lb1.your.domain vo1 port1 | |||||||
> > | wms1.your_domain lb1.your_domain vo1 port1 | |||||||
NOTE: it is not possible to specify 2 different port numbers for WMS and LB. | ||||||||
Line: 94 to 219 | ||||||||
Changed: | ||||||||
< < | -- Main.DanieleCesini - 16 Sep 2008 | |||||||
> > | -- Main.DanieleCesini - 16 Sep 2008 |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
PAGE IS UNDER CONSTRUCTION, PLEASE COME BACK LATER | ||||||||
Line: 67 to 67 | ||||||||
Post installation STEPS | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
I.e. modify the /etc/php.ini to have the folloving line: memory_limit = 56M
in the line: $config->dnEnabledList=array('DN1','DN2'....'DNn'); | |||||||
If you are not in this case you can skip this section. NOTE: this feature is not well tested, please report any problem and bug found to wms-support<at>cnaf.infn.it To enable high port support you should modify the wmslist.conf file adding a fourth column indicating wnich is the port number to be used on that particular wms/lb pair: wms1.your.damain lb1.your.domain vo1 port1 | ||||||||
Changed: | ||||||||
< < | NOTE: it is not possible to specify 2 different port number2 for WMS and LB. | |||||||
> > | NOTE: it is not possible to specify 2 different port numbers for WMS and LB.
On WMS/LB sensor side you should set snmp in order to listen for request on the port you choose. This is accomplished by adding in the /etc/snmp.conf file the following line:
agentaddress <port_number>and restarting snmp (service snmpd restart) | |||||||
-- Main.DanieleCesini - 16 Sep 2008 |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
PAGE IS UNDER CONSTRUCTION, PLEASE COME BACK LATER | ||||||||
Line: 69 to 69 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
If you are not in this case you can skip this section. NOTE: this feature is not well tested, please report any problem and bug found to wms-support<at>cnaf.infn.it To enable high port support you should modify the wmslist.conf file adding a fourth column indicating wnich is the port number to be used on that particular wms/lb pair: wms1.your.damain lb1.your.domain vo1 port1 NOTE: it is not possible to specify 2 different port number2 for WMS and LB. | |||||||
-- Main.DanieleCesini - 16 Sep 2008 |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
PAGE IS UNDER CONSTRUCTION, PLEASE COME BACK LATER | ||||||||
Line: 8 to 8 | ||||||||
(done all the following as root) | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Changed: | ||||||||
< < | yum install httpd (tested with httpd-2.0.52-41.sl4.2) | |||||||
> > |
![]()
| |||||||
Changed: | ||||||||
< < | yum install php php-mysql | |||||||
> > | The script will look for older wmsmon installations. If none is found a brand new installation will start otherwise an upgrade process will be tempted. Errors will be reported, please pay attention to them. | |||||||
Changed: | ||||||||
< < | (tested with php-4.3.9-3.22.12, php-mysql-4.3.9-3.22.12) | |||||||
> > | The root mysql password will be asked in order to check older installation. | |||||||
Changed: | ||||||||
< < | yum install python (tested with PYTHON-2.3.4-14.4.EL4_6.1) #PYTHON 2.3 is REQUIRED | |||||||
> > | When the script is completed the following directory shoul dbe present: /root/wmsmon, /var/www/html/wmsmon. Now you can proceed with the configuration of the server
WMSMON data collector configuration | |||||||
Changed: | ||||||||
< < | yum install mysql mysql-server | |||||||
> > |
| |||||||
Changed: | ||||||||
< < | (tested with mysql-4.1.22-2.el4.1.sl, mysql-server-4.1.22-2.el4.sl) | |||||||
> > | The file is self commented, but the most foundamental variable are: | |||||||
Changed: | ||||||||
< < | yum install MySQL-python python-devel python-sqlite | |||||||
> > | WMSMON_HOST WMSMON_DB_PWD SNMPUSER SNMPPASSWD | |||||||
Changed: | ||||||||
< < | (tested with python-sqlite-1.1.6-1, mysql-python-1.2.1_p2-1.el4.1, python-devel-2.3.4-14.4.el4_6.1 ) | |||||||
> > |
it must be edit as shown in the template file in the following way: wms1.your.damain lb1.your.domain vo1 .... wmsn.your.damain lbn.your.domain von | |||||||
Changed: | ||||||||
< < | yum install net-snmp net-snmp-devel net-snmp-perl net-snmp-libs net-snmp-utils | |||||||
> > | You should insert the wms/lb pairs monitored and a vo served by the pair. The vo indication will be used only to group the wms in the wmsmon web pages, and not for the job counting per vo. If a pair serve more taht one VO you can choose a word like multi or multiVO. You can also use this tag to group the wms by their role: PROD, DEVEL etc... | |||||||
Changed: | ||||||||
< < | Tested with: | |||||||
> > | THE FILE CANNOT BE COMMENTED. | |||||||
Changed: | ||||||||
< < | net-snmp-utils-5.1.2-13.el4_7.2 net-snmp-5.1.2-13.el4_7.2 net-snmp-libs-5.1.2-13.el4_7.2 net-snmp-perl-5.1.2-13.el4_7.2 net-snmp-devel-5.1.2-13.el4_7.2 | |||||||
> > |
| |||||||
Changed: | ||||||||
< < |
![]()
| |||||||
> > | As before pay attention to error messages, if any.
When the script completes the /root/wmsmon/directory should have been moved to the INSTALL_PATH define in the site-info.def file and the /var/www/html/wmsmon directory should now be in /var/www/html/WEBDIR where WEBDIR is again in the .def file.
Two crons should be present in /etc/cron.d: wmsmon.cron and wmsmon_logrotate.conf.
The wmsmon.cron is the cron that launches the main data collector script. By default it is launched every 15 mins, if you want to change this frequency you should cheng the cron file by hand, but in this case you are advised to change also the STEPDATE value in the .def file to 2x(cron frequency).
By default the data collector script logs to the /var/log/WMSMONITOR.log file, but you can configure this on the .def file. By thefault the wmsmon_logrotate cron creates 10 files 100MB big, to modify this parameters you should change by hand the /etc/wmsmon_logrotate.cron file.
The std output of the data collector script is maintained in the /var/log/data_collector_main.log for debugging reasons, this file is rotated as the main log file, please keep it.
If no errors were reported by the configuration you should be able to find at the following url the WMSMON main page:
http://your_wmsmon_server.your.domain/wmsmon/main/main.php![]() Post installation STEPS | |||||||
Changed: | ||||||||
< < | You should answer to the questions done by the installation script and look for error messages if any. PAY ATTENTION : At the moment upgrade from previous release is not supported. We are working on it. | |||||||
> > |
| |||||||
-- Main.DanieleCesini - 16 Sep 2008 \ No newline at end of file |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
PAGE IS UNDER CONSTRUCTION, PLEASE COME BACK LATER | ||||||||
Changed: | ||||||||
< < | -- DanieleCesini - 16 Sep 2008 | |||||||
> > |
WMSMON data collector installation(done all the following as root)
net-snmp-5.1.2-13.el4_7.2 net-snmp-libs-5.1.2-13.el4_7.2 net-snmp-perl-5.1.2-13.el4_7.2 net-snmp-devel-5.1.2-13.el4_7.2
![]()
PAY ATTENTION : At the moment upgrade from previous release is not supported. We are working on it. -- Main.DanieleCesini - 16 Sep 2008 | |||||||
\ No newline at end of file |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > |
PAGE IS UNDER CONSTRUCTION, PLEASE COME BACK LATER-- DanieleCesini - 16 Sep 2008 |