Skip to content

Commit df0cee3

Browse files
committed
simplify report printing for zabbix
1 parent 86afb52 commit df0cee3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/vsc/utils/zabbix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class ZabbixReporter(NagiosReporter):
5656

5757
def print_report_and_exit(self, timestamp, nagios_exit_code, nagios_exit_string, nagios_message):
5858
"""Print the zabbix report and exit"""
59-
json.dump([timestamp, nagios_exit_string, json.loads(nagios_message)], sys.stdout)
59+
print('[%f, "%s", %s]' % (timestamp, nagios_exit_string, nagios_message))
6060
self.log.info("Zabbix check cache file %s contents delivered: %s", self.filename, nagios_message)
6161
sys.exit(nagios_exit_code)
6262

0 commit comments

Comments
 (0)