Ad Widget

Collapse

JMX monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jayshankar
    Member
    • Apr 2017
    • 31

    #1

    JMX monitoring

    Hi,


    I am configuring the Java gateway

    ./configure --enable-java --prefix=/usr/local. Then run make command

    It doesn't create class file for all the java files. Why is the class files not getting created??. What are the steps required to configure java gateway.

    Thanks,
    Jayshankar
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Please check the log messages.
    Has an error message been output?

    I think that you can judge what correspondence is necessary by that message.
    For example, you can not build Java development environment if it is not installed.

    Comment

    • Jayshankar
      Member
      • Apr 2017
      • 31

      #3
      java JMX monitoring

      C[root@localhost sbin]# which java
      /home/jayshankar/jdk1.8.0_131/bin/java
      [root@localhost sbin]# which jar
      /home/jayshankar/jdk1.8.0_131/bin/jar
      which javac
      /home/jayshankar/jdk1.8.0_131/bin/javac

      Java jdk home is setup properly.Any other package needs to be installled

      Comment

      • Atsushi
        Senior Member
        • Aug 2013
        • 2028

        #4
        I can not tell by just that information.
        Please check the log at make execution.

        If JDK is installed, it is the following procedure to build.

        Code:
        $ ./configure --enable-java --prefix=/usr/local
        $ make
        This builds the following file: (case Zabbix 3.0.9)
        src/zabbix_java/bin/zabbix-java-gateway-3.0.9.jar

        Comment

        • Jayshankar
          Member
          • Apr 2017
          • 31

          #5
          java JMX monitoring

          JAVA Gateway is running successfully.

          java -server -classpath lib:lib/android-json-4.3_r3.1.jar:lib/logback-classic-0.9.27.jar:lib/logback-core-0.9.27.jar:lib/slf4j-api-1.6.1.jar:bin/zabbix-java-gateway-3.2.5.jar -Dzabbix.pidFile=/tmp/zabbix_java.pid com.zabbix.gateway.JavaGateway.

          What is the next step to start monitoring??.

          Comment

          • ovas
            Senior Member
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Apr 2017
            • 138

            #6
            Configuring server for use with Java gateway, enabling remote JMX monitoring for Java application, configuring JMX interfaces and items in Zabbix GUI, these steps are described in the documentation:

            Comment

            • Jayshankar
              Member
              • Apr 2017
              • 31

              #7
              java JMX monitoring

              I didn't get the second and third part enabling remote interface for JAVA monitoring. Where can i download Notepad.jar file for jdk8.

              Comment

              • Atsushi
                Senior Member
                • Aug 2013
                • 2028

                #8
                Notepad.jar is not necessary.
                You just start the application you use.
                As a option to start Java applications you want to monitor, add a setting to allow access by JMX.

                Comment

                • Jayshankar
                  Member
                  • Apr 2017
                  • 31

                  #9
                  JMX monitoring

                  I am unable to understand the jmx setup. You can show me a sample configuration. I tried the below script at my end.

                  java \
                  > -Dcom.sun.management.jmxremote \
                  > -Dcom.sun.management.jmxremote.port=12345 \
                  > -Dcom.sun.management.jmxremote.authenticate=false \
                  > -Dcom.sun.management.jmxremote.ssl=false \
                  > -jar ./src/zabbix_java/bin/zabbix-java-gateway-3.2.5.jar
                  no main manifest attribute, in ./src/zabbix_java/bin/zabbix-java-gateway-3.2.5.jar

                  Comment

                  • Atsushi
                    Senior Member
                    • Aug 2013
                    • 2028

                    #10
                    Do you want to monitor JavaGateway?
                    Is not it a Java application like Tomcat that you want to monitor?

                    ex. Tomcat 9

                    Comment

                    • Jayshankar
                      Member
                      • Apr 2017
                      • 31

                      #11
                      JMX monitoring

                      Hi,

                      I am still unable to do JMX monitoring. Java 8 is installed on my system. I need help on tomcat setup.

                      Thanks,
                      Jayshankar

                      Comment

                      • allexpetrov
                        Senior Member
                        Zabbix Certified Trainer
                        Zabbix Certified SpecialistZabbix Certified Professional
                        • May 2017
                        • 361

                        #12
                        Originally posted by Jayshankar
                        Hi,

                        I am still unable to do JMX monitoring. Java 8 is installed on my system. I need help on tomcat setup.

                        Thanks,
                        Jayshankar
                        Hi, Jayshankar!

                        To make it clear:
                        Which OSes you are using, where you've installed your Java Gateway(on the Tomcat server or on the Zabbix server) and how did you've installed your Tomcat (apt/yum or self-made from sources) ?

                        Regards,
                        Alex

                        Comment

                        • Jayshankar
                          Member
                          • Apr 2017
                          • 31

                          #13
                          JMX monitoring

                          Hi,

                          My os is Fedora 25.
                          Java gateway is installed on the zabbix server machine. Logs of java gateway are as below:

                          2017-08-16 01:11:41.689 [main] INFO com.zabbix.gateway.JavaGateway - Zabbix Java Gateway 3.2.5 (revision 67445) has started
                          2017-08-16 01:11:41.769 [main] INFO com.zabbix.gateway.JavaGateway - listening on 0.0.0.0/0.0.0.0:10052.

                          Tomcat is not installed yet.

                          Thanks,
                          Jayshankar

                          Comment

                          • allexpetrov
                            Senior Member
                            Zabbix Certified Trainer
                            Zabbix Certified SpecialistZabbix Certified Professional
                            • May 2017
                            • 361

                            #14
                            Originally posted by Jayshankar
                            Hi,

                            Tomcat is not installed yet.
                            So am I right that you want to monitor the Tomcat which isn't installed so far ? Then, I'm afraid we couldn't help you until you've installed the Tomcat.

                            Please install it on the system which you want to monitor, perform some config fix, suggested in his thread, and try to setup the host in Zabbix Frontend.

                            Regards,
                            Alex

                            Comment

                            • Jayshankar
                              Member
                              • Apr 2017
                              • 31

                              #15
                              JMX monitoring

                              Hi,

                              I have installed tomcat on linux machine. The port 8080 is currently working. What is the next step i have to do to get java gateway working.

                              Thanks,
                              Jayshankar

                              Comment

                              Working...