Ad Widget

Collapse

Monitor JMX for auto discovered (LLD) docker containers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sebavasile
    Junior Member
    • Nov 2018
    • 1

    #1

    Monitor JMX for auto discovered (LLD) docker containers

    Hi,
    First of all hi everyone, this being my first post on the forum.
    I have tried multiple combinations without success.

    My scenario:
    I run zabbix 3.4 on multiple machines (VM's), each of them running multiple Docker containers. Some of the containers run Java and have JMX monitoring turned on. I have a working LLD discovery template for each VM, that creates item prototypes for each discovered container, and I also want to create JMX interfaces (dynamic port from docker, exposed on the host VM) + associated JMX items based on a template.

    I have a workingdiscovery rule that receives such output and creates host based on a Host prototype:
    {"data": [{"{#CONTAINER}": "container1", "{#HOSTNAME}": "my-host-vm", "{#JMXPORT}": "9014"}, {"{#CONTAINER}": "container2", "{#HOSTNAME}": "my-host-vm", "{#JMXPORT}": "9010"}]}

    In the Host prototype, the JMX interfaces of the auto discovered hosts are automatically inherited from the host VM (one or multiple). If I associate a JMX template with the Host prototype and try to edit items to use MACRO's returned by discovery script ({#JMXPORT} for example) they are not available (I receive a numeric format exception for the port number)

    Any idea how to do this? Is it possible?
Working...