Ad Widget

Collapse

JMX Custom URL Sufix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kahlis
    Junior Member
    • Jul 2015
    • 4

    #1

    JMX Custom URL Sufix

    Hello!

    Is there any way in Zabbix to change the JMX connection url from:

    service:jmx:rmi:///jndi/rmi://[server]:[port]/jmxrmi

    to:

    service:jmx:rmi:///jndi/rmi://[server]:[port]/org.opends.server.protocols.jmx.client-unknown

    This is for monitoring OpenDJ and the URL given to me by the OpenDJ admin on staff. This is the way OpenDJ, for some reason, are presenting JMX. I'd prefer to change this at a template level so we don't loose the ability to monitor JMX applications that use the standard suffix.

    I haven't been able to find anywhere I can modify the JMX url in any form.

    Thanks!
  • long.chen
    Junior Member
    • Mar 2017
    • 14

    #2
    The new version 3.4 has supported the option to change the JMX endpoint, but the JMX item to get opendj mbean attribute value has the following exception error:

    DEBUG com.zabbix.gateway.ItemChecker - caught exception for item 'jmx["org.opends.server:Name=rootDSE,Rdn1=cn-monitor,Rdn2=cn-LDAPS_Connection_Handler_0000_port_1636_Statistics ",connectionsEstablished]'
    com.zabbix.gateway.ZabbixException: data object type is not primitive: class javax.management.Attribute

    The output value is a string which includes the attribute name, such as "connectionsEstablished = 0", I had to add some codes in the source "JMXItem.java" to parse the string.

    Comment

    Working...