Ad Widget

Collapse

Is it possible to detect a change of host interface with a trigger?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lokha
    Junior Member
    • Jun 2020
    • 15

    #1

    Is it possible to detect a change of host interface with a trigger?

    I use zabbix to monitor my java applications.

    Java applications are added to zabbix as a JMX interface.

    I have java applications sometimes moving between my hosts. In this situation, my script updates the JMX interface data in zabbix.

    Question. Is it possible to create a trigger to detect the JMX interface change?
  • Semiadmin
    Senior Member
    • Oct 2014
    • 1625

    #2
    Hi, lokha!
    Yes, it's possible.
    Just create a text item with the type "Zabbix internal", key zabbix[host,discovery,interfaces] and JSONPath preprocessing
    Code:
    $.[?(@.['{#IF.TYPE}'] == "JMX")].['{#IF.CONN}'].first()
    .
    After that, you may create a trigger with function change().

    Comment

    • lokha
      Junior Member
      • Jun 2020
      • 15

      #3
      Thanks for the answer

      Comment

      Working...