Changeset 3555 for monitoring/plugins/mpi/check_lat_lexus.py
- Timestamp:
- 09/12/13 15:37:28 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
monitoring/plugins/mpi/check_lat_lexus.py
r3269 r3555 5 5 6 6 7 special_plugin_description 8 special_plugin_file_name 7 special_plugin_description = "Lexus" 8 special_plugin_file_name = os.path.basename(__file__) 9 9 command_line_parameters = [("-h", "host",), 10 ("-u", " URL",)]10 ("-u", "http_path",)] 11 11 12 12 13 def special_main_subroutine(host, URL) :13 def special_main_subroutine(host, http_path) : 14 14 15 UP_URLs = (URL,) # X- use frozenset15 http_paths = (http_path,) # X- use frozenset 16 16 17 # Check status for all UP_URLs. 18 results = map(lambda UP_URL : generic_tla_monitoring.check_condition(host = host, 19 UP_URL = UP_URL, 20 HTTP_method = 'GET', 21 validator = generic_tla_monitoring.check_HTML_wellformedness, 22 special_plugin_file_name = special_plugin_file_name), 23 UP_URLs) 17 # Check status for all http_paths. 18 results = \ 19 map(lambda http_path : generic_tla_monitoring.check_condition(host = host, 20 http_path = http_path, 21 HTTP_method = 'GET', 22 port_number = 80, 23 authorize = True, 24 validator = generic_tla_monitoring.check_HTML_wellformedness, 25 special_plugin_file_name = special_plugin_file_name), 26 http_paths) 24 27 25 generic_tla_monitoring.nagios_return_complex(results, reporter = special_plugin_description) 28 generic_tla_monitoring.nagios_return_complex(results, 29 reporter = special_plugin_description) 26 30 27 31 if __name__ == "__main__" :
Note: See TracChangeset
for help on using the changeset viewer.