Tuesday Feb 10, 2009

GlassFish SNMP Monitoring

glassfish_snmp_monitoring In this blog we will talk about SNMP Monitoring feature of GlassFish Enterprise Manager. GlassFish Enterprise Manager is part of Sun GlassFish Portfolio. SNMP Monitoring feature of GlassFish Enterprise Manager enables monitoring of GlassFish using SNMP clients. This feature exposes data specified by standard-based J2EE-MIB. J2EE-MIB is specified by JSR 77: J2EETM Management.
SNMP Monitoring feature of GlassFish Enterprise Manager is delivered as a patch, 140750–01 on SunSolve. To use this feature, download the patch from SunSolve and unzip it to get the __assnmp.war file. You can then deploy this web module to the server instance you would like to monitor. To deploy, you can use asadmin tool or GlassFish Admin Console.
For more information about the asadmin deploy command, see the Sun GlassFish Enterprise Server 2.1 Reference Manual . For more information about the using Admin Console, refer to the Sun GlassFish Enterprise Server 2.1 Application Deployment Guide or Admin Console in-line help.

You can choose to monitor Domain Administration Server (DAS) or individual (clustered or stand-alone) server instances, directly. When you monitor DAS, you get the complete view of the domain i.e you get monitoring data for all the server instances in the domain including DAS, server. Whether you choose to monitor DAS or individual server instance, the steps are exactly the same.
  1. Deploy __assnmp.war on the instance you want to monitor
  2. Use any SNMP client to monitor that instance on port 10161.   For example, using SNMP client, snmpwalk, you can query server data as follows:
           snmpwalk -c public -v 1 -m  ./J2EE-MIB localhost:10161 J2EE-MIB::j2eeSrvTable

           For the complete list of available tables, refer to "Tables Supported for SNMP Monitoring" section of Sun GlassFish Enterprise Server version 2.1 SNMP Reference.
           In the above example, we are assuming J2EE-MIB available in the current folder. You can download J2EE-MIB from here.

snmpwalk comes with Solaris and Linux operating systems by default. On the Solaris operating system, the snmpwalk command is available in the /usr/sfw/bin directory.            
10161 is the default port and can be overridden if needed. To override default port,  refer to "Configuring GlassFish SNMP Monitoring" section  of the  Sun GlassFish Enterprise Server version 2.1 SNMP Reference.

For the complete example, demonstrating monitoring  of DAS as well as individual instances (clustered or stand-alone), please refer to "Monitoring Clustered and Stand-Alone Server Instances" section of Sun GlassFish Enterprise Server version 2.1 SNMP Reference.

Some of the other blogs on SNMP monitoring feature of GlassFish Enterprise Manager are-
About

rajeshwar

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today