From 042a19c937dda11f036f65df506221a62d056b2b Mon Sep 17 00:00:00 2001 From: fgenellini Date: Wed, 21 Oct 2015 11:29:09 -0300 Subject: [PATCH] Update notify.py According https://github.com/pistolero/zbxsend syntax, the function is not wearing a zbxsend third parameter after the port. In my case, I had to remove the "20" at the end of the line No. 141 to work with Zabbix sender. --- notify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notify.py b/notify.py index 408ad52..ad98d42 100755 --- a/notify.py +++ b/notify.py @@ -138,7 +138,7 @@ def sendmail(jname, jtype, jlevel, jexit_code, jmsg, recipients): # Send result to zabbix logging.info( "sending metrics to '{0}': '{1}'".format(conf['zabbix_server'], metrics) ) -send_to_zabbix(metrics, conf['zabbix_server'], 10051, 20) +send_to_zabbix(metrics, conf['zabbix_server'], 10051) # Send emails (if requested) if (args.recipients and