Glassfish SNMP Master Agent Integration

Glassfish SNMP Master Agent Integration


You can proxy the SNMP requests from the master agent for your operating system to the Glassfish SNMP agent of your deployment.

This allows to:

  • define a specific SNMP entry point port (161), independent from the Glassfish SNMP adapter port (usually 10161, but which can be configured)
  • allow to provide limited security support through community string.



The SNMP Master Agent can run on a different  host than the one where Glassfish is deployed. The configuration of the SNMP Master Agent is operating system specific.  The configuration of the SNMP master agent on Solaris 10 is provided as example.
Solaris 10 platform SNMP master agent configuration

For more complete information about SNMP master agent configuration, refer to  the man page for snmpd.conf.

To configure SNMP on the Solaris S10 platform, follow these steps:

  • 1. Using a text editor, add the following lines to the end of the /etc/sma/snmp/snmpd.conf file.


   rocommunity public
   proxy -c public -v 1 <gf-server-hostname>:10161 1.3.6.1.4.1.42.2.9999.1.1.1

   gf-server-hostname is the fully qualified hostname on which glassfish server SNMP adapter port is running. 10161 is teh glassfishsnmp port number ( which can be customized). 

  • 2. Restart the snmpd daemon using the following command:


   /etc/init.d/init.sma restart

  • 3. Verify the snmpd status using the following command:


   /etc/init.d/init.sma status

Performing SNMP requests through SNMP Master Agent


snmp requests are directly done on the snmp master agent. Note that there is no snmp port supplied in this request, as teh request will go through the standard snmp port adapter 161. All Snmp requests sent to this port will be proxied  to Glassfish SNMP  adaptor port acccoring to the mapping done in snmpd.conf

snmpwalk -c mfwk -v 1 <hostname> -m J2EE-MIB J2EE-MIB::j2eeSrvMoName
J2EE-MIB::j2eeSrvMoName.1.1 = STRING: "cluster=cl1,name=cl1_ins1"
J2EE-MIB::j2eeSrvMoName.1.2 = STRING: "name=server"
J2EE-MIB::j2eeSrvMoName.1.3 = STRING: "name=sa_ins3"
J2EE-MIB::j2eeSrvMoName.1.4 = STRING: "cluster=cl1,name=cl1_ins2"
Comments:

Thanks for the nice and explanatory article!

Posted by Ankara Bilgisayar Bilgisayar Satis on February 15, 2009 at 04:38 AM PST #

thanks..

Posted by kelebek on April 25, 2009 at 07:58 PM PDT #

thanks admin

Posted by konya chat on August 20, 2009 at 01:29 AM PDT #

thanks admin

Posted by konya chat on October 18, 2009 at 01:35 AM PDT #

thanks admin

Posted by konya chat on November 06, 2009 at 01:03 AM PST #

thanks admin

Posted by konya chat on November 06, 2009 at 01:04 AM PST #

chat

Posted by chat on February 14, 2010 at 02:21 PM PST #

mırc

Posted by mırc on February 14, 2010 at 02:21 PM PST #

chat sitesi

Posted by chat sitesi on March 04, 2010 at 07:48 AM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Olivier Rivat

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