Changeset 3270 for monitoring/plugins/mpi/check_lat_lamus.py
- Timestamp:
- 08/06/13 14:16:15 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
monitoring/plugins/mpi/check_lat_lamus.py
r3043 r3270 5 5 6 6 7 special_plugin_description = "Lamus" 8 special_plugin_file_name = os.path.basename(__file__) 7 special_plugin_description = "Lamus" 8 special_plugin_file_name = os.path.basename(__file__) 9 command_line_parameters = [("-h", "host",), 10 ("-u", "URL",)] 9 11 10 def special_main_subroutine(host) :11 12 12 UP_URLs = ('/jkc/lamus/lamusstart.jsp',) # X- use frozenset 13 def special_main_subroutine(host, URL) : 14 15 UP_URLs = (URL,) # X- use frozenset 13 16 14 17 # Check status for all UP_URLs. 15 results 16 17 18 19 20 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) 21 24 22 generic_tla_monitoring.nagios_return_complex(results, reporter = special_plugin_description) 25 generic_tla_monitoring.nagios_return_complex(results, 26 reporter = special_plugin_description) 23 27 24 28 if __name__ == "__main__" : 25 generic_tla_monitoring.main(special_main_subroutine) 29 generic_tla_monitoring.main(special_main_subroutine, 30 command_line_parameters) 26 31
Note: See TracChangeset
for help on using the changeset viewer.