Ad Widget

Collapse

Zabbix JMX with non default URL

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mdelgado
    Junior Member
    • Apr 2013
    • 2

    #1

    Zabbix JMX with non default URL

    Hello everyone,

    I'm using Zabbix 2.0.4 with Java Gateway to monitor specific Apache (Tomcat) JMX components. So far so good, everything is monitored perfectly

    The only problem comes from the KARAF module of Apache, which is not monitored by Zabbix.

    We investigated and found that Zabbix needs a specific URL for connection, like :
    service:jmx:rmi:///jndi/rmi://[IPADRESS]:[PORT]/jmxrmi

    Our KARAF module creates a JMX URL such as this one :
    service:jmx:rmi://[IPADRESS]:[PORT]/jndi/rmi://[IPADRESS]:[PORT2]/karaf-trun
    where PORT is the JMX Port and PORT2 the JMX Registry Port

    How can we, in Zabbix :
    - change the /jmxrmi into another value
    - add another port (which is normally an interface on a host

    We tried to change on the KARAF module the URL, but the JMX connection is not started (general failure)

    Any help could be really useful

    Regards,

    MDELGAOD
  • Menocu
    Junior Member
    • Jan 2007
    • 9

    #2
    I don't have any advice for you but I wanted to chime in and say we're facing the same challenge and would love a solution.

    Comment

    • Heilig
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Mar 2013
      • 366

      #3
      Originally posted by mdelgado
      - add another port (which is normally an interface on a host
      Have you tried to change the settings of host JMX interfaces?

      Comment

      • mdelgado
        Junior Member
        • Apr 2013
        • 2

        #4
        We found a solution based on Jolokia instead, and some improvements with a modified Zabbix_Java_Gateway (from Ryanrupp, https://bitbucket.org/ryanrupp/zabbi...eway/wiki/Home).

        We are currently using Jolokia Discoveries with propagated items, and not JXM protocol. But still facing a minor issue with this fact.

        Comment

        • rrupp
          Junior Member
          • Jul 2012
          • 21

          #5
          Old post here but figured I'd add some more information. With that modified Java Gateway you can specify a host level macro {$JMX_ENDPOINT} to specify a non-default endpoint e.g. something other than the default "/jmxrmi" - the java gateway then uses the Zabbix frontend API to inspect these macros for the host and configure them (this is mainly a workaround for not being able to specify this in the interface without having to make any database/php changes!). See the "Configurable protocol and endpoint" section in the wiki here - https://bitbucket.org/ryanrupp/zabbi...eway/wiki/Home

          Comment

          Working...