thanks guys .. its made me more confused but thanks ..

the code i'm trying to Frankenstein (from the forum) into what i want is :

index = getattr(evt, 'ifIndex', 0)
descr = getattr(evt, 'ifDescr', 'Unknown Interface')

evt.component = descr

if device:
        description = ''
        for iface in device.os.interfaces():
        if index and iface.ifindex == index:
                descr = iface.description
        elif descr and iface.name == descr:
                descr = iface.description

evt.summary = 'Link down on %s' % (descr)

it shows the interface description in the error summary for links up and down 
.. i'm trying to do the same thing but for a device down detected by zenping.

i thought i'd find device.os.interfaces in zendmd.  i could then mess around 
and try to butcher together what i want .. so it missing has thrown me.

confused ... going on holiday, hopefully the zenoss book will be here when i 
get back ..

thanks for your replies




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

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

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



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

Reply via email to