Ignore:
Timestamp:
09/12/13 15:37:28 (11 years ago)
Author:
sanmai
Message:
  • Add plugin for LAT PostgreSQL server.
  • Rework generic HTTP check to allow port number specification.
  • Some renaming/clarification.
File:
1 edited

Legend:

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

    r3385 r3555  
    99CQL_namespace = "http://www.loc.gov/zing/srw/"
    1010command_line_parameters = [("-h", "host",),
    11                            ("-u", "URL",)]
     11                           ("-u", "http_path",)]
    1212
    1313# Warning: check of validity of returned data relies on the XML namespace CQL_NAMESPACE of the returned XML markup.
    1414
    1515def special_main_subroutine(host,
    16                             URL) :
     16                            http_path) :
    1717   
    18     UP_URLs = (URL,) # X- allow for multiple URLs?
     18    http_paths = (http_path,) # X- allow for multiple URLs?
    1919
    2020    valid_root_element_tag = "{%s}explainResponse" % (CQL_namespace)
    2121   
    22     # Check status for all UP_URLs.
     22    # Check status for all http_paths.
    2323    results = \
    24         map(lambda UP_URL : generic_tla_monitoring.check_condition(host                      = host,
    25                                                                    UP_URL                    = UP_URL,
    26                                                                    HTTP_method               = 'GET',
    27                                                                    validator                 = generic_tla_monitoring.check_XML_validity,
    28                                                                    valid_root_element_tag    = valid_root_element_tag,
    29                                                                    special_plugin_file_name  = special_plugin_file_name),
    30             UP_URLs)
     24        map(lambda http_path : generic_tla_monitoring.check_condition(host                      = host,
     25                                                                      http_path                 = http_path,
     26                                                                      HTTP_method               = 'GET',
     27                                                                      port_number               = 80,
     28                                                                      authorize                 = True,
     29                                                                      validator                 = generic_tla_monitoring.check_XML_validity,
     30                                                                      valid_root_element_tag    = valid_root_element_tag,
     31                                                                      special_plugin_file_name  = special_plugin_file_name),
     32            http_paths)
    3133   
    3234    generic_tla_monitoring.nagios_return_complex(results, reporter = special_plugin_description)
Note: See TracChangeset for help on using the changeset viewer.