Changes between Version 3 and Version 4 of Obsolete/Doc/Monitoring/Lemon


Ignore:
Timestamp:
Nov 19, 2007, 2:50:59 PM (18 years ago)
Author:
/C=BE/O=BEGRID/OU=VUB/OU=IIHE/CN=Stijn De Weirdt
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Obsolete/Doc/Monitoring/Lemon

    v3 v4  
    4949
    5050==== Oracle / OraMon ====
    51 When using orcale as a beckend, some oracle specific parameters need to be set:
     51When using orcale as a backend, some oracle specific parameters need to be set:
    5252{{{
    5353## name of database to use
     
    5757
    5858## Local installation using XE or not
     59## (If true, don't forget the manual post-install steps!)
    5960variable ORACLE_XE_LOCAL_INSTALL ?= true;
    6061
     
    6667
    6768}}}
    68 
    6969If you don't use/want a local XE installation, set ORACLE_XE_LOCAL_INSTALL to false and configure the oracle TNS (example for GRIF):
    7070{{{
     
    8989
    9090== LRF ==
     91The webinterface to lemon uses php and access to the backend.
     92It also needs to know what machines to expect and based on their properties, how to group them.
     93This is (for now) done with a nlist called NODES_PROPS.
     94A basic example is
     95{{{
     96## manual list, is respected when autocompleting
     97variable NODES_PROPS  = nlist(
     98        escape("egon.iihe.ac.be"),nlist('type','MON','monitoring','yes'),
     99);
     100}}}
     101The name of the template that sets this variable is controlled through
     102{{{
     103variable LEMON_NODES_PROPERTIES_TEMPLATE ?= 'pro_nodes_properties';
     104}}}
     105The default value (ie behaviour in case it's not defined) for the {{{'monioting'}}} is controlled through
     106{{{
     107variable LEMON_NODES_PROPERTIES_DEFAULT_MONITORING ?= 'yes';
     108}}}
    91109
    92110
     111=== NODES_PROPS example ===
     112An example used at IIHE to generate the monitoring part of NODES_PROPS
     113{{{
     114template site/lemon_nodes;
     115
     116## in case of missing monitoring field
     117variable LEMON_NODES_PROPERTIES_DEFAULT_MONITORING = 'yes';
     118
     119## manual list, is respected when autocompleting
     120variable NODES_PROPS  = nlist(
     121        escape("egon.iihe.ac.be"),nlist('type','MON'),
     122);     
     123
     124## list for order (first match is ok)
     125variable LEMON_PROPS_REGEXP_TYPE = list('WN','SE_DISK','CE','NFS');
     126variable LEMON_PROPS_REGEXP_MAP = nlist(
     127        'MON','XXXXX',
     128        'WN','node',
     129        'SE_DISK','behar',
     130        'CE','gridce',
     131        'NFS','fileserv',
     132);
     133
     134
     135### autocomplete this list based on DB_MACHINE and regexp
     136variable NODES_PROPS = {
     137        tmp = NODES_PROPS;
     138        dbm = DB_MACHINE;
     139       
     140        ok = first(dbm, k, v);
     141        while (ok) {
     142                if (exists(NODES_PROPS[k])) {
     143                        ok = next(dbm, k, v);
     144                } else {
     145                        mach = unescape(k);
     146                        mach_to_use = mach;
     147                        if (LEMON_SHORTHOSTNAME) {
     148                                m = matches(mach,'([^\\.]+)(\..*)?');
     149                                mach_to_use = m[1];
     150                        };
     151                        regs_order = LEMON_PROPS_REGEXP_TYPE;
     152                        ok2 = first(regs_order, k2,v2);
     153                        while (ok2) {
     154                                if (exists(LEMON_PROPS_REGEXP_MAP[v2])) {
     155                                        reg = LEMON_PROPS_REGEXP_MAP[v2];
     156                                        if (match(mach,reg)) {
     157                                                tmp = merge(tmp,nlist(escape(mach_to_use),nlist('type',v2)));
     158                                                ok2 = false;
     159                                        } else {
     160                                                ok2 = next(regs_order, k2,v2);
     161                                        };
     162                                };
     163                        };
     164               
     165                        ok = next(dbm, k, v);
     166                };
     167        };
     168       
     169        return(tmp);
     170};
     171}}}
     172
    93173=== Server post-install ===