I'm trying to create an event transform that simply sets the event summary to 
the message detail from a trap. 

Here's what I've been able to do in zendmd:


Code:

>>> evt=dmd.ZenEventManager.getEventDetailFromStatusOrHistory("506ff510-067c-4f3
>>>                                              7-876e-d3b6e1e3d0a3")
>>> evt._details
(('community', 'SSSHHH'), ('oid', '1.3.6.1.4.1.1991.1.1.2.1.44.0'), 
('snAgGblTrapMessage', 'System: Fan speed changed automatically to 2 '), 
('snAgGblTrapMessage.0', 'System: Fan speed changed automatically to 2 '))
>>> evt._details[3][1]
'System: Fan speed changed automatically to 2 '




In the event transform I've tried:

Code:
evt.summary = evt._details[3][1]


This doesn't change the summary at all. It still lists the summary as "snmp 
trap foundry.1202" even as new events come in. 

If I try to set the event summary to a simple string for testing, that works:

Code:
evt.summary = "Just testing"


It correctly sets the event summary to "Just testing".

What am I missing? There are lots of instances where I'd like the event summary 
to just relay the SNMP trap message in it's entirety and not do anything fancy. 
Thanks in advance.




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

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

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



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

Reply via email to