Ad Widget

Collapse

Monitoring Java Applications

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Peter Franca
    Junior Member
    • Aug 2018
    • 9

    #1

    Monitoring Java Applications

    Hello everyone,

    I am trying to understanding better how JMX monitoring works on zabbix.
    I am using Ubuntu 18.04
    I have installed Zabbix Java Gateway package using this command <apt-get install zabbix-java-gateway> and apparently it was suppose to come with two files (startup.sh and shutdown.sh) with it so I could make my own modification to get it working on Zabbix frontend.

    I have looked up my whole box and I can't find these files so I am stuck. Is there anything else to do? Do I need to create these files manually? Did this package change and now we don't need the files anymore?

    I am reading zabbix documentation and seems that we can compile the package. I was having a look on the files that come with the package complied and the startup.sh and shutdown.sh are not in there too.
    I am clueless!
    Has anyone here had the same issue?

    This is the zabbix documentation link where I am at. https://www.zabbix.com/documentation...jmx_monitoring

    Thanks all!
    Peter Franca
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    If you installed using a package, these two files(startup.sh and shutdown.sh) are unnecessary.
    The start and stop of zabbix_java_gateway is described in the following file.

    /etc/init.d/zabbix-java-gateway

    Manual:

    Comment

    • Peter Franca
      Junior Member
      • Aug 2018
      • 9

      #3
      Atsushi Hey,
      Thanks for your reply but I am suppose to put these info into the startup.sh

      -Dcom.sun.management.jmxremote
      -Dcom.sun.management.jmxremote.authenticate=false
      -Dcom.sun.management.jmxremote.ssl=false
      -Dcom.sun.management.jmxremote.port=12345

      So I have placed all these lines at the end of the /etc/init./zabbix-java-gateway and it didn't work. Do you know if I need to create a configuration file for it? any idea?
      Thanks,

      Comment


      • Atsushi
        Atsushi commented
        Editing a comment
        If you want to add Java related parameters, please enable JAVA_OPTIONS setting in the following file.

        /etc/zabbix/zabbix_java_gateway.conf
    Working...