zbxsend
zbxsend copied to clipboard
Python module for sending metrics to Zabbix
The zabbix.connect() socket call does not currently use the timeout as set in the send_to_zabbix function. This patch moves the zabbix.settimeout() before that to fix this.
There is a bug in how the `clock` element of JSON is formed: ``` python for m in metrics: clock = m.clock or time.time() metrics_data.append(('\t\t{\n' '\t\t\t"host":%s,\n' '\t\t\t"key":%s,\n' '\t\t\t"value":%s,\n' '\t\t\t"clock":%s}') %...
I wrote a small patch for #5
Adaptations to Python3 without impact Python2.
Hey, The function for sending data only evaluates if the response from the Zabbix server was valid or not: `if resp.get('response') != 'success':` There are cases where the response is...