Ad Widget

Collapse

Linux Process Monitoring Issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kerem.yarali
    Junior Member
    • Sep 2019
    • 23

    #1

    Linux Process Monitoring Issue

    Hello

    I want to check the status of apache-tomcat process.I created a key which is proc.num.

    Then I tried many options like apache-tomcat,tomcat into proc.num key. However, the status of this key always returns 0 but the process is up and running. What can be the problem? Could you help me to solve the issue?

    Best Regars
    Kerem

  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #2
    You need to specify the exact name of the binary in proc.num . Please show the output of command
    Code:
    ps aux | grep tomcat

    Comment

    • kerem.yarali
      Junior Member
      • Sep 2019
      • 23

      #3
      Hello

      Thanks for update.

      The command output:

      /usr/java/jre1.8.0_192-amd64/bin/java -Djava.util.logging.config.file=/opt/asd/apache-tomcat-9.0.12/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLo aderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.we bresources -Dorg.apache.catalina.security.SecurityListener.UMA SK=0027 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=12345 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.net.preferIPv4Stack=true -Dignore.endorsed.dirs= -classpath /opt/asd/apache-tomcat-9.0.12/bin/bootstrap.jar:/opt/asd/apache-tomcat-9.0.12/bin/tomcat-juli.jar -Dcatalina.base=/opt/asd/apache-tomcat-9.0.12 -Dcatalina.home=/opt/asd/apache-tomcat-9.0.12 -Djava.io.tmpdir=/opt/asd/apache-tomcat-9.0.12/temp org.apache.catalina.startup.Bootstrap start

      Thanks
      Kerem
      Last edited by kerem.yarali; 19-09-2019, 18:54.

      Comment

      • dimir
        Zabbix developer
        • Apr 2011
        • 1080

        #4
        You need to use the combination of "java" as the process and "tomcat" as the part of command line. Try the following key:
        Code:
        proc.num[java,,,tomcat]
        You can test it on the agent host using command
        Code:
        zabbix_agentd -t proc.num[java,,,tomcat]
        Also please consider more extensive Tomcat monitoring using JMX protocol: https://www.zabbix.com/integrations/tomcat

        Comment

        • kerem.yarali
          Junior Member
          • Sep 2019
          • 23

          #5
          Ok. The issue has resolved. Thank you very much for your helps.

          Comment

          Working...