Changeset 3257
- Timestamp:
- 08/06/13 13:15:09 (11 years ago)
- Location:
- monitoring/plugins/mpi
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
monitoring/plugins/mpi/check_clarin_ldap.py
r3256 r3257 15 15 special_plugin_file_name = os.path.basename(__file__) 16 16 command_line_parameters = [("-h", "host",), 17 17 ("-b", "bind DN",)] 18 18 19 19 # Warning: check of validity of returned data relies on the XML namespace OAI_NAMESPACE of the returned XML markup. … … 22 22 bindDN) : 23 23 24 results = map(lambda UP_URL : generic_tla_monitoring.check_ldap(host = host, 25 bindDN = bindDN, 26 validator = generic_tla_monitoring.check_LDAP_validity, 27 special_plugin_file_name = special_plugin_file_name), 28 (host,)) # X- allow for multiple hosts 24 results = map(lambda UP_URL : generic_tla_monitoring.check_ldap(host = host, \ 25 bindDN = bindDN, \ 26 validator = generic_tla_monitoring.check_LDAP_validity, \ 27 special_plugin_file_name = special_plugin_file_name), \ 28 (host,) 29 ) # X- allow for multiple hosts 29 30 30 31 generic_tla_monitoring.nagios_return_complex(results, … … 33 34 if __name__ == "__main__" : 34 35 generic_tla_monitoring.main(special_main_subroutine = special_main_subroutine, 35 36 command_line_parameters = command_line_parameters) -
monitoring/plugins/mpi/generic_tla_monitoring.py
r3256 r3257 25 25 print "[" + reporter + "] " + result['code'] + ": " + result['message'] 26 26 return result['code'] 27 27 28 28 pdb.set_trace() 29 29 30 30 # Scan all condition/status check results and create a list of appropriate exit codes. 31 31 exit_code_keys = map(lambda result : deal_with_result(result, reporter), results) 32 32 suggested_exit_codes = list(map(lambda key : nagios_codes[key], exit_code_keys)) 33 33 34 34 # Exit with the highest suggested exit code, because the higher the exit code the more problematic the status is and problems have priority over harmony. 35 35 sys.exit(max(suggested_exit_codes))
Note: See TracChangeset
for help on using the changeset viewer.