Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-7637

zabbix_sender fails on empty input lines

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Major Major
    • None
    • 2.2.1
    • Documentation (D)
    • 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 [

      { "response":"success", "info":"Processed 57 Failed 0 Total 57 Seconds spent 0.001074"}

      ]
      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 ...

            Unassigned Unassigned
            ghoz Ghozlane TOUMI
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: