ZenDMD Tip - Remove Invalid Devices from Collectors
From Zenoss Wiki
This is the approved revision of this page, as well as being the most recent.
As the zenoss user, zendmd
from Products.ZenModel.PerformanceConf import PerformanceConf for p in dmd.Monitors.Performance.objectValues(): if not isinstance(p, PerformanceConf): continue for d in p.devices(): try: bah = d.primaryAq() except: print "Removing %s from %s" % (d.id, p.id) p.d._remove(d) commit ()