Changeset 3254 for monitoring


Ignore:
Timestamp:
08/06/13 12:57:31 (11 years ago)
Author:
sanmai
Message:
  • Work on LDAP monitoring plugin.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • monitoring/plugins/mpi/generic_tla_monitoring.py

    r3253 r3254  
    161161    OpenDJ_directory_path = '/srv/LDAP/OpenDJ-2.5.0-Xpress1/'
    162162
     163    base_DN = 'dc=clarin,dc=eu'
     164    query = '(objectClass=CLARINPerson)'
     165
    163166    command = [OpenDJ_directory_path + "/bin/ldapsearch",
    164167              '--port', '10389',
    165               '--baseDN', 'dc=clarin,dc=eu',
     168              '--baseDN', base_DN,
    166169              '--useStartTLS',
    167170              '--trustAll',
     
    169172              '--bindDN', bindDN,
    170173              "--bindPasswordFile", '/root/LDAP_passwdfile',
    171               '(objectClass=CLARINPerson)',
     174              query,
    172175              'isMemberOf']
    173176
     
    189192        return {
    190193                "code"      : "OK",
    191                 "message"   : 'Host %s is up and responds as expected.' % (host, UP_URL)
     194                "message"   : 'Host %s is up and responds as expected to a query "%s" with base DN "%s".' % (host, query, base_DN)
    192195               }
    193196    else :
    194197        return {
    195198                "code"      : "CRITICAL",
    196                 "message"   : 'Host %s is up but does not respond as expected.' % (host, UP_URL)
     199                "message"   : 'Host %s is not up or does not respond as expected to a query "%s" with base DN "%s".' % (host, query, base_DN)
    197200                }
    198201
Note: See TracChangeset for help on using the changeset viewer.