Skip to content
Snippets Groups Projects
Commit 17567138 authored by Ricardo Rocha's avatar Ricardo Rocha
Browse files

LCGDM-747: check_dpm_infosys checking for srmv1 which is disabled

parent bfcb4029
No related branches found
No related tags found
No related merge requests found
......@@ -50,14 +50,14 @@ class check_dpm_infosys:
\t-H, --host\tThe host to query. If not specified, DPM_HOST will be used. 'localhost' in last instance.
\t-p, --port\tThe ldap port. Default: %d
This probe expects a running local BDII and checks the correctness of information published in it. The rfio, gridftp and srm (both versions) are checked as well the srm manager services (httpg://$DPM_HOST:8443/srm/managerv1 and httpg://$DPM_HOST:8446/srm/managerv2)
This probe expects a running local BDII and checks the correctness of information published in it. The rfio, gridftp and srm are checked as well the srm manager service (httpg://$DPM_HOST:8446/srm/managerv2)
Description of work executed by the probe:
\t1. Initialize a ldap connection to the headnode
\t2. Check if informations about gridftp and rfio protocols are correclty published
\t3. Check if informations about srmv1 and srmv2 protocols are correclty published
\t4. check if informations about "httpg://hostname:8443/srm/managerv1" and "httpg://hostname:8446/srm/managerv2" services are correclty published
\t2. Check if informations about gridftp and rfio protocols are correctly published
\t3. Check if informations about srmv2 protocol is correctly published
\t4. check if informations about "httpg://hostname:8446/srm/managerv2" service is correctly published
\t5. Return values to nagios
\t\tNo Warning alert can be set
\t\tCritical alert is triggerd if the ldap server is unreachable or one of the previous item don't publish informations correctly
......@@ -119,7 +119,7 @@ Description of work executed by the probe:
elif verbosity(V_EXTENDED):
print "Access protocol %s published" % protocol
for protocol in ("srmv1", "srmv2"):
for protocol in ("srmv2"):
result = conn.search_s(self.base_dn, ldap.SCOPE_SUBTREE, "GlueSEControlProtocolLocalID=%s" % protocol)
if not len(result):
return (EX_CRITICAL, "Control protocol %s not published" % protocol, None)
......@@ -127,7 +127,7 @@ Description of work executed by the probe:
print "Control protocol %s published" % protocol
# Services
for s in ("httpg://%s:8443/srm/managerv1", "httpg://%s:8446/srm/managerv2"):
for s in ("httpg://%s:8446/srm/managerv2"):
service = s % self.host
result = conn.search_s(self.base_dn, ldap.SCOPE_SUBTREE, "GlueServiceUniqueID=%s" % service)
if not len(result):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment