This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#foobar | |
# Send the passive service check back to Nagios | |
logger.debug("Constructing the Nagios result string") | |
nag_message = config.get('nagios','message') | |
nag_status = 0 | |
logger.info("Passive check result sent to Nagios") | |
except Exception, e: | |
nag_status = 2 | |
nag_message = "%s" % (e) |