Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-4129

Unable to pass argument with comma with zabbix_get

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • None
    • Agent (G)

      To reproduce

      • create userParameter under Zabbix agent:
        UserParameter=test[*],echo $1
        

        Create test with item:

        with Char and key test["1,2"]
        Observe that '1,2' value is received correctly:

        Now try to do the same with zabbix_get:

        [vagrant@zabbix-lab ~]$ zabbix_get -k test["1,2"] -s localhost
        1
        

        2 - is the second argument now and ignored, despite there are doublequotes so all chars should be supported and ',' too.
        https://www.zabbix.com/documentation/3.4/manual/config/items/item/key

        1. 1.png
          63 kB
          Vitaly Zhuravlev
        2. 2.png
          6 kB
          Vitaly Zhuravlev

            Unassigned Unassigned
            vzhuravlev Vitaly Zhuravlev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: