Daily Archives: 25.11.2015

Efficient component look-up in Zenoss

… or how to find an interface object from d.os.interfaces() or d.hw.fans() without a loop. The problem: in Zenoss transforms, I often need to do a check on an attribute of a component, e.g. re.search(‘stuff’, interface.description). The problem is, the event component does not contain the “interface” object. Instead, it contains the interface.getInterfaceName() string. The […]