Ad Widget

Collapse

Zabbix 2.0: Tomcat monitoring

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

    #1

    Zabbix 2.0: Tomcat monitoring

    Hi,
    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.
Working...