[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opennms-discuss
Subject:    [opennms-discuss] Help with External Events please!!
From:       Miguel Suarez <mig.suarez49 () gmail ! com>
Date:       2013-06-27 17:44:43
Message-ID: CAFOwj0EzWJh0Cn7smKgM2-nscMwtZOurk5h3ggaouyELuPemJQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello, I have different events translated from MIBS that I updated in
eventconf.xml using:
<event-file>events/BGP4-MIB.events.xml</event-file>
and copied BGP4-MIB.events.xml in /opennms/etc/events.
 I have being using send-event.pl to test the events in this file and even
though they show in the webpage when configuring an event, they always
display the message: "An event with no matching configuration was received
from interface" when the event is sent. I tried to configure a notification
for it, and it showed in the list. (I guess it recognizes it somehow). I
was wondering what else could be wrong. I followed the instructions and I
get no compilation errors so I don't know what else could be wrong :(:( .
Also, default event is left at the end of eventconf.xml.

This is part of BGP4-MIB

<!-- Start of auto generated data from MIB: BGP4-MIB -->
<events xmlns="http://xmlns.opennms.org/xsd/eventconf">
<event>
<mask>
<maskelement>
<mename>id</mename>
<mevalue>.1.3.6.1.2.1.15</mevalue>
</maskelement>
<maskelement>
<mename>generic</mename>
<mevalue>6</mevalue>
</maskelement>
<maskelement>
<mename>specific</mename>
<mevalue>1</mevalue>
</maskelement>
</mask>
<uei>uei.opennms.org/mib2opennms/bgpEstablishedNotification</uei>
<event-label>BGP4-MIB defined trap event:
bgpEstablishedNotification</event-label>
<descr>
<![CDATA[
<p>The bgpEstablishedNotification event is generated
when the BGP FSM enters the established state.

This Notification replaces the bgpEstablished
Notification.</p><table>
<tr><td><b>

bgpPeerRemoteAddr</b></td><td>
%parm[#1]%;</td><td><p></p></td></tr>
<tr><td><b>

bgpPeerLastError</b></td><td>
%parm[#2]%;</td><td><p></p></td></tr>
<tr><td><b>

bgpPeerState</b></td><td>
%parm[#3]%;</td><td><p>
idle(1)
connect(2)
active(3)
opensent(4)
openconfirm(5)
established(6)
</p></td></tr></table>
]]>
</descr>
<logmsg notify="true" dest='logndisplay'><![CDATA[<p>

bgpEstablishedNotification trap received
bgpPeerRemoteAddr=%parm[#1]%
bgpPeerLastError=%parm[#2]%
bgpPeerState=%parm[#3]%</p>
]]> </logmsg>
<severity>Indeterminate</severity>
</event>
.......
</events>

I used:
 ../bin/send-event.pl uei.opennms.org/mib2opennms/bgpEstablishedNotification
to send the trap.

The database displays for the eventid with the same message "An event with
no matching configuration was received from interface" and no parameters. I
deleted my logs and restarted opennms to check the result after sending the
event once and the snippet
...
[127.0.0.1:50776]] TcpStreamHandler: Event record converted
2013-06-25 21:38:37,758 DEBUG [Event TCP Receiver[5817][127.0.0.1:50776]]
TcpStreamHandler: handling event:
org.opennms.netmgt.xml.event.Event@4a0ca0ed
[uuid=<null>,dbid=<null>,dist-poller=<null>,creation-time=<null>,master-station=<null>,mask=<null>,uei=
 uei.opennms.org/mib2opennms/bgpEstablishedNotification,source=perl_send_event,nodeid=<null>,time=Tuesday,
 25 June 2013 21:38:37 o'clock GMT,host=openNMS2a interface=xx.xx.xx.xx
,snmphost=<null>,service=<null>,snmp=<null>,parms=<null>,descr=<null>,logmsg=<null>,se \
verity=<null>,pathoutage=<null>,correlation=<null>,operinstruct=<null>,autoaction=[],o \
peraction=[],autoacknowledge=<null>,loggroup=[],tticket=<null>,forward=[],script=[],ifIndex=<null>,ifAlias=<null>,mouseovertext=<null>,alarm-data=<null>]


2013-06-25 21:38:37,758 DEBUG [EventHandlerPool-fiber2]
DefaultEventHandlerImpl: Event {
2013-06-25 21:38:37,758 DEBUG [EventHandlerPool-fiber2]
DefaultEventHandlerImpl: uuid = <not-set>
2013-06-25 21:38:37,758 DEBUG [EventHandlerPool-fiber2]
DefaultEventHandlerImpl: uei =
uei.opennms.org/mib2opennms/bgpEstablishedNotification
2013-06-25 21:38:37,758 DEBUG [EventHandlerPool-fiber2]
DefaultEventHandlerImpl: src = perl_send_event
2013-06-25 21:38:37,758 DEBUG [EventHandlerPool-fiber2]
DefaultEventHandlerImpl: iface = 10.52.19.24
2013-06-25 21:38:37,758 DEBUG [EventHandlerPool-fiber2]
DefaultEventHandlerImpl: time = Tuesday, 25 June 2013 21:38:37 o'clock GMT
2013-06-25 21:38:37,758 DEBUG [EventHandlerPool-fiber2]
DefaultEventHandlerImpl: }
2013-06-25 21:38:37,763 DEBUG [TCPRecord Chunker[127.0.0.1:50776]]
TcpRecordHandler: Thread Terminated
2013-06-25 21:38:37,879 DEBUG [EventHandlerPool-fiber2] JdbcEventWriter:
JdbcEventWriter: processing
uei.opennms.org/mib2opennms/bgpEstablishedNotification nodeid: 0 ipaddr:
xx.xx.xx.xx serviceid: null time: Tuesday, 25 June 2013 21:38:37 o'clock
GMT
2013-06-25 21:38:37,881 DEBUG [EventHandlerPool-fiber2] JdbcEventWriter:
DBID: 1439
2013-06-25 21:38:37,895 DEBUG [EventHandlerPool-fiber2] JdbcEventWriter:
SUCCESSFULLY added
uei.opennms.org/mib2opennms/bgpEstablishedNotificationrelated data
into the EVENTS table.
2013-06-25 21:38:37,900 DEBUG [EventHandlerPool-fiber2] JdbcEventWriter:
EventWriter finished for :
uei.opennms.org/mib2opennms/bgpEstablishedNotification
2013-06-25 21:38:37,900 DEBUG [EventHandlerPool-fiber2]
EventIpcManagerDefaultImpl: Event ID 1439 to be broadcasted:
uei.opennms.org/mib2opennms/bgpEstablishedNotification
2013-06-25 21:38:37,900 DEBUG [EventHandlerPool-fiber2]
EventIpcManagerDefaultImpl: Queued event ID 1439 to listener thread:
Actiond:BroadcastEventProcessor
2013-06-25 21:38:37,900 DEBUG [EventHandlerPool-fiber2]
EventIpcManagerDefaultImpl: Queued event ID 1439 to listener thread:
Notifd:BroadcastEventProcessor
2013-06-25 21:38:37,900 DEBUG [EventHandlerPool-fiber2]
EventIpcManagerDefaultImpl: Queued event ID 1439 to listener thread:
Scriptd:BroadcastEventProcessor
2013-06-25 21:38:37,900 DEBUG [EventHandlerPool-fiber2]
EventIpcManagerDefaultImpl: Queued event ID 1439 to listener thread: Alarmd
2013-06-25 21:38:37,900 DEBUG [EventHandlerPool-fiber2]
EventIpcManagerDefaultImpl: No listener interested in event ID 1439:
uei.opennms.org/mib2opennms/bgpEstablishedNotification
2013-06-25 21:38:38,263 DEBUG [Event TCP Receiver[5817][127.0.0.1:50776]]
TcpStreamHandler: stopping record handler
2013-06-25 21:38:38,263 DEBUG [Event TCP Receiver[5817][127.0.0.1:50776]]
TcpRecordHandler: Interrupting thread TCPRecord Chunker[127.0.0.1:50776]
2013-06-25 21:38:38,263 DEBUG [Event TCP Receiver[5817][127.0.0.1:50776]]
TcpRecordHandler: Joining Thread TCPRecord Chunker[127.0.0.1:50776]
2013-06-25 21:38:38,263 DEBUG [Event TCP Receiver[5817][127.0.0.1:50776]]
TcpRecordHandler: Thread TCPRecord Chunker[127.0.0.1:50776] Joined
2013-06-25 21:38:38,263 DEBUG [Event TCP Receiver[5817][127.0.0.1:50776]]
TcpStreamHandler: record handler stopped
2013-06-25 21:38:38,263 DEBUG [Event TCP Receiver[5817][127.0.0.1:50776]]
TcpStreamHandler: closing connnection
2013-06-25 21:38:38,264 DEBUG [Event TCP Receiver[5817][127.0.0.1:50776]]
TcpStreamHandler: connnection closed
2013-06-25 21:38:38,264 DEBUG [Event TCP Receiver[5817][127.0.0.1:50776]]
TcpStreamHandler: Thread exiting




I tried using he previous configured opennms events configured in
eventconf.xml with no luck either! All of them display the same message .


[Attachment #5 (text/html)]

<div dir="ltr"><div>Hello, I have different events translated from MIBS that I \
updated in eventconf.xml using: <br>
&lt;event-file&gt;events/BGP4-MIB.events.xml&lt;/event-file&gt;
<br>
and copied BGP4-MIB.events.xml in /opennms/etc/events.
<br>
 I have being using <a href="http://send-event.pl">send-event.pl</a> to test the \
events in this file and  even though they show in the webpage when configuring an \
event, they always display the message:  &quot;An event with no matching \
configuration was received from interface&quot; when the event is sent. I  tried to \
configure a notification for it, and it showed in the list. (I  guess it recognizes \
it somehow). I was wondering what else could be  wrong. I followed the instructions \
and I get no compilation errors so I  don&#39;t know what else could be wrong :(:( .  \
Also, default event is left at the  end of eventconf.xml. 
<br>

<br>
This is part of BGP4-MIB
<br>

<br>
&lt;!-- Start of auto generated data from MIB: BGP4-MIB --&gt;
<br>
&lt;events xmlns=&quot;<a title="Follow link" \
href="http://xmlns.opennms.org/xsd/eventconf">http://xmlns.opennms.org/xsd/eventconf</a>&quot;&gt;
 <br>
&lt;event&gt;
<br>
	&lt;mask&gt;
<br>
		&lt;maskelement&gt;
<br>
			&lt;mename&gt;id&lt;/mename&gt;
<br>
			&lt;mevalue&gt;.1.3.6.1.2.1.15&lt;/mevalue&gt;
<br>
		&lt;/maskelement&gt;
<br>
		&lt;maskelement&gt;
<br>
			&lt;mename&gt;generic&lt;/mename&gt;
<br>
			&lt;mevalue&gt;6&lt;/mevalue&gt;
<br>
		&lt;/maskelement&gt;
<br>
		&lt;maskelement&gt;
<br>
			&lt;mename&gt;specific&lt;/mename&gt;
<br>
			&lt;mevalue&gt;1&lt;/mevalue&gt;
<br>
		&lt;/maskelement&gt;
<br>
	&lt;/mask&gt;
<br>
	&lt;uei&gt;<a href="http://uei.opennms.org/mib2opennms/bgpEstablishedNotification">uei.opennms.org/mib2opennms/bgpEstablishedNotification</a>&lt;/uei&gt;
 <br>
	&lt;event-label&gt;BGP4-MIB defined trap event: \
bgpEstablishedNotification&lt;/event-label&gt; <br>
	&lt;descr&gt;
<br>
&lt;![CDATA[
<br>
&lt;p&gt;The bgpEstablishedNotification event is generated
<br>
when the BGP FSM enters the established state.
<br>

<br>
This Notification replaces the bgpEstablished
<br>
Notification.&lt;/p&gt;&lt;table&gt;
<br>
	&lt;tr&gt;&lt;td&gt;&lt;b&gt;
<br>

<br>
	bgpPeerRemoteAddr&lt;/b&gt;&lt;/td&gt;&lt;td&gt;
<br>
	%parm[#1]%;&lt;/td&gt;&lt;td&gt;&lt;p&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
<br>
	&lt;tr&gt;&lt;td&gt;&lt;b&gt;
<br>

<br>
	bgpPeerLastError&lt;/b&gt;&lt;/td&gt;&lt;td&gt;
<br>
	%parm[#2]%;&lt;/td&gt;&lt;td&gt;&lt;p&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
<br>
	&lt;tr&gt;&lt;td&gt;&lt;b&gt;
<br>

<br>
	bgpPeerState&lt;/b&gt;&lt;/td&gt;&lt;td&gt;
<br>
	%parm[#3]%;&lt;/td&gt;&lt;td&gt;&lt;p&gt;
<br>
		idle(1)
<br>
		connect(2)
<br>
		active(3)
<br>
		opensent(4)
<br>
		openconfirm(5)
<br>
		established(6)
<br>
	&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
<br>
]]&gt;
<br>
	&lt;/descr&gt;
<br>
		&lt;logmsg notify=&quot;true&quot; \
dest=&#39;logndisplay&#39;&gt;&lt;![CDATA[&lt;p&gt; <br>

<br>
			bgpEstablishedNotification trap received 
<br>
			bgpPeerRemoteAddr=%parm[#1]% 
<br>
			bgpPeerLastError=%parm[#2]% 
<br>
			bgpPeerState=%parm[#3]%&lt;/p&gt;
<br>
]]&gt;		&lt;/logmsg&gt;
<br>
	&lt;severity&gt;Indeterminate&lt;/severity&gt;
<br>
&lt;/event&gt;
<br>
.......
<br>
&lt;/events&gt;
<br>

<br>
I used:
<br>
 ../bin/<a href="http://send-event.pl">send-event.pl</a> <a \
href="http://uei.opennms.org/mib2opennms/bgpEstablishedNotification">uei.opennms.org/mib2opennms/bgpEstablishedNotification</a>
 <br>
to send the trap.
<br>

<br>
The database displays  for the eventid with the same message &quot;An event 
with no matching configuration was received from interface&quot; and no 
parameters. I deleted my logs and restarted opennms to check the result 
after sending the event once and the snippet 
<br>
...
<br>
[<a href="http://127.0.0.1:50776">127.0.0.1:50776</a>]] TcpStreamHandler: Event \
record converted <br>
2013-06-25 21:38:37,758 DEBUG [Event TCP Receiver[5817][<a \
href="http://127.0.0.1:50776">127.0.0.1:50776</a>]] TcpStreamHandler: handling event: \
<a title="Follow link" \
href="mailto:org.opennms.netmgt.xml.event.Event@4a0ca0ed">org.opennms.netmgt.xml.event \
.Event@4a0ca0ed</a>[uuid=&lt;null&gt;,dbid=&lt;null&gt;,dist-poller=&lt;null&gt;,creation-time=&lt;null&gt;,master-station=&lt;null&gt;,mask=&lt;null&gt;,uei=<a \
href="http://uei.opennms.org/mib2opennms/bgpEstablishedNotification,source=perl_send_e \
vent,nodeid=">uei.opennms.org/mib2opennms/bgpEstablishedNotification,source=perl_send_event,nodeid=</a>&lt;null&gt;,time=Tuesday,
  25 June 2013 21:38:37 o&#39;clock GMT,host=openNMS2a interface=xx.xx.xx.xx 
,snmphost=&lt;null&gt;,service=&lt;null&gt;,snmp=&lt;null&gt;,parms=&lt;null&gt;,descr \
=&lt;null&gt;,logmsg=&lt;null&gt;,severity=&lt;null&gt;,pathoutage=&lt;null&gt;,correl \
ation=&lt;null&gt;,operinstruct=&lt;null&gt;,autoaction=[],operaction=[],autoacknowled \
ge=&lt;null&gt;,loggroup=[],tticket=&lt;null&gt;,forward=[],script=[],ifIndex=&lt;null&gt;,ifAlias=&lt;null&gt;,mouseovertext=&lt;null&gt;,alarm-data=&lt;null&gt;]
 <br>
2013-06-25 21:38:37,758 DEBUG [EventHandlerPool-fiber2] DefaultEventHandlerImpl: \
Event { <br>
2013-06-25 21:38:37,758 DEBUG [EventHandlerPool-fiber2] DefaultEventHandlerImpl:   \
uuid  = &lt;not-set&gt; <br>
2013-06-25 21:38:37,758 DEBUG [EventHandlerPool-fiber2] 
DefaultEventHandlerImpl:   uei   = 
<a href="http://uei.opennms.org/mib2opennms/bgpEstablishedNotification">uei.opennms.org/mib2opennms/bgpEstablishedNotification</a>
 <br>
2013-06-25 21:38:37,758 DEBUG [EventHandlerPool-fiber2] DefaultEventHandlerImpl:   \
src   = perl_send_event <br>
2013-06-25 21:38:37,758 DEBUG [EventHandlerPool-fiber2] DefaultEventHandlerImpl:   \
iface = 10.52.19.24 <br>
2013-06-25 21:38:37,758 DEBUG [EventHandlerPool-fiber2] 
DefaultEventHandlerImpl:   time  = Tuesday, 25 June 2013 21:38:37 
o&#39;clock GMT
<br>
2013-06-25 21:38:37,758 DEBUG [EventHandlerPool-fiber2] DefaultEventHandlerImpl: }
<br>
2013-06-25 21:38:37,763 DEBUG [TCPRecord Chunker[<a \
href="http://127.0.0.1:50776">127.0.0.1:50776</a>]] TcpRecordHandler: Thread \
Terminated <br>
2013-06-25 21:38:37,879 DEBUG [EventHandlerPool-fiber2] JdbcEventWriter:
 JdbcEventWriter: processing 
<a href="http://uei.opennms.org/mib2opennms/bgpEstablishedNotification">uei.opennms.org/mib2opennms/bgpEstablishedNotification</a> \
nodeid: 0 ipaddr:  xx.xx.xx.xx serviceid: null time: Tuesday, 25 June 2013 21:38:37 
o&#39;clock GMT
<br>
2013-06-25 21:38:37,881 DEBUG [EventHandlerPool-fiber2] JdbcEventWriter: DBID: 1439
<br>
2013-06-25 21:38:37,895 DEBUG [EventHandlerPool-fiber2] JdbcEventWriter:
 SUCCESSFULLY added 
<a href="http://uei.opennms.org/mib2opennms/bgpEstablishedNotification">uei.opennms.org/mib2opennms/bgpEstablishedNotification</a> \
related  data  into the EVENTS table.
<br>
2013-06-25 21:38:37,900 DEBUG [EventHandlerPool-fiber2] JdbcEventWriter:
 EventWriter finished for : 
<a href="http://uei.opennms.org/mib2opennms/bgpEstablishedNotification">uei.opennms.org/mib2opennms/bgpEstablishedNotification</a>
 <br>
2013-06-25 21:38:37,900 DEBUG [EventHandlerPool-fiber2] 
EventIpcManagerDefaultImpl: Event ID 1439 to be broadcasted: 
<a href="http://uei.opennms.org/mib2opennms/bgpEstablishedNotification">uei.opennms.org/mib2opennms/bgpEstablishedNotification</a>
 <br>
2013-06-25 21:38:37,900 DEBUG [EventHandlerPool-fiber2] 
EventIpcManagerDefaultImpl: Queued event ID 1439 to listener thread: 
Actiond:BroadcastEventProcessor
<br>
2013-06-25 21:38:37,900 DEBUG [EventHandlerPool-fiber2] 
EventIpcManagerDefaultImpl: Queued event ID 1439 to listener thread: 
Notifd:BroadcastEventProcessor
<br>
2013-06-25 21:38:37,900 DEBUG [EventHandlerPool-fiber2] 
EventIpcManagerDefaultImpl: Queued event ID 1439 to listener thread: 
Scriptd:BroadcastEventProcessor
<br>
2013-06-25 21:38:37,900 DEBUG [EventHandlerPool-fiber2] 
EventIpcManagerDefaultImpl: Queued event ID 1439 to listener thread: 
Alarmd
<br>
2013-06-25 21:38:37,900 DEBUG [EventHandlerPool-fiber2] 
EventIpcManagerDefaultImpl: No listener interested in event ID 1439: 
<a href="http://uei.opennms.org/mib2opennms/bgpEstablishedNotification">uei.opennms.org/mib2opennms/bgpEstablishedNotification</a>
 <br>
2013-06-25 21:38:38,263 DEBUG [Event TCP Receiver[5817][<a \
href="http://127.0.0.1:50776">127.0.0.1:50776</a>]] TcpStreamHandler: stopping record \
handler <br>
2013-06-25 21:38:38,263 DEBUG [Event TCP 
Receiver[5817][<a href="http://127.0.0.1:50776">127.0.0.1:50776</a>]] \
TcpRecordHandler: Interrupting thread  TCPRecord Chunker[<a \
href="http://127.0.0.1:50776">127.0.0.1:50776</a>] <br>
2013-06-25 21:38:38,263 DEBUG [Event TCP 
Receiver[5817][<a href="http://127.0.0.1:50776">127.0.0.1:50776</a>]] \
TcpRecordHandler: Joining Thread  TCPRecord Chunker[<a \
href="http://127.0.0.1:50776">127.0.0.1:50776</a>] <br>
2013-06-25 21:38:38,263 DEBUG [Event TCP 
Receiver[5817][<a href="http://127.0.0.1:50776">127.0.0.1:50776</a>]] \
TcpRecordHandler: Thread TCPRecord  Chunker[<a \
href="http://127.0.0.1:50776">127.0.0.1:50776</a>] Joined <br>
2013-06-25 21:38:38,263 DEBUG [Event TCP Receiver[5817][<a \
href="http://127.0.0.1:50776">127.0.0.1:50776</a>]] TcpStreamHandler: record handler \
stopped <br>
2013-06-25 21:38:38,263 DEBUG [Event TCP Receiver[5817][<a \
href="http://127.0.0.1:50776">127.0.0.1:50776</a>]] TcpStreamHandler: closing \
connnection <br>
2013-06-25 21:38:38,264 DEBUG [Event TCP Receiver[5817][<a \
href="http://127.0.0.1:50776">127.0.0.1:50776</a>]] TcpStreamHandler: connnection \
closed  <br>
2013-06-25 21:38:38,264 DEBUG [Event TCP Receiver[5817][<a \
href="http://127.0.0.1:50776">127.0.0.1:50776</a>]] TcpStreamHandler: Thread \
exiting<br><br><br><br><br></div>I tried using he previous configured opennms events \
configured in eventconf.xml with no luck either! All of them display the same message \
.<br> </div>

--047d7b6d93404a0fa904e02651d7--


["output.PNG" (image/png)]

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic