We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86afb52 commit df0cee3Copy full SHA for df0cee3
lib/vsc/utils/zabbix.py
@@ -56,7 +56,7 @@ class ZabbixReporter(NagiosReporter):
56
57
def print_report_and_exit(self, timestamp, nagios_exit_code, nagios_exit_string, nagios_message):
58
"""Print the zabbix report and exit"""
59
- json.dump([timestamp, nagios_exit_string, json.loads(nagios_message)], sys.stdout)
+ print('[%f, "%s", %s]' % (timestamp, nagios_exit_string, nagios_message))
60
self.log.info("Zabbix check cache file %s contents delivered: %s", self.filename, nagios_message)
61
sys.exit(nagios_exit_code)
62
0 commit comments