-
Incident report
-
Resolution: Won't fix
-
Major
-
None
-
2.2.1
-
windows 2008R2
multi line zabbix_sender fails if input contains an empty line on 2.2.1
using 2.0.9 the output is as expected : zabbix_send just skips malformed / empty lines
c:\Program Files\Zabbix Agent_2.0.9> type myfile.txt | zabbix_sender.exe -i - -vv -c zabbix_agentd.conf
zabbix_sender.exe [6112]: Warning: [line 34] 'Hostname' required
zabbix_sender.exe [6112]: Warning: [line 59] 'Hostname' required
zabbix_sender.exe [4884]: DEBUG: answer [
]
info from server: "Processed 57 Failed 0 Total 57 Seconds spent 0.001074"
sent: 57; skipped: 2; total: 59
on 2.2.1 zabbix_send fails on the first empty line
c:\Program Files\Zabbix Agent_2.2.1> type myfile.txt | zabbix_sender.exe -i - -vv -c zabbix_agentd.conf
zabbix_sender.exe [6140]: Warning: [line 34] 'Hostname' required
Sending failed.
This breaks a bunch of checks, we had to revert to 2.0.9 on those servers.
unfortunately removing empty lines is more complicated than it should on windows ...