Changeset 4043 for monitoring


Ignore:
Timestamp:
11/19/13 08:08:33 (11 years ago)
Author:
bvonstvieth
Message:

quick hack to solve problems for the central monitoring (because of changed interface of "check_condition")

Location:
monitoring/plugins/mpi
Files:
2 edited

Legend:

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

    r3555 r4043  
    2020    valid_root_element_tag = "{%s}explainResponse" % (CQL_namespace)
    2121   
     22    if host.count(':') == 1:
     23        host, port = host.split(':')
     24    else:
     25        port = 80
    2226    # Check status for all http_paths.
    2327    results = \
     
    2529                                                                      http_path                 = http_path,
    2630                                                                      HTTP_method               = 'GET',
    27                                                                       port_number               = 80,
     31                                                                      port_number               = port,
    2832                                                                      authorize                 = True,
    2933                                                                      validator                 = generic_tla_monitoring.check_XML_validity,
  • monitoring/plugins/mpi/check_lat_oai_endpoint.py

    r3555 r4043  
    2020    valid_root_element_tag  = "{%s}OAI-PMH" % (OAI_namespace)
    2121   
     22    if host.count(':') == 1:
     23        host, port = host.split(':')
     24    else:
     25        port = 80
    2226    # Check status for all http_paths.
    2327    results = \
     
    2529                                                                      http_path                 = http_path,
    2630                                                                      HTTP_method               = 'GET',
    27                                                                       port_number               = 80,
     31                                                                      port_number               = port,
    2832                                                                      authorize                 = True,
    2933                                                                      validator                 = generic_tla_monitoring.check_XML_validity,
Note: See TracChangeset for help on using the changeset viewer.