Changeset 3382 for monitoring
- Timestamp:
- 08/15/13 12:31:48 (11 years ago)
- Location:
- monitoring/plugins/mpi
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
monitoring/plugins/mpi/check_clarin_discojuice_json.py
r3270 r3382 24 24 UP_URLs) 25 25 26 26 27 generic_tla_monitoring.nagios_return_complex(results, 27 28 reporter = special_plugin_description) -
monitoring/plugins/mpi/generic_tla_monitoring.py
r3381 r3382 66 66 mode = "wt") as debugging_output_file : 67 67 debugging_output_file.write(traceback_string) 68 sys.exit(999) # X- exit with some special error status68 #sys.exit(999) # X- exit with some special error status 69 69 70 70 return valid … … 103 103 descriptive_string, 104 104 kwargs) : 105 json.loads(data) 105 106 try : 107 json.loads(data) 108 except JSONDecodeError : 109 valid = False 110 else : 111 valid = True 112 113 return valid 106 114 107 115 wellformedness = generic_validator(data, … … 154 162 kwargs, 155 163 special_validator) 156 return (wellformedness)164 return wellformedness 157 165 158 166
Note: See TracChangeset
for help on using the changeset viewer.