adubkov / py-zabbix

Python modules for zabbix.
GNU General Public License v2.0
415 stars 158 forks source link

Feature request: Support for nanosecond part when using trapper #150

Open samarko opened 2 years ago

samarko commented 2 years ago

Same feature as is implemented in zabbix_sender -N or --with-ns. Useful when converting snmp traps to zabbix trapper and snmp traps are arriving within same second.

samarko commented 2 years ago

I've created patch for sender.py, it adds ns parameter to data which is sent to zabbix server/proxy. `--- sender.py.20220916_01 2022-09-16 08:20:25.632689524 +0300 +++ sender.py 2022-09-16 08:31:13.880987429 +0300 @@ -109,11 +109,14 @@ :type clock: int :param clock: Unix timestamp. Current time will used if not specified.