updated check_nifi_java_gc.py
1b774683
Hari Sekhon
committed
1 changed file
check_nifi_java_gc.py
/check_nifi_java_gc.py-2+3
/check_nifi_java_gc.py
Add comment 78 sys.exit(4)
Add comment 79
Add comment 80 __author__ = 'Hari Sekhon'
Add comment 81 Minus  __version__ = '0.4.2'
Add comment 81 Plus  __version__ = '0.4.3'
Add comment 82
Add comment 83
Add comment 84 class CheckZaloniBedrockIngestion(NagiosPlugin):
Add comment 395 .format(_))
Add comment 396
Add comment 397 def req(self, url, method='post', body=None):
Add comment 398 Minus   assert isStr(method)
Add comment 398 Plus   if not isStr(method):
Add comment 399 Plus   code_error('non-string method passed to req()')
Add comment 399 400 log.debug('%s %s', method.upper(), url)
Add comment 400 401 headers = {"Content-Type": "application/json",
Add comment 401 402 "Accept": "application/json",