Ad Widget

Collapse

Jboss template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jama
    Junior Member
    • Feb 2008
    • 3

    #1

    Jboss template

    Hej all
    Could any one recommend any jboss monitoring templates (item/trigger or graph)?
  • bashman
    Senior Member
    • Dec 2009
    • 432

    #2
    Originally posted by jama
    Hej all
    Could any one recommend any jboss monitoring templates (item/trigger or graph)?
    You can use these items to monitor jboss through "twiddle.sh":

    Code:
    Description                       Type          Key                                                                                       Type of information  Update interval  Store value  History  Trends  Applications
    JBoss/FreeMemory                  ZABBIX agent  twiddle[get,"jboss.system:type=ServerInfo",FreeMemory]                                    Numeric (integer)    60               As Is        7        365     JBOSS
    JBoss/TotalMemory                 ZABBIX agent  twiddle[get,"jboss.system:type=ServerInfo",TotalMemory]                                   Numeric (integer)    60               As Is        7        365     JBOSS
    JBoss/MaxMemory                   ZABBIX agent  twiddle[get,"jboss.system:type=ServerInfo",MaxMemory]                                     Numeric (integer)    60               As Is        7        365     JBOSS
    JBoss/ActiveThreadGroupCount      ZABBIX agent  twiddle[get,"jboss.system:type=ServerInfo",ActiveThreadGroupCount]                        Numeric (integer)    60               As Is        7        365     JBOSS
    JBoss/ActiveThreadCount           ZABBIX agent  twiddle[get,"jboss.system:type=ServerInfo",ActiveThreadCount]                             Numeric (integer)    60               As Is        7        365     JBOSS
    JBoss/QueueSize                   ZABBIX agent  twiddle[get,"jboss.jca:service=WorkManagerThreadPool",QueueSize]                          Numeric (integer)    60               As Is        7        365     JBOSS
    JBoss/MaximumQueueSize            ZABBIX agent  twiddle[get,"jboss.jca:service=WorkManagerThreadPool",MaximumQueueSize]                   Numeric (integer)    60               As Is        7        365     JBOSS
    JBoss/MinimumPoolSize             ZABBIX agent  twiddle[get,"jboss.jca:service=WorkManagerThreadPool",MinimumPoolSize]                    Numeric (integer)    60               As Is        7        365     JBOSS
    JBoss/MaximumPoolSize             ZABBIX agent  twiddle[get,"jboss.jca:service=WorkManagerThreadPool",MaximumPoolSize]                    Numeric (integer)    60               As Is        7        365     JBOSS
    JBoss/ConnectionCount             ZABBIX agent  twiddle[get,"jboss.jca:name=HPS,service=ManagedConnectionPool",ConnectionCount]           Numeric (integer)    60               As Is        7        365     JBOSS
    JBoss/AvailableConnectionCount    ZABBIX agent  twiddle[get,"jboss.jca:name=HPS,service=ManagedConnectionPool",AvailableConnectionCount]  Numeric (integer)    60               As Is        7        365     JBOSS
    JBoss/ManagedConnectionMinSize    ZABBIX agent  twiddle[get,"jboss.jca:name=HPS,service=ManagedConnectionPool",MinSize]                   Numeric (integer)    60               As Is        7        365     JBOSS
    JBoss/ManagedConnectionMaxSize    ZABBIX agent  twiddle[get,"jboss.jca:name=HPS,service=ManagedConnectionPool",MaxSize]                   Numeric (integer)    60               As Is        7        365     JBOSS
    JBoss/InUseConnectionCount        ZABBIX agent  twiddle[get,"jboss.jca:name=HPS,service=ManagedConnectionPool",InUseConnectionCount]      Numeric (integer)    60               As Is        7        365     JBOSS
    Remember to add to your zabbix_agentd.conf:

    Code:
    UserParameter=twiddle[*],/opt/jboss/bin/twiddle.sh -u <user> -p <pass> $1 $2 $3|cut -d"=" -f2
    and give the permissions to zabbix:

    Code:
    chmod -v g+rx /home/jboss
    usermod -g jboss zabbix
    echo "zabbix ALL = (jboss) NOPASSWD: /opt/jboss/bin/twiddle.sh>" >> /etc/sudoers

    http://www.zabbix.com/documentation/...ook/specific?s[]=jmx#jmx

    Last edited by bashman; 07-06-2010, 09:20. Reason: twiddle authentication added
    978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15

    Comment

    • skajla
      Junior Member
      • May 2010
      • 3

      #3
      Jboss Zabbix Template

      Please check below metioned link for Jboss Zabbix Template for Linux Server and Jboss Monitoring
      Monitoring of JBoss Application is required for delivering comprehensive fault management and proactive alarm notifications, checking for im...

      Comment

      • bashman
        Senior Member
        • Dec 2009
        • 432

        #4
        Originally posted by skajla
        Please check below metioned link for Jboss Zabbix Template for Linux Server and Jboss Monitoring
        http://skajla.blogspot.com/2010/07/j...ng-zabbix.html
        Thanks for sharing, great job!.
        978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15

        Comment

        • aapjunior
          Junior Member
          • Jan 2011
          • 2

          #5
          Thanks Man!

          Bashman,

          This is the best answer that I found in the internet. Complete and functional.


          Thanks a lot man, really!!!

          Comment

          • ufocek
            Senior Member
            • Aug 2006
            • 161

            #6
            Hi,

            Maybe someone have template or any howto, how I can monitoring glassfish v3 with my zabbix?

            Comment

            • andrewd
              Junior Member
              • Jun 2010
              • 26

              #7
              if you're getting errors with twiddle.log...

              The procedure by bashman work great except I kept getting errors when twiddle.log was being created. I believe it is created in a directory that it doesn't zabbix doesn't have write permissions. To fix this use the '-D' option to point twiddle to a log4j.xml file. I used the one already in use by jboss.

              Comment

              • bashman
                Senior Member
                • Dec 2009
                • 432

                #8
                Originally posted by andrewd
                The procedure by bashman work great except I kept getting errors when twiddle.log was being created. I believe it is created in a directory that it doesn't zabbix doesn't have write permissions. To fix this use the '-D' option to point twiddle to a log4j.xml file. I used the one already in use by jboss.
                Thanks for your feedback!
                978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15

                Comment

                • BDiE8VNy
                  Senior Member
                  • Apr 2010
                  • 680

                  #9
                  Originally posted by andrewd
                  [...] getting errors when twiddle.log was being created. [...] To fix this use the '-D' option to point twiddle to a log4j.xml file. I used the one already in use by jboss.
                  A more convenient way might be to redirect stderr to /dev/null:
                  Code:
                  ### Parameter for monitoring JBoss resources via twiddle.sh
                  UserParameter=twiddle[*],$1/twiddle.sh -q -u $2 -p $3 get $4 $5 2> /dev/null | cut -d= -f2

                  Comment

                  • rewilliamscpro
                    Junior Member
                    • Dec 2015
                    • 8

                    #10
                    Do we add the following lines in the twiddle.sh script?
                    Description Type Key Type of information Update interval Store value History Trends Applications
                    JBoss/FreeMemory ZABBIX agent twiddle[get,"jboss.system:type=ServerInfo",FreeMemory] Numeric (integer) 60 As Is 7 365 JBOSS
                    JBoss/TotalMemory ZABBIX agent twiddle[get,"jboss.system:type=ServerInfo",TotalMemory] Numeric (integer) 60 As Is 7 365 JBOSS
                    JBoss/MaxMemory ZABBIX agent twiddle[get,"jboss.system:type=ServerInfo",MaxMemory] Numeric (integer) 60 As Is 7 365 JBOSS
                    JBoss/ActiveThreadGroupCount ZABBIX agent twiddle[get,"jboss.system:type=ServerInfo",ActiveThreadGro upCount] Numeric (integer) 60 As Is 7 365 JBOSS
                    JBoss/ActiveThreadCount ZABBIX agent twiddle[get,"jboss.system:type=ServerInfo",ActiveThreadCou nt] Numeric (integer) 60 As Is 7 365 JBOSS
                    JBoss/QueueSize ZABBIX agent twiddle[get,"jboss.jca:service=WorkManagerThreadPool",Queu eSize] Numeric (integer) 60 As Is 7 365 JBOSS
                    JBoss/MaximumQueueSize ZABBIX agent twiddle[get,"jboss.jca:service=WorkManagerThreadPool",Maxi mumQueueSize] Numeric (integer) 60 As Is 7 365 JBOSS
                    JBoss/MinimumPoolSize ZABBIX agent twiddle[get,"jboss.jca:service=WorkManagerThreadPool",Mini mumPoolSize] Numeric (integer) 60 As Is 7 365 JBOSS
                    JBoss/MaximumPoolSize ZABBIX agent twiddle[get,"jboss.jca:service=WorkManagerThreadPool",Maxi mumPoolSize] Numeric (integer) 60 As Is 7 365 JBOSS
                    JBoss/ConnectionCount ZABBIX agent twiddle[get,"jboss.jca:name=HPS,service=ManagedConnectionP ool",ConnectionCount] Numeric (integer) 60 As Is 7 365 JBOSS
                    JBoss/AvailableConnectionCount ZABBIX agent twiddle[get,"jboss.jca:name=HPS,service=ManagedConnectionP ool",AvailableConnectionCount] Numeric (integer) 60 As Is 7 365 JBOSS
                    JBoss/ManagedConnectionMinSize ZABBIX agent twiddle[get,"jboss.jca:name=HPS,service=ManagedConnectionP ool",MinSize] Numeric (integer) 60 As Is 7 365 JBOSS
                    JBoss/ManagedConnectionMaxSize ZABBIX agent twiddle[get,"jboss.jca:name=HPS,service=ManagedConnectionP ool",MaxSize] Numeric (integer) 60 As Is 7 365 JBOSS
                    JBoss/InUseConnectionCount ZABBIX agent twiddle[get,"jboss.jca:name=HPS,service=ManagedConnectionP ool",InUseConnectionCount] Numeric (integer) 60 As Is 7 365 JBOSS

                    Comment

                    Working...