[prev in list] [next in list] [prev in thread] [next in thread]
List: opennms-buglist
Subject: [Buglist] [JIRA] (NMS-5109) Can't get notification filtering on varbind working / lack of good docum
From: jira () opennms ! org (Cyrille Bollu (JIRA))
Date: 2011-12-23 10:52:30
Message-ID: 179656624.731.1324637550686.JavaMail.jira () mail1 ! opennms ! com
[Download RAW message or body]
[ http://issues.opennms.org/browse/NMS-5109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]
Cyrille Bollu closed NMS-5109.
------------------------------
Fix Version/s: 1.8.15
Resolution: Cannot Reproduce
Sorry it's my mistake.
Cyrille
> Can't get notification filtering on varbind working / lack of good documentation on \
> this feature
> ------------------------------------------------------------------------------------------------
>
> Key: NMS-5109
> URL: http://issues.opennms.org/browse/NMS-5109
> Project: OpenNMS
> Issue Type: Bug
> Components: Notifications/Actions
> Affects Versions: 1.8.15
> Reporter: Cyrille Bollu
> Assignee: Matt Brozowski
> Priority: Minor
> Fix For: 1.8.15
>
>
> I'm trying to filter a notification based on SNMP parameters.
> On the wiki, I have found:
> "If the notification has a <varbind> configured with a name and value, it is used \
> for a case sensitive match against the beginning an event parameter of the same \
> name." (cfr http://www.opennms.org/wiki/Configuring_notifications)
> So, I set
> <notification name="layer2SnmpInterfaceDown" status="on" writeable="yes">
> <uei xmlns="">uei.opennms.org/nodes/snmp/interfaceOperDown</uei>
> <rule xmlns="">IPADDR like '10.6.%'</rule>
> <destinationPath xmlns="">Email-support</destinationPath>
> <text-message xmlns="">Operational status Down on interface \
> ifname:%parm[snmpifname]% on node %nodelabel%.</text-message> <subject \
> xmlns="">Notice #%noticeid%: ifname:%parm[snmpifname]% on node %nodelabel% \
> down.</subject> <varbind>
> <vbname>snmpifname</vbname>
> <vbvalue>ge-0/1/</vbvalue>
> </varbind>
> But it doesn't work. For example, I received the following notification:
> -------- Message original --------
> Sujet: Notice #3198: interface ge-0/0/3 on node XXXXXXXXXXXX is down.
> Date : Tue, 20 Dec 2011 12:38:16 +0100 (CET)
> De : opennms at XXXXXXXXX
> Pour : opennms-ntest at XXXXXXXXXX
> Operational status Down on interface ge-0/0/3 on node XXXXXXXXXXX.
> After googling a little, I tried this:
> <vbname>snmpifname</vbname>
> <vbvalue>~ge-0\/1</vbvalue>
> With no success neither
> As the event had the following:
> Agent Interface Down (linkDown Trap) on interface index:508; ifDescr: ge-0/0/3; \
> ifName:ge-0/0/3; ifAlias:test-guest Description
> A linkDown trap signifies that the sending protocol entity recognizes a failure in \
> one of the communication link represented in the agent's \
> configuration.
> Instance: 508
> IfDescr: ge-0/0/3
> IfName: ge-0/0/3
> IfAlias: test-guest
> I tried changing <vbname>snmpifname</vbname> to \
> <vbname>IfName</vbname> with no success neither Any idea what is going on here?
> Cyrille
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: \
http://issues.opennms.org/secure/ContactAdministrators!default.jspa For more \
information on JIRA, see: http://www.atlassian.com/software/jira
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic