Quantcast

amqpAlarmNorthbounder multiple messages

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

amqpAlarmNorthbounder multiple messages

Simon Taylor
I have got OpenNMS 18 sending alarms to QPID Java Broker v 6.0.3 via the
AMQP AlarmNorthBounder.

Details as per below.

opennms> camel:route-info forwardAlarm
Camel Route forwardAlarm
     Camel Context: amqpAlarmNorthbounderCamelContext

Properties
     parent = 3b6aa817
     rest = false
     id = forwardAlarm

Statistics
     Inflight Exchanges: 0
     Exchanges Total: 2
     Exchanges Completed: 2
     Exchanges Failed: 0
     Min Processing Time: 31 ms
     Max Processing Time: 46 ms
     Mean Processing Time: 38 ms
     Total Processing Time: 77 ms
     Last Processing Time: 31 ms
     Delta Processing Time: -15 ms
     Load Avg: , ,
     Reset Statistics Date: 2016-07-01 11:10:38
     First Exchange Date: 2016-07-01 11:11:37
     Last Exchange Completed Date: 2016-07-01 11:11:37

Definition
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<route customId="true" id="forwardAlarm"
xmlns="http://camel.apache.org/schema/spring">
    <from uri="seda:forwardAlarm"/>
    <convertBodyTo type="org.opennms.netmgt.alarmd.api.NorthboundAlarm"
id="convertBodyTo1"/>
    <log message="blueprint-alarm-northbounder.xml: Forwarding alarm:
${body.getUei()}" id="log1"/>
    <bean ref="dynamicallyTrackedProcessor" id="bean1"/>
    <to pattern="InOnly"
uri="amqp:onms3/Simon;{'create':'always','node':{'type':'topic'} }"
id="to1"/>
</route>


I understand that in its default mode all alarms will get picked up by the
Alarm Northbounder.(
http://docs.opennms.org/opennms/releases/18.0.0/guide-development/guide-deve
lopment.html#_amqp_integration)

It seems presently that every Alarm generates two outbound messages into
QPID.

If I trigger a send-trap.pl for a single trap into the system - I can see it
gets converted to an alarm.
I get two messages on the target queue and if I check the karaf log I see
the following:-

2016-07-01 12:19:34,008 DEBUG
org.opennms.features.amqp.alarm-northbounder:18.0.0(216)
[AMQPNorthbounder-Thread]
org.opennms.features.amqp.alarmnorthbounder.internal.DefaultAlarmForwarder:
Forwarding alarm NorthboundAlarm[id=219,
uei='uei.opennms.org/traps/A10/axSecondaryHardDiskFailure', nodeId=1]
2016-07-01 12:19:34,008 DEBUG
org.opennms.features.amqp.alarm-northbounder:18.0.0(216)
[AMQPNorthbounder-Thread]
org.opennms.features.amqp.alarmnorthbounder.internal.DefaultAlarmForwarder:
Forwarding alarm NorthboundAlarm[id=219,
uei='uei.opennms.org/traps/A10/axSecondaryHardDiskFailure', nodeId=1]
2016-07-01 12:19:34,009 INFO  org.apache.camel.camel-core:2.14.1(192) [Camel
(amqpAlarmNorthbounderCamelContext) thread #0 - seda://forwardAlarm]
forwardAlarm: blueprint-alarm-northbounder.xml: Forwarding alarm:
uei.opennms.org/traps/A10/axSecondaryHardDiskFailure
2016-07-01 12:19:34,043 INFO  org.apache.camel.camel-core:2.14.1(192) [Camel
(amqpAlarmNorthbounderCamelContext) thread #0 - seda://forwardAlarm]
forwardAlarm: blueprint-alarm-northbounder.xml: Forwarding alarm:
uei.opennms.org/traps/A10/axSecondaryHardDiskFailure

Is this normal or a bug or have I misconfigured something?

Thanks

Simon


------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel
Loading...