Ok. I managed it to work.
Here is the code for event transform.

import transaction
trans=transaction.get()
if device:
    description = ''
    for iface in device.os.interfaces():
        if evt.ifIndex and iface.ifindex == evt.ifIndex:
            descr = iface.description
            iface.operStatus=0
            evt.component=iface.id
evt.summary = 'Link down to %s' % (descr)
trans.commit()
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to