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

Zabbix sender parses key names from file incorrectly

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • 3.2.1
    • Agent (G)
    • 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"}
      

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

              Created:
              Updated:
              Resolved: