Hello,
I'm trying to Monitoring C3p0 via JMX using zabbix 2.4.6.
The problem is that the objectName that I'm trying to monitor has characters like "[", "|" and "]", as example, my object name looks like this:
com.mchange.v2.c3p0:type=PooledDataSource[30y2o49f1tyrsoo1yis3do|22271ddb]
The issue here is that if in zabbix in a template I configure below in the "Key" field of a template "item", which is meant to monitor numIdleConnections, zabbix will set status for my "item" as "Not supported" :
jmx["com.mchange.v2.c3p0:type=PooledDataSource[30y2o49f1tyrsoo1yis3do|68967f33]",numIdleConnections]
Can somebody please help me with an example of proper sintax to be used in the "Key" field when defining an "item" in a template so that I can get counters like numIdleConnections from c3p0 via JMX?
Note1: I tried escaping one or all of "[" "]" and "|" but no luck.
Note2: I'm in C3p0 version 0.9.1.1 which returns those funny [ | ]. Is there anything to be done other than upgrading version?
Thanks
Luis
I'm trying to Monitoring C3p0 via JMX using zabbix 2.4.6.
The problem is that the objectName that I'm trying to monitor has characters like "[", "|" and "]", as example, my object name looks like this:
com.mchange.v2.c3p0:type=PooledDataSource[30y2o49f1tyrsoo1yis3do|22271ddb]
The issue here is that if in zabbix in a template I configure below in the "Key" field of a template "item", which is meant to monitor numIdleConnections, zabbix will set status for my "item" as "Not supported" :
jmx["com.mchange.v2.c3p0:type=PooledDataSource[30y2o49f1tyrsoo1yis3do|68967f33]",numIdleConnections]
Can somebody please help me with an example of proper sintax to be used in the "Key" field when defining an "item" in a template so that I can get counters like numIdleConnections from c3p0 via JMX?
Note1: I tried escaping one or all of "[" "]" and "|" but no luck.
Note2: I'm in C3p0 version 0.9.1.1 which returns those funny [ | ]. Is there anything to be done other than upgrading version?
Thanks
Luis
Comment