Changeset 3258 for monitoring
- Timestamp:
- 08/06/13 13:22:16 (11 years ago)
- Location:
- monitoring/plugins/mpi
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
monitoring/plugins/mpi/generic_tla_monitoring.py
r3257 r3258 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)) … … 305 305 306 306 try : 307 opts = filter(None, getopt.getopt(sys.argv[1:], command_line_parameters_getopt_string))[0] 307 opts = filter(None, getopt.getopt(sys.argv[1:], command_line_parameters_getopt_string)) 308 if len(opts) > 0 : opts = opts[0] 308 309 except getopt.GetoptError, err : 309 310 usage(command_line_parameters_usage_string) -
monitoring/plugins/mpi/plugins_hosts_services.tab
r2363 r3258 14 14 check_clarin_discojuice_html.py Discojuice HTML catalog.clarin.eu http 15 15 check_lat_avatech_clam.py AVATecH CLAM lux17.mpi.nl http 16 check_clarin_ldap.py LDAP directory user.clarin.eu ldap
Note: See TracChangeset
for help on using the changeset viewer.