Ad Widget

Collapse

Zabbix 2.x JMX and multiple instances

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Alex_SYB
    Senior Member
    • Feb 2012
    • 133

    #1

    Zabbix 2.x JMX and multiple instances

    Hi

    i have 2 java VM running on my server. How can I get monitor both of them with the JMX client

    When I go to add in the second item it says the key is already being used ... and I can't anoint it with an index value !
  • Alex_SYB
    Senior Member
    • Feb 2012
    • 133

    #2
    I tried adding [x] on the end but it seems like jmx agent doesn't like it !

    I have opened a bug report


    Not sure if it should be a feature request though.

    I have asked if we can have something like this

    jmx["1","2"][x]

    so it extends the current jmx string to include the [x] on the end that will let it be unique. Also i have request if that can be linked to the jmx port interfaces.

    so [0] => to the default interfafe
    [1] => jmx interface 1
    [2] => jmx interface 2

    and not adding in [0] would be the same as it is now.

    But this is a long term fix. wonder how people handle it right now ?

    Alex

    Comment

    • rrupp
      Junior Member
      • Jul 2012
      • 21

      #3
      Yes, this is an issue we ran into as well. I think there's a issue logged out there somewhere where it suggested key uniqueness should be the interface + jmx key. Currently, we're treating each java instance as a separate host, this probably isn't that ideal though. For us we're after application monitoring so we have a lot of items per java instance so this actually helps reduce some of the clutter, then we have a naming convention to link back to the machine level host that the java instance runs on i.e.

      Hosts:
      RRUPP1 (reports machine level statistics)
      RRUPP1-jetty-4500 (reports jetty based application running on port 4500)
      RRUPP1-jetty-4600 (reports jetty based application running on port 4600)

      This is described as well in the comments of this issue - https://support.zabbix.com/browse/ZBX-3886

      Comment

      • Alex_SYB
        Senior Member
        • Feb 2012
        • 133

        #4
        Interesting.

        The suggestion i got from a developer was to put spaces in key ie between the , and the "

        But i think your idea is better ! Maybe harder though to create a full picture cause you have to bring together multiple !hosts! into 1 screen ...

        But I might have to investigate more

        Thanks

        EDIT: read your link... bit of a quandary. I like your idea and I like having my jvm info in one place... For now I am creating multiple entries with spaces in the key name... until that breaks i guess !
        Last edited by Alex_SYB; 05-09-2012, 02:11.

        Comment

        • dgoade
          Junior Member
          • Nov 2014
          • 1

          #5
          JMX Key Name Hack

          You guys still using the JMX Key Name hack? Would you recommend I try it until they get this fixed with https://support.zabbix.com/browse/ZBX-3886?

          Comment

          Working...