Changeset 4047 for monitoring/plugins/mpi/check_lat_handle.py
- Timestamp:
- 11/19/13 11:13:07 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
monitoring/plugins/mpi/check_lat_handle.py
r3555 r4047 8 8 special_plugin_file_name = os.path.basename(__file__) 9 9 command_line_parameters = [("-h", "host",), 10 ("-u", "http_path",)] 10 ("-u", "http_path",), 11 ("-p", "port_number",)] 11 12 IMDI_namespace = "http://www.mpi.nl/IMDI/Schema/IMDI" 12 13 13 14 # Warning: old checking condition "if 300 <= r1.status and r1.status < 400:" X- 14 15 15 def special_main_subroutine(host, http_path) : 16 #result = test_case(host); 17 #result = check_condition(host) 18 #generic_tla_monitoring.nagios_return(result['code'], result['message']) 16 def special_main_subroutine(host, 17 http_path, 18 port_number) : 19 19 20 20 valid_root_element_tag = "{%s}METATRANSCRIPT" % (IMDI_namespace) 21 21 22 22 http_paths = (http_path,) # X- use frozenset 23 # /1839/00-0000-0000-0000-0000-424 # POST hdl=1839%2F00-0000-0000-0000-0009-4&auth=x&noredirect=25 23 26 # Check status for all http_paths.24 ## Check status for all http_paths. 27 25 results = \ 28 map(lambda http_path : generic_tla_monitoring.check_condition(host = 'hdl.handle.net', # X- host29 http_path = http_path, 30 HTTP_method = 'POST', 31 port_number = 80,32 authorize = True, 26 map(lambda http_path : generic_tla_monitoring.check_condition(host = host, ## Always hdl.handle.net 27 http_path = http_path, 28 HTTP_method = 'POST', 29 port_number = port_number, 30 authorize = True, 33 31 validator = generic_tla_monitoring.check_XML_validity, 34 32 valid_root_element_tag = valid_root_element_tag,
Note: See TracChangeset
for help on using the changeset viewer.