Changeset 3254
- Timestamp:
- 08/06/13 12:57:31 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
monitoring/plugins/mpi/generic_tla_monitoring.py
r3253 r3254 161 161 OpenDJ_directory_path = '/srv/LDAP/OpenDJ-2.5.0-Xpress1/' 162 162 163 base_DN = 'dc=clarin,dc=eu' 164 query = '(objectClass=CLARINPerson)' 165 163 166 command = [OpenDJ_directory_path + "/bin/ldapsearch", 164 167 '--port', '10389', 165 '--baseDN', 'dc=clarin,dc=eu',168 '--baseDN', base_DN, 166 169 '--useStartTLS', 167 170 '--trustAll', … … 169 172 '--bindDN', bindDN, 170 173 "--bindPasswordFile", '/root/LDAP_passwdfile', 171 '(objectClass=CLARINPerson)',174 query, 172 175 'isMemberOf'] 173 176 … … 189 192 return { 190 193 "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) 192 195 } 193 196 else : 194 197 return { 195 198 "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) 197 200 } 198 201
Note: See TracChangeset
for help on using the changeset viewer.