Ad Widget

Collapse

JMX Host Discovery running on different ports

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • juanc
    Junior Member
    • Oct 2015
    • 3

    #1

    JMX Host Discovery running on different ports

    I'd like to use Zabbix's low level or host discovery system to discover 20-30 applications running on a single server. Each one has about a dozen JMX items I want to monitor. Each application has JMX running on a different port.

    I've tried two approaches.

    Host discovery

    Because all the applications run on the same IP address, I cannot find a way to discover the applications and add them as different hosts. The host discovery insists on making the IP address the unique identifier rather than a combination of port and IP. I can't see a way to feed host discovery from custom json output. Is that possible?

    Item discovery

    This works better, and I can easily use a custom script to generate json which contains the port numbers of the JMX services. However JMX cannot work by picking up the JMX port from the item or macro. It will only detect the JMX interface from the host itself. Is there a way to override the JMX port at the item level?

    If none of the above is possible, I'll need to write something custom using the API, but it would be simpler to be able to use the discovery rules.

    Thanks

    Juan
Working...