RB/WMS Monitoring Tool

In the following, I assume that:

  • lxb2007 is a UI, and a HTTP server is running on it.
  • rb101 is a gLite WMS or a LCG RB node.

Content of the tarball Monitoring.tar.gz

The tarball must be installed on your HTTP server/UI (lxb2007 in this example). It contains:

  • ~/Monitoring/bin: contains the bash script monitoring.sh executed to generate the HTML file containing the tables for the WMS and the gLite WMSLB, and the figures.

  • ~/Monitoring/cert: contains the certificate and private key files (ie. hostcert.pem and hostkey.pem) for the host running the monitoring.sh script.

  • ~/Monitoring/data: contains the data files collected from the gLite WMS and LCG RBs nodes. It also contains the gnuplot files generated during the execution of the monitoring.sh script.

  • ~/Monitoring/html: contains the html files generated during the execution of the monitoring.sh script.

  • ~/Monitoring/images: contains the images generated by gnuplot.

  • ~/Monitoring/sensors: contains 3 files:
    • monitoring: it is the definition of a cron job which must be put in /etc/cron.d on the gLite WMSLB or LCG RB host.
    • monitoring.sh: This file must be put in the directory /root/Monitoring on the gLite WMSLB or LCG RB host.
    • jobstreated.sh: This file must be put in the directory /root/Monitoring on the gLite WMSLB or LCG RB host.

Configuration of the gLite WMS / LCG RBs nodes

* File /opt/edg/etc/grid-mapfile-local must contain the DN of the machine running the monitoring.sh (eg. "/C=CH/O=CERN/OU=GRID/CN=host/lxb2007.cern.ch" .dteam). The grid-mapfile must be regenerated as well:

                /opt/glite/yaim/scripts/run_function site-info.def config_mkgridmap

This will allow the UI to do a globus-url-copy on all your gLite WMS / LCG RBs nodes.

Configuration of the HTTP server / UI node

  • Create directory /var/www/html/monitoring/ on the HTTP server (check the configuration of your server).

  • I put the content of the tarball in a local home directory (/home/yvan in my case). But it can be in /root as well...
  • I assume that user yvan can copy files in directory /var/www/html/monitoring. Modify file /etc/sudoers by adding the following line:

                yvan    ALL=(ALL)       NOPASSWD: ALL

  • Edit file ~/Monitoring/bin/monitoring.sh and put the name of your own machines (cf variables list_RB and list_WMS). You can also put some comments for these names (see section "Define some string constants at the beginning" in the code).

* You can configure a cron job to execute the monitoring.sh script on the UI. For the time being, I start the script with the following command:

                cd ~/Monitoring/bin
                nohup ./monitoring.sh &

There is a 'sleep 7m' in this script, so this script is awaken every 7mn. If you want to make a cron job, you must remove this line...

Contact

For more informations, please contact Yvan.Calas@cernNOSPAMPLEASE.ch

-- YvanCalas - 16 Feb 2007

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2007-02-16 - YvanCalas
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LCG All webs login

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