I'm experimenting with Zenoss using the 2.1.92 stack installer, and I've run into a couple of issues with the device modeling:

The first problem is that some of the routers I'd like to monitor have full BGP routing tables. Adding these devices to Zenoss results in the creation of a network object for every route in the table (~250,000). I don't need a network object for every route in existence, and having that many networks show up in Zenoss makes browsing by network impractical.

The second problem is that some of my other routers have hundreds of interfaces that I don't need to monitor because they're PPP links that are expected to go up and down regularly. I can disable the monitoring using zendmd (script below in case anybody came across this post looking for that information), but I would prefer to keep those interfaces from being added to the system.

Is there a way to hook into the modeling process and suppress the addition of routes and interfaces? If not, then which file(s) would I want to start in if I wanted to look into adding this as a feature?

Thanks,

- Wayne


# zendmd code snippet to disable monitoring of specified interface types
# on all devices under Devices/Network/Router/Cisco

import re
# two patterns, one anchored at the front and the second at the end
p1 = re.compile('^(Virtual|T1 |T3)')
p2 = re.compile('.+(atm subif|atm layer|aal5 layer|vLAN subif)$')
# change this path if the devices you want to modify are elsewhere in
# your device tree
for d in dmd.Devices['Network']['Router']['Cisco'].getSubDevices():
    for interface in d.os.interfaces():
        if p1.match(interface.getInterfaceName()) or \
            p2.match(interface.getInterfaceName()):
            print interface.getInterfaceName()
            interface.monitor = False
commit()
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to