Ad Widget

Collapse

How to display JVM application name in JMX triggers?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aikus
    Junior Member
    • Apr 2022
    • 4

    #1

    How to display JVM application name in JMX triggers?

    Hello!
    I have such a problem with JMX monitoring.
    If for example some JVM is down, the message on dashboard looks like that:



    The places I have blurred-out are hostname (which I'm not allowed to publish).
    The thing is there is NO JVM name displaying, and in case of a host that is running multiple of them - I don't know which is problem with.
    It's zabbix 5.0, hosts (and of course also JMX) are monitored by proxy (quite sure it doesn't matter in this case).

    In fact, the previous instance of Zabbix was 3.4, (set up by previous employees of my company, that don't work here anymore) and they did it somehow - there is service name displayed when something is wrong.
    But I don't know how they did it, and right now I'm migrating to Zabbix 5.0 (not via upgrade - just have two zabbix instances, old and new, and switching monitors successively).
    Can anybody help me with it?
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Just guessing, but probably they did somekind of discovery there, which obtained names and used them for items/triggers through prototypes...

    Comment

    • aikus
      Junior Member
      • Apr 2022
      • 4

      #3
      OK... But is it the only way? I'm not insisting to do it the way they did...
      In fact, I'm kind of confused and therefore a little bit reluctant do reverse-engineer their creativity in previous Zabbix version

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4807

        #4
        You can do all manually or create a discovery, which does things for you..
        You can obtain list of instances from 3rd party (CMDB for example) and create needed items/triggers over API...

        Comment

        • aikus
          Junior Member
          • Apr 2022
          • 4

          #5

          Well then... exactly as I didn't wanted to, i did some research in the old zabbix instance...
          At first I was unable to find ANY difference in triggers, items, templates... Everything looked exactly THE SAME.
          ... and then finally i found out how does it work.
          Well, they just did it "forcefully"
          They made fake-host for every one application they wanted to monitor.
          This means for example: we have host01, and three JVM instances on it: JVM01, JMV02, JVM03, right?
          Every JVM instance has a JMX interface (listening on different port number) - easy.
          SO: We make in zabbix configuration host named host01 and configure it with just zabbix agent, and then three fake hosts named: host01-JVM01, host01-JVM02, host01-JVM03 configured ONLY with JMX interfaces.

          And that is what we must do to get what I wanted to.

          Honestly i'm a little bit disappointed with solution like that (it makes confusion for some newbie of what we are monitoring), but since there is no other way - that is what we have to do.


          Thanks anyway for trying to help me! I really appreciate that!
          Have an absolutely fantastic day!


          Comment

          Working...