Zabbix sender parses key names from file incorrectly

XMLWordPrintable

    • Type: Incident report
    • Resolution: Won't fix
    • Priority: Trivial
    • None
    • Affects Version/s: 3.2.1
    • Component/s: Agent (G)
    • Environment:
      Linux Ubuntu 16.10

      zabbix_sender processes key names from -k option and from file differently. With -k option it is possible to send spaces in key names:

      Example:

      zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -vv -s testhost1 -k 'monitor[test,"Test One Two Three",value]' -o 123 
      

      When using the same value in file with -i option it gets parsed incorrectly (snip from server log):

      {"host":"testhost1","key":"'monitor[test\"Test","value":"Oen Two Three\",test]' 123"}
      

            Assignee:
            Unassigned
            Reporter:
            Lembitu Ling
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: