JBoss Community Archive (Read Only)


Plugins - Snmptrapd




Forward incoming traps as events

RHQ Version


Plugin Version


View Source


Get Source


This plugin forwards incoming SNMP traps as events into the RHQ server. As usual, this allows to view the data in the events tab or in the timeline view.

The plugin is still in the early stages.

How to use the snmptrapd

Install the snmptrapd plugin and go to its server entry in the Resource Hub.
If the agent has successfully deployed it, you will see an entry for it.

Note from 2009/12/08 on, the plugin will only support manual add and no longer auto discovery.
So go to the desired platform and add it manually there.

Connection properties

Go to the inventory page. In the connection properties you will see:


You will see three connection properties:

  • port: this is the UDP port that trapd is listening on for requests. Note that on Unixoids, ports < 1024 require root access

  • community: the community string to check for in incoming v1 and v2c traps – currently unused

  • severityOid: this is an oid of a variable binding that defines an alert Priority. This is related to traps that are sent as result of alerts from within the RHQ alert subsystem. If a variable binding in the payload of the trap matches this oid, then the contents of the payload is parsed and the event severity is set. Matches are in lowercase:

    • high: ERROR

    • medium: WARN

    • all other: INFO

OID translation

The plugin currently has no mib parser, so the generated event payload is passed as 'oid: value' into the events.
It is possible though to define a manual mapping. There is a file MibTrans.properties within the plugin, that maps oids to names like this:

If the plugin finds a matching key, it will replace it in the event detail with the respective value.

Events generated

A generated Event could look like this for an alert that fired because of low memory:


JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-11 12:38:36 UTC, last content change 2009-12-08 08:27:16 UTC.