Ad Widget

Collapse

Zabbix 2.0 Monitoring JBOSS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mrtz
    Junior Member
    • May 2012
    • 15

    #1

    Zabbix 2.0 Monitoring JBOSS

    Hey everyone.

    I´m having problems monitoring JBoss metrics/items.


    Keys with java.lang works well.

    i.e jmx["java.lang:type=Runtime",Uptime]


    Keys with Catalina doesn´t work.

    i.e jmx["Catalina:type=Server",serverInfo]


    All items from Template JMX Tomcat is not supported and all items from Template JMX Generic works fine.

    The JMX settings seems to be correct since all with java.lang is working.


    Any help is appreciated!

    Tnks
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    Try using double quotes, separated by a comma as below. This works for me.

    Code:
    jmx["Catalina:type=Server","serverInfo"]
    if you have the polling frequency set to 3600 at the item, it will take an hour to update. Set it lower so you can get a quick test on it.

    if you still have an error, hover your mouse over the red X (all the way to the right of the item at the host level) to see if it gives a detail of the issue.

    Comment

    • mrtz
      Junior Member
      • May 2012
      • 15

      #3
      Thanks for ur reply.

      I tried jmx["Catalina:type=Server","serverInfo"] like you said, tried 30s interval and still nothing.

      Here is the message in the red X

      Catalina:type=Server

      Any idea what it could be?

      Are you monitoring JBoss? What version?


      Thanks again!









      Originally posted by tchjts1
      Try using double quotes, separated by a comma as below. This works for me.

      Code:
      jmx["Catalina:type=Server","serverInfo"]
      if you have the polling frequency set to 3600 at the item, it will take an hour to update. Set it lower so you can get a quick test on it.

      if you still have an error, hover your mouse over the red X (all the way to the right of the item at the host level) to see if it gives a detail of the issue.
      Last edited by mrtz; 21-06-2012, 20:06.

      Comment

      • tchjts1
        Senior Member
        • May 2008
        • 1605

        #4
        Check how your item is set up. If I recall correctly, the stock Tomcat template was set to type Zabbix agent, and should be changed to JMX Agent

        Here is how mine is set.
        Attached Files

        Comment

        • mrtz
          Junior Member
          • May 2012
          • 15

          #5
          Yes, i´m using JMX Agent

          I made this changes in run.bat

          set JAVA_OPTS=%JAVA_OPTS% -Djboss.platform.mbeanserver
          set JAVA_OPTS=%JAVA_OPTS% -Djavax.management.builder.initial=org.jboss.system .server.jmx.MBeanServerBuilderImpl


          And now i got the Tomcat version to work using double quotes like you said. But the rest of items doesn´t work that way.

          Any tips??

          Tnks



          Originally posted by tchjts1
          Check how your item is set up. If I recall correctly, the stock Tomcat template was set to type Zabbix agent, and should be changed to JMX Agent

          Here is how mine is set.

          Comment

          Working...