SG MonALISA Installation Guide

From EGEE-see WIki

Jump to: navigation, search

LCG 2.4 & 2.6 & 2.7, GLite 3.0.x Quick Install MonALISA LCG Monitoring Modules


MonALISA : [1]

1) Service installation:

MonALISA service should be installed on MON node in your site (also SE in many configurations) using a non-priviledged account (e.g monalisa)

[Monalisa service: Download http://monalisa.cern.ch/monalisa__Download__MonALISA_service.html]

  monalisa@mon:~$ tar xzvf MonaLisa.v<current_version>.tar.gz
  monalisa@mon:~$ cd MonaLisa.v1.4 && ./install.sh

2) LCG VO-IO and VO-JOBS Modules Configuration

The LCG modules are available at http://monitor.seegrid.grid.pub.ro:8080/lcg-modules/

Directory structure:

/lcg-modules


Download and Installation:

  monalisa@mon:~$ cd <MonALISA_HOME>/Service/usr_code
  monalisa@mon:usr_code$ wget http://monitor.seegrid.grid.pub.ro:8080/lcg-modules/LCG-latest.tgz
  monalisa@mon:usr_code$ tar -xzvf LCG-latest.tgz

You should rebuild the modules:

  monalisa@mon:usr_code$ cd LCG && ./comp

Configuration:

a) Edit <MonALISA_HOME>/Service/myFarm/myFarm.conf and paste the fallowing configuration snippet at the end of file:

  #[LCG modules] set <your_ce_host> to your CE hostname/ip
  
  #Site configuration
  *PN_PBS_LCG{monPN_LCG_PBS, localhost, GridDistribution=LCG2.4, RemoteHost=<your_ce_host>}%60
  
     
  #--Jobs Monitoring Information--
  # gathered from CE (remote)
  # Note: You SHOULD define "MapFile" and "SiteInfoFile" parameters to point to the location of users.conf and site-info.def files
  # The default path for these files is: /opt/lcg/yaim/examples
  *LcgVO_JOBS_CE{monLcgVoJobs, localhost, GridDistribution=LCG2.4, RemoteHost=<your_ce_host>, JobManager=PBS, MapFile=<path.to.site_users.conf>, SiteInfoFile=<path.to.site.site-info.def>}%60
  
  #--IO Traffic Monitoring-- 
  # gathered from CE (remote)
  # Note: You SHOULD define "MapFile" and "SiteInfoFile" parameters to point to the location of users.conf and site-info.def files
  # The default path for these files is: /opt/lcg/yaim/examples
  *LcgVO_IO_CE{monLcgVO_IO, localhost, GridDistribution=LCG2.4, RemoteHost=<your_ce_host>, RemoteFile=/var/log/globus-gridftp.log, MapFile=<path.to.site_users.conf>, SiteInfoFile=<path.to.site.site-info.def>}%180
  
  #--Storage Element (local)--
  # Note: You may need to add to the the "MapFile" and "SiteInfoFile" parameters to define the location of users.conf and site-info.def files
  # MapFile=<path.to.site_users.conf>, SiteInfoFile=<path.to.site.site-info.def>
  # The default path for these files is: /opt/lcg/yaim/examples
  *LcgVO_IO_SE{monLcgVO_IO, localhost, GridDistribution=LCG2.4, FtpLog=/var/log/globus-gridftp.log, MapFile=<path.to.site_users.conf>, SiteInfoFile=<path.to.site.site-info.def>}%180
  

b) Edit <MonALISA_HOME>/Service/myFarm/ml.properties, find the Loading of Additional modules section and set the path to your LCG modules in order to be dynamically loaded:

  lia.Monitor.CLASSURLs=file:${MonaLisa_HOME}/Service/usr_code/LCG/,file:${MonaLisa_HOME}/Service/usr_code/FilterExamples/ExLoadFilter/

c) Edit <MonALISA_HOME>/Service/myFarm/ml.properties, find the REGISTRATION section and set your group to "seegrid"

  lia.Monitor.group=seegrid

d) Setup remote access from the MON node to the CE and SE nodes

The MonALISA modules require remote access to CE and SE nodes in order to collect the site information:

1. It is recommended that on both CE and SE nodes a user named "monalisa" to be created 2. On the MON(SE) node install and run the MonALISA service under the "monalisa" user credentials 3. Set up the CE node so as the remote access via ssh between SE and CE to be executed without password challenge for the "monalisa" user.In order to do that you could use the "remote_access.sh" script which run it on the CE and SE under "monalisa" account


NOTE: The following procedure may help you in respect with the 2.d) step:

Create "monalisa" account on MON,CE,SE nodes: MON:

  root@MON# groupadd monalisa && useradd -g monalisa monalisa
  root@MON# passwd monalisa
  New Password: <PASS>
  Re-enter ...: <PASS>
  root@MON# id monalisa
  //example output
  uid=20947(monalisa) gid=2689(monalisa) groups=2689(monalisa)

CE

  //replace XXXX with the GID returned by the "id" command on the MON
  root@CE# groupadd -g XXXX monalisa
  
  //replace XXXX with the UID returned by the "id" command on the MON
  root@CE# useradd -u XXXXX -g monalisa monalisa
  
  //same password as on the MON
  root@CE# passwd monalisa
  New Password: <PASS>
  Re-enter ...: <PASS>

SE (optional, if SE is not the same as MON node)

  //replace XXXX with the GID returned by the "id" command on the MON
  root@SE# groupadd -g XXXX monalisa
  
  //replace XXXX with the UID returned by the "id" command on the MON
  root@SE# useradd -u XXXXX -g monalisa monalisa
  
  //same password as on the MON
  root@SE# passwd monalisa
  New Password: <PASS>
  Re-enter ...: <PASS>

Back on the MON host Distribute the ssh "monalisa" public key from the MON node to CE,SE nodes Download the remote access setup script from http://monitor.seegrid.grid.pub.ro:8080/lcg-modules/remote_access.sh This script will copy the SSH public key from local system to the .ssh/authorized_keys on the specified remote system. If the identity public key does not exist this script will generate a *fresh* key-pair.

  root@MON# su - monalisa
  monalisa@MON$ wget http://monitor.seegrid.grid.pub.ro:8080/lcg-modules/remote_access.sh
  monalisa@MON$ chmod 700 remote_access.sh
  monalisa@MON$ ./remote_access.sh <CE_HOST>
  monalisa@MON$ ./remote_access.sh <SE_HOST>

e) Start/Restart MonALISA service:

  root@MON:Service/CMD# ML_SER start

/doc


Complete documentation for LCG modules

For more information please check: http://monalisa.caltech.edu

SEE-GRID MonALISA Repository: http://monitor.seegrid.grid.ro:8080

-- Last update: 27 Nov. 2006

Personal tools