TECHZEN Zenoss User Community ARCHIVE  

Change severity for certain SNMP traps from MIBs

Subject: Change severity for certain SNMP traps from MIBs
Author: [Not Specified]
Posted: 2014-10-09 08:32

I just setup our APC UPSs to send SNMP traps to our Zenoss box (4.2.5). I imported the PowerNet MIBs and it working great. However all the traps are defaulted to 'Warning' severity. I would like some of these traps to show up has 'Critical'.

For example:

OID:1.3.6.1.4.1.318.17
Description: UPS: At least one faulty battery exists.

How can I make this trap come up with Critical severity

Thanks!



Subject: Hi,
Author: [Not Specified]
Posted: 2014-10-09 09:16

Hi,

I think you would have to set an event mapping/transform. In the transform, you can specify the level of serverity.

Check out this: http://community.zenoss.org/docs/DOC-2554

Hope this helps!



Subject: So something like this? (not
Author: [Not Specified]
Posted: 2014-10-15 12:19

So something like this (not sure if evt.oid is correct)

if evt.oid("1.3.6.1.4.1.318.17") >= 0:
evt.severity = 5

And would I put this transform under event classes/unknown



< Previous
Monitoring Windows 2012 R2 Cluster with SQL
  Next
ZenossVirtualHostMonitor not picking up guest OS
>