Changeset 3388 for monitoring


Ignore:
Timestamp:
08/15/13 14:24:01 (11 years ago)
Author:
sanmai
Message:
  • Completely fix validation, this time.
File:
1 edited

Legend:

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

    r3387 r3388  
    1818    #generic_tla_monitoring.nagios_return(result['code'], result['message'])
    1919
    20     valid_root_element_tag  = "{%s}METATRANSCRIPT" % (IMDI_namespace)
     20    valid_root_element_tag = "{%s}METATRANSCRIPT" % (IMDI_namespace)
    2121
    2222    UP_URLs = (URL,) # X- use frozenset
     
    2626    # Check status for all UP_URLs.
    2727    results = \
    28       map(lambda UP_URL : generic_tla_monitoring.check_condition(host          = 'hdl.handle.net', # X- host
    29                                                                  UP_URL        = UP_URL,
    30                                                                  HTTP_method   = 'POST',
    31                                                                  validator     = generic_tla_monitoring.check_HTML_wellformedness,
    32                                                                  special_plugin_file_name = special_plugin_file_name),
     28      map(lambda UP_URL : generic_tla_monitoring.check_condition(host                      = 'hdl.handle.net', # X- host
     29                                                                 UP_URL                    = UP_URL,
     30                                                                 HTTP_method               = 'POST',
     31                                                                 validator                 = generic_tla_monitoring.check_XML_validity,
     32                                                                 valid_root_element_tag    = valid_root_element_tag,                                                                 special_plugin_file_name = special_plugin_file_name),
    3333                           UP_URLs)   
    3434   
Note: See TracChangeset for help on using the changeset viewer.