Changeset 3555 for monitoring/plugins/mpi/check_lat_cql_endpoint.py
- Timestamp:
- 09/12/13 15:37:28 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
monitoring/plugins/mpi/check_lat_cql_endpoint.py
r3385 r3555 9 9 CQL_namespace = "http://www.loc.gov/zing/srw/" 10 10 command_line_parameters = [("-h", "host",), 11 ("-u", " URL",)]11 ("-u", "http_path",)] 12 12 13 13 # Warning: check of validity of returned data relies on the XML namespace CQL_NAMESPACE of the returned XML markup. 14 14 15 15 def special_main_subroutine(host, 16 URL) :16 http_path) : 17 17 18 UP_URLs = (URL,) # X- allow for multiple URLs?18 http_paths = (http_path,) # X- allow for multiple URLs? 19 19 20 20 valid_root_element_tag = "{%s}explainResponse" % (CQL_namespace) 21 21 22 # Check status for all UP_URLs.22 # Check status for all http_paths. 23 23 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) 31 33 32 34 generic_tla_monitoring.nagios_return_complex(results, reporter = special_plugin_description)
Note: See TracChangeset
for help on using the changeset viewer.