Changeset 4062 for monitoring
- Timestamp:
- 11/19/13 17:02:25 (11 years ago)
- Location:
- monitoring/plugins/mpi
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
monitoring/plugins/mpi/check_lat_avatech_clam.py
r4057 r4062 13 13 valid_root_element_tag = "clam" 14 14 15 def special_main_subroutine(host, 15 def special_main_subroutine(scheme, 16 host, 16 17 http_path, 17 18 port_number) : -
monitoring/plugins/mpi/check_lat_oai_endpoint.py
r4057 r4062 14 14 15 15 16 def special_main_subroutine(host, 16 def special_main_subroutine(scheme, 17 host, 17 18 http_path, 18 19 port_number) : -
monitoring/plugins/mpi/generic_tla_monitoring.py
r4061 r4062 298 298 timestamp = datetime.datetime.today().isoformat() 299 299 300 try : 301 if protocol == 'http' : 300 try : 301 if protocol == 'http' : 302 302 conn = httplib.HTTPConnection(host = host, 303 303 port = port_number, 304 304 strict = True) 305 elif protocol == 'https' : 306 307 305 elif protocol == 'https' : 308 306 conn = httplib.HTTPSConnection(host = host, 309 307 port = port_number, … … 311 309 request = conn.request(HTTP_method, 312 310 http_path) 313 except : 311 except : 314 312 traceback_string = traceback.format_exc() 315 313 … … 322 320 host = host) 323 321 } 324 else : 325 try : 322 else : 323 try : 326 324 response = conn.getresponse() 327 325 … … 329 327 330 328 conn.close() 331 except : 329 except : 332 330 traceback_string = traceback.format_exc() 333 331 334 332 handle_connection_failure(traceback_string + "\nThis problem originates from location 2 in '" + special_plugin_file_name + "'.\n") 335 else : 333 else : 336 334 337 335 redirecting_responses = frozenset([ … … 342 340 ]) 343 341 344 if response.status == httplib.OK : 345 # HTTP status codes 200 and 302346 # X- Resolve redirect in case of HTTP status == 302342 if response.status == httplib.OK : 343 # HTTP status codes 200 and 302 344 # X- Resolve redirect in case of HTTP status == 302 347 345 well_formed = validator(data = data, 348 346 descriptive_string = http_path, 349 347 **validator_arguments) # ['validator_arguments']) 350 348 351 if well_formed : 352 349 if well_formed : 353 350 return { 354 351 "code" : "OK",
Note: See TracChangeset
for help on using the changeset viewer.