Thanks for the advice so far, I've been making progress on this as I have time.
I've used zendmd to come up with the following code which should work on a
linkUp transform:
Code:
for temp in dmd.ZenEventManager.getEventList():
if evt.device == temp.device and evt.component == temp.component:
tempevt = dmd.ZenEventManager.getEventDetailFromStatusOrHistory(temp.evid)
if tempevt.eventClassMapping == "/Net/Link/LINK-3-UPDOWN":
for key,value in tempevt.__dict__.items():
print key, value
Where evt is the linkUp event, this will look for a corresponding linkDown
event (tempevt). Now what I'd like to do is instead of the debug printing at
the end, clear tempevt and generate a new event manually.
I can probably call os.system("zencommand <args here>"), though if anyone knows
a way to generate an event without shell'ing out, it would be nice.
What I can't figure out is, how can I clear tempevt. I could probably set
tempevt.priority to the clear priority, but it seems like there are other
things triggered by clearing an event (clearid gets set, for example), which
makes me suspect there's a method to do this. Can anyone point me in the right
direction for it?
-------------------- m2f --------------------
Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=37127#37127
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users