Skip to end of metadata
Go to start of metadata

Sending SNMP Trap from JBoss Application Server

When started the SNMP Adaptor sends a JMX Notification that is converted into an SNMP Trap, here is the excerpt of the SNMP Adaptor Notifications configuration File that is doing the conversion

When a JMX Notification is sent through JBoss Application Server, the SNMP Adaptor converts it with the SNMP Adaptor Notifications configuration File then the SNMP Trap (or INFORM if the inform attribute is set to "true") will be sent to each Manager defined in SNMP Adaptor Managers Configuration File

To test the reception of SNMP Trap, the snmptrap daemon needs to be started with the following command :

The following option -Dusm can be added to the above command for debugging user negotiation

Then when JBoss Application Server has been started, the following output can be seen on the console where snmptrapd was started

Sending SNMP Trap from your application

Exposing your Application metrics through SNMP details and provide the source code on how an application can use the same mechanism to send JMX Notifications that get converted to a SNMP Notification then sent out through the Managers defined in SNMP Adaptor Managers Configuration File

When started the application attached in Exposing your Application metrics through SNMP sends a JMX Notification that is converted into an SNMP Trap, here is the excerpt of the SNMP Adaptor Notifications configuration File that is doing the conversion from the JMX Notification sent by the application on startup to the SNMP Notification that is sent out

To test the reception of SNMP Trap, the snmptrap daemon needs to be started with the following command :

The following option -Dusm can be added to the above command for debugging user negotiation

Then when the application has been started, the following output can be seen on the console where snmptrapd was started

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.