ability to set trap severity by snmp varbind

Description

Please add the ability to set trap severity based on varbind.
what i am requesting could also be done with varbind matching but figured I
would throw this other method out thier on the table also.

The Following mask represents a netscreen vpn tunnel status change.
both up and down events are sent within this same trap.
the trap type represents weither the tunnel is up or down.

<event>
<mask>
<maskelement>
<mename>id</mename>
<mevalue>.1.3.6.1.4.1.3224</mevalue>
</maskelement>
<maskelement>
<mename>generic</mename>
<mevalue>6</mevalue>
</maskelement>
<maskelement>
<mename>specific</mename>
<mevalue>500</mevalue>
</maskelement>
</mask>
<uei>uei.opennms.org/mib2opennms/netscreenTrapVpn</uei>
<event-label>NETSCREEN-TRAP-MIB defined trap event: netscreenTra
pVpn</event-label>
<descr>
&lt;p&gt;This trap indicates that VPN tunnel status has occured.&lt;/p&gt;&lt;ta
ble&gt;
&lt;tr&gt;&lt;td&gt;&lt;b&gt;

netscreenTrapType&lt;/b&gt;&lt;/td&gt;&lt;td&gt;
%parm#3%;&lt;/td&gt;&lt;td&gt;&lt;p;&gt;&lt;/p&gt;&lt;/td;&gt;&lt;/tr&
gt;
&lt;tr&gt;&lt;td&gt;&lt;b&gt;

netscreenTrapDesc&lt;/b&gt;&lt;/td&gt;&lt;td&gt;
%parm#4%;&lt;/td&gt;&lt;td&gt;&lt;p;&gt;&lt;/p&gt;&lt;/td;&gt;&lt;/tr&
gt;&lt;/table&gt;
</descr>
<logmsg dest='logndisplay'>&lt;p&gt;
netscreenTrapVpn trap received
netscreenTrapType=%parm#3%
netscreenTrapDesc=%parm#4%&lt;/p&gt;
</logmsg>
<severity>Indeterminate</severity>
</event>

a change to the event could be along the lines of
<severity>%lookup[parm#3]%</severity>

and this could goto a lookup table as follows.
40:Normal
41:Critical

Environment

Operating System: SunOS Platform: Sun

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Benjamin Reed October 3, 2008 at 11:53 AM

isn't this something that could be done with Scriptd?

Details

Assignee

Reporter

Labels

Components

Affects versions

Priority

PagerDuty

Created March 9, 2005 at 5:21 PM
Updated September 21, 2021 at 9:17 PM