I tried adding the following transforms to suppress events, but neither worked.
Does anybody know how to get Ping Status from within a transform as this would
be a simple way to suppress events if the device doesn't ping. Also if this
transform is placed in /Events will it apply to all event classes or do you
have to put it in each specifc event class that you would like to supress?
1.
device = evt.device
if device.pingStatus() > 0:
evt.eventState = 2 #suppressed
2.
device = evt.device
if device.getPingStatus() > 0:
evt.eventState = 2 #suppressed
The zenhub.log shows the following errors when these transforms are enabled.
ERROR zen.Events: Error transforming EventClassInst Snmp ('str' object has no
attribute 'pingStatus')
ERROR zen.Events: Error transforming EventClassInst Snmp ('str' object has no
attribute 'getPingStatus')
-------------------- m2f --------------------
Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=30843#30843
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users