Take a look at this example:

Code:

for attr in dir(evt):
   if attr.startswith('1.3.6.1.2.1.15.3.1.14.'):
       evt.bgpPeerIp = attr.replace('1.3.6.1.2.1.15.3.1.14.', '')
       evt.summary = "bgpBackwardTransNotification from " + evt.bgpPeerIp




This is for a bgp backwards transition.

You talked about: spSensorStatus

so probably you can do something like this:

Code:

if evt.spSensorStatus == 1
    evt.summary = "SensorStatus is Normal"
elif  evt.spSensorStatus == 2
    evt.summary = "SensorStatus is Warning"




I think I've seen some examples of this on the forum. Good luck!




-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=19910#19910

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to