Hi
I am using Zabbix 1.8, Is it possible to pass parameters to a UserParameter item that contains a comma. For example I have a jmx UserParameter defined as follows in zabbix_agentd.conf:
UserParameter=jmx[*],curl -s -u tomcat_user:tomcat_pass http://127.0.0.1:8080/manager/jmxproxy/?qry=$1 | egrep $2 | cut -f2 -d ':' | sed 's/^ *//g' | sed 's/ *$//g'
I want to be able to use it as follows in the webinterface (and test with zabbix_get):
jmx[java.lang:type=GarbageCollector,name=ConcurrentMar kSweep][CollectionTime]
(Also tried jmx["java.lang:type=GarbageCollector,name=ConcurrentMa rkSweep","CollectionTime"] )
This seems to be not supported (to pass a parameter that itself contains a comma) or I have the incorrect syntax.
What is the correct syntax for this or is there a work around?
(I would prefer to not specify a seperate UserParameter for each JMX attribute!)
I am using Zabbix 1.8, Is it possible to pass parameters to a UserParameter item that contains a comma. For example I have a jmx UserParameter defined as follows in zabbix_agentd.conf:
UserParameter=jmx[*],curl -s -u tomcat_user:tomcat_pass http://127.0.0.1:8080/manager/jmxproxy/?qry=$1 | egrep $2 | cut -f2 -d ':' | sed 's/^ *//g' | sed 's/ *$//g'
I want to be able to use it as follows in the webinterface (and test with zabbix_get):
jmx[java.lang:type=GarbageCollector,name=ConcurrentMar kSweep][CollectionTime]
(Also tried jmx["java.lang:type=GarbageCollector,name=ConcurrentMa rkSweep","CollectionTime"] )
This seems to be not supported (to pass a parameter that itself contains a comma) or I have the incorrect syntax.
What is the correct syntax for this or is there a work around?
(I would prefer to not specify a seperate UserParameter for each JMX attribute!)
Comment