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

Commas in UserParameters not parsing correctly

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Minor Minor
    • None
    • 1.8.5
    • Agent (G)
    • None

      Possible regression? similar to http://www.zabbix.com/forum/showthread.php?t=14972

      I'm passing multiple arguments to a user parameter:

      UserParameter=jmx.[*],/usr/bin/java -jar /tmp/check_jmx.jar -u B -U service:jmx:rmi:///jndi/rmi://$1:$2/jmxrmi -O "$3" -A "$4" -K used --username xxx --password xxx

      When run the third parameter which contains a comma is being split despite being quoted.

      /usr/sbin/zabbix_agent -t jmx.["pirelli","8991","java.lang:type=MemoryPool,name=Tenured Gen","Usage"]
      jmx.[pirelli,8991,java.lang:type=MemoryPool,name=Tenured Gen,Usage] [t|JMX CRITICAL - objectName not found [java.lang:type=MemoryPool]]

      The error output returned from the application called contains an 'objectName not found' error then shows the first half up to the comma of the third parameter I passed it.

            Unassigned Unassigned
            maxlock Max Lock
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: