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"
Thanks for the nice and explanatory article!
Posted by Ankara Bilgisayar Bilgisayar Satis on February 15, 2009 at 12:38 PM PST #
thanks..
Posted by kelebek on April 26, 2009 at 02:58 AM PDT #
thanks admin
Posted by konya chat on August 20, 2009 at 08:29 AM PDT #
thanks admin
Posted by konya chat on October 18, 2009 at 08:35 AM PDT #
thanks admin
Posted by konya chat on November 06, 2009 at 09:03 AM PST #
thanks admin
Posted by konya chat on November 06, 2009 at 09:04 AM PST #