Ad Widget

Collapse

Tomcat via JMX: Cannot find host interface on <host_name> for item key "jmx..

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rp3000
    Junior Member
    • Feb 2019
    • 6

    #1

    Tomcat via JMX: Cannot find host interface on <host_name> for item key "jmx..

    Hi,
    anybody dealed with the following?

    Cannot find host interface on <host_name> for item key "jmx["Catalina:type=GlobalRequestProcessor,name="{$PROT OCOL_HANDLER_AJP}"", bytesReceived]".

    I have the following configuration:

    Zabbix server (Appliance version) 4.0.2 on Ubuntu
    Zabbix remote host with RedHat 7

    Installed Agent remotely and started
    Installed zabbix-java-gateway remotely and started
    Instellad TomCat 9 remotely and started.

    My wish would be to monitor Tomcat via JMX
    I added the default tomcat template (Template App Apache Tomcat JMX) to the host but I receive the error like above.

    Any clue, suggestions?

    Thank you in advance
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Have you added the JMX interface to the host settings?

    Comment

    • rp3000
      Junior Member
      • Feb 2019
      • 6

      #3
      yes I've done that, and that error don't appear anyome, but now I have communication problem with JMX, I will go to check the doors..


      Click image for larger version

Name:	interface.jpg
Views:	2082
Size:	5.5 KB
ID:	373260

      Comment

      • rp3000
        Junior Member
        • Feb 2019
        • 6

        #4
        Thank you but still navigating far from the coast..
        I have some questions now? Where the java-gateway must run on zabbiz server or on the remote tomcat server?

        Zabbix server is 192.168.93.133
        Tomcat is 192.168.93.134

        On the red JMX icon I have the following message: Connection refused (Connection refused): service:jmx:rmi:///jndi/rmi://192.168.93.134:10055/jmxrmi
        I opened 10055 port on tomcat server but still don't work

        JMX interface has values IP 192.168.93.134 and port is 10055

        java_gateway now run on zabbix server with the following paramiters in conf file:

        LISTEN_IP="192.168.93.133"
        LISTEN_PORT=10055
        PID_FILE="/var/run/zabbix/zabbix_java_gateway.pid"
        START_POLLERS=5
        JAVA_OPTIONS="$JAVA_OPTIONS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=12345 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"

        but the JMX icon is still red

        Comment


        • Atsushi
          Atsushi commented
          Editing a comment
          Zabbix Java Gateway can be on a server running with Zabbix server or on another server. All that is necessary is that the Zabbix server and the Zabbix Java Gateway can communicate with each other and the JVM that made Zabbix Java Gateway and JMX accessible can communicate.

          Have you set the following items in zabbix_server.conf?
          - JavaGateway
          - JavaGatewayPort
          - StartJavaPollers

          If Zabbix Java Gateway is running with Zabbix server, has it allowed to connect with the port number used for JMX monitoring in the Firewall setting on the server running Tomcat?
      • rp3000
        Junior Member
        • Feb 2019
        • 6

        #5
        Thank you guys,
        Now the JMX icon has become green on remote host.
        I understood that zabbix-server must communicate with java-gateway. This is running on the same zabbix-server. They communicate by port 10052. And JMX interfaces communicate on 12345...
        But.
        The Graphs show no data still. Of any parameter of tomcat templates. I'm testing the following 2 templates: the default one of Zabbix: "Template App Apache Tomcat JMX" and another one found on the net called: "Template JMX Tomcat 7".

        Comment

        • rp3000
          Junior Member
          • Feb 2019
          • 6

          #6
          But there is a good news: I added a graph like in the example of the manual (Used Heap Memory) and I have the lines..

          Comment

          • rp3000
            Junior Member
            • Feb 2019
            • 6

            #7
            How can I monitor other keys of Tomcat? I think the Used Heap Memory is not a tomcat tipical parameter..
            Thank you in advance

            Edit:
            At the end the tomcat templates don't work.
            Last edited by rp3000; 12-02-2019, 12:40.

            Comment

            Working...