Event Forwarder

The event forwarder listens for all events on the internal event bus of Meridian. Events from the bus are sent to a Camel processor, which can filter or transform these, before being sent to the AMQP endpoint.

The event forwarder exposes the following properties via the org.opennms.features.amqp.eventforwarder pid:

Property Default Description

connectionUrl

amqp://localhost:5672

Used by the JmsConnectionFactory. See AMQP for details.

username

guest

Username

password

guest

Password

destination

amqp:topic:opennms-events

Target queue or topic. See AMQP for details.

processorName

default-event-forwarder-processor

Named org.apache.camel.Processor implementation used to filter and/or format the events.

The default processor, the default-event-forwarder-processor, marshalls events to XML and does not perform any filtering. This means that when enabled, all events will be forwarded to the AMQP destination with XML strings as the message body.

Setup

Start by logging into a Karaf shell.

Update the properties with your deployment specific values:

config:edit org.opennms.features.amqp.eventforwarder
config:property-set connectionUrl amqp://localhost:5672
config:property-set destination amqp:topic:opennms-events
config:property-set processorName default-event-forwarder-processor
config:update

Install the feature:

feature:install opennms-amqp-event-forwarder

Debugging

You can get detailed information on the Camel route using:

camel:route-info forwardEvent