1 changed file
check_mapr_node_alarms.pl | ||
Add comment 49 sys.exit(4)
Add comment 50
Add comment 51 __author__ = 'Hari Sekhon'
Add comment 52 Minus __version__ = '0.2.1'
Add comment 52 Plus __version__ = '0.2.2'
Add comment 53
Add comment 54
Add comment 55 class CheckMesosSlave(NagiosPlugin):
Add comment 85 log.debug("response: %s %s", req.status_code, req.reason)
Add comment 86 log.debug("content:\n{0}\n{1}\n{2}".format('='*80, req.content.strip(), '='*80))
Add comment 87 if req.status_code != 200:
Add comment 88 Plus if req.status_code == 404:
Add comment 89 Plus qquit('CRITICAL', '%s %s (did you point this at the correct Mesos Master?)'
Add comment 90 Plus % (req.status_code, req.reason))
Add comment 88 91 qquit('CRITICAL', "Non-200 response! %s %s" % (req.status_code, req.reason))
Add comment 89 92 content = req.content
Add comment 90 93 if not isJson(content):