Ad Widget

Collapse

Not supported by Zabbix Agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • harry
    Junior Member
    • Oct 2012
    • 4

    #1

    Not supported by Zabbix Agent

    I need help in Tomcat monitoring. I have referred the Zabbix Manual for JMX thing. But still i'm facing issue with Tomcat monitoring with zabbix 2.0.

    Here are zabbix details -
    zabbix 2.0.3
    zabbix agent 2.0.3

    zabbix server port - 10051
    zabbix agent port - 10050

    JMX port - 8889

    Configuration Details are:-

    1) In my tomcat environment, I have enabled the jmx setting for the jvm as below:

    JAVA_OPTS="${JAVA_OPTS} -Djavax.sql.DataSource.Factory=org.apache.commons.d bcp.BasicDataSourceFactory -Xms512m -Xmx512m -Dcom.sun.management.jmxremote.port=8889 -Dcom.sun.management.jmxremote.password.file=$CATAL INA_BASE/conf/jmxremote.password -Dcom.sun.management.jmxremote.access.file=$CATALIN A_BASE/conf/jmxremote.access -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=192.168.1.22"

    2) from zabbix frontend, created items for JMX monitoring and also created trigerrs and graphs-
    Tomcat Heap Memory jmx["java.lang:type=Memory","HeapMemoryUsage.used"]
    Tomcat http-8080 threads allocated jmx[Catalina:type=ThreadPool,name=http-8080][currentThreadCount]
    Tomcat http-8080 threads busy jmx[Catalina:type=ThreadPool,name=http-8080][currentThreadsBusy]
    Tomcat http-8080 threads max jmx[Catalina:type=ThreadPool,name=http-8080][maxThreads]
    Tomcat http-8443 threads allocated jmx[Catalina:type=ThreadPool,name=http-8443][currentThreadCount]
    Tomcat http-8443 threads busy jmx[Catalina:type=ThreadPool,name=http-8443][currentThreadsBusy]
    Tomcat http-8443 threads max jmx[Catalina:type=ThreadPool,name=http-8443][maxThreads]
    Tomcat jk-8009 threads allocated jmx[Catalina:type=ThreadPool,name=jk-8009][currentThreadCount]
    Tomcat jk-8009 threads busy jmx[Catalina:type=ThreadPool,name=jk-8009][currentThreadsBusy]
    Tomcat jk-8009 threads max jmx[Catalina:type=ThreadPool,name=jk-8009][maxThreads] 30

    3) All the items and triggers are enabled and showing green.
    4) from zabbix server logs, i see some of the below messages:-

    item [tomcat:jmx[Catalina:type=ThreadPool,name=http-8080][currentThreadCount]] became not supported: Not supported by Zabbix Agent
    item [tomcat:jmx[Catalina:type=ThreadPool,name=http-8080][currentThreadsBusy]] became not supported: Not supported by Zabbix Agent
    item [tomcat:jmx[Catalina:type=ThreadPool,name=http-8080][maxThreads]] became not supported: Not supported by Zabbix Agent
    5) Also i tried with zabbix_get on command prompt and get below result -
    zabbix_get -s 192.168.1.22 -k jmx["java.lang:type=Memory","HeapMemoryUsage.used"]
    ZBX_NOTSUPPORTED

    Please let me know what steps i should take to resolve this issue. Your esteem help is required.

    Thanks.
  • Brismtedt
    Junior Member
    • Jul 2009
    • 22

    #2
    Hi,

    I didnt try to get this to work with zabbix new jmx features, but with zabcat. Probably jmx naming is the same.

    For heap, I have formula
    jmx[java.lang:type=Memory][HeapMemoryUsage.used]

    i.e., without quotes

    Hope it helps,
    L

    Comment

    • kasik
      Member
      • Aug 2017
      • 30

      #3
      JDK - jconsole

      try to use jconsole -> install JDK and start Oracle Java mission Control then connect to your tomcat server and you can see all stuff what you need for your zabbix.

      Comment

      Working...