Changeset 3385
- Timestamp:
- 08/15/13 14:10:11 (11 years ago)
- Location:
- monitoring/plugins/mpi
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
monitoring/plugins/mpi/check_lat_avatech_clam.py
r3270 r3385 9 9 command_line_parameters = [("-h", "host",), 10 10 ("-u", "URL",)] 11 valid_root_element_tag = "clam" 11 12 12 13 def special_main_subroutine(host, URL) : … … 19 20 UP_URL = UP_URL, 20 21 HTTP_method = "GET", 21 validator = generic_tla_monitoring.check_HTML_wellformedness, 22 validator = generic_tla_monitoring.check_XML_validity, 23 valid_root_element_tag = valid_root_element_tag, 22 24 special_plugin_file_name = special_plugin_file_name), 23 25 UP_URLs) -
monitoring/plugins/mpi/check_lat_cql_endpoint.py
r3270 r3385 7 7 special_plugin_description = "CQL endpoint" 8 8 special_plugin_file_name = os.path.basename(__file__) 9 CQL_ NAMESPACE= "http://www.loc.gov/zing/srw/"9 CQL_namespace = "http://www.loc.gov/zing/srw/" 10 10 command_line_parameters = [("-h", "host",), 11 11 ("-u", "URL",)] … … 18 18 UP_URLs = (URL,) # X- allow for multiple URLs? 19 19 20 valid_root_element_tag = "{%s}explainResponse" % (CQL_ NAMESPACE)20 valid_root_element_tag = "{%s}explainResponse" % (CQL_namespace) 21 21 22 22 # Check status for all UP_URLs. -
monitoring/plugins/mpi/check_lat_handle.py
r3270 r3385 9 9 command_line_parameters = [("-h", "host",), 10 10 ("-u", "URL",)] 11 IMDI_namespace = "http://www.mpi.nl/IMDI/Schema/IMDI" 11 12 12 13 # Warning: old checking condition "if 300 <= r1.status and r1.status < 400:" X- … … 16 17 #result = check_condition(host) 17 18 #generic_tla_monitoring.nagios_return(result['code'], result['message']) 19 20 valid_root_element_tag = "{%s}METATRANSCRIPT" % (OAI_namespace) 18 21 19 22 UP_URLs = (URL,) # X- use frozenset -
monitoring/plugins/mpi/check_lat_imdi.py
r3270 r3385 21 21 # Check status for all UP_URLs. 22 22 results = \ 23 map(lambda UP_URL : generic_tla_monitoring.check_condition(host = host, 24 UP_URL = UP_URL, 25 HTTP_method = 'GET', 26 validator = generic_tla_monitoring.check_HTML_wellformedness, 27 special_plugin_file_name = special_plugin_file_name), 23 map(lambda UP_URL : generic_tla_monitoring.check_condition(host = host, 24 UP_URL = UP_URL, 25 HTTP_method = 'GET', 26 validator = generic_tla_monitoring.check_XML_validity, 27 valid_root_element_tag = valid_root_element_tag, 28 special_plugin_file_name = special_plugin_file_name), 28 29 UP_URLs) 29 30 -
monitoring/plugins/mpi/check_lat_oai_endpoint.py
r3284 r3385 7 7 special_plugin_description = "OAI-PMH endpoint" 8 8 special_plugin_file_name = os.path.basename(__file__) 9 OAI_ NAMESPACE= "http://www.openarchives.org/OAI/2.0/"9 OAI_namespace = "http://www.openarchives.org/OAI/2.0/" 10 10 command_line_parameters = [("-h", "host",), 11 11 ("-u", "URL",)] … … 18 18 UP_URLs = (URL,) # X- use frozenset 19 19 20 valid_root_element_tag = "{%s}OAI-PMH" % ( "http://www.openarchives.org/OAI/2.0/")20 valid_root_element_tag = "{%s}OAI-PMH" % (OAI_namespace) 21 21 22 22 # Check status for all UP_URLs. -
monitoring/plugins/mpi/generic_tla_monitoring.py
r3382 r3385 74 74 descriptive_string, 75 75 **kwargs) : # X- 76 76 77 def special_validator(data, 77 78 descriptive_string, … … 87 88 else : 88 89 return False 90 91 pdb.set_trace() 89 92 90 93 # X- Do PROPER wellformedness check - once the tools are availble.
Note: See TracChangeset
for help on using the changeset viewer.