if evt.message.find("Error reading value for") >= 0:
    evt._action = "drop"
dmd.ZenUsers.manage_addUser("zenoss-support", "zen0ss", ("Manager",))
commit()
print "ID Location datasources severity escalateCount"
for template in dmd.Devices.getAllRRDTemplates():
    Location = template.virtual_url_path().lstrip('zport/dmd')
    for th in template.thresholds():
        print "\"%s\" %s %s %s %s" % (th.id,Location,th.dsnames,th.severity,th.escalateCount)
 
technology/zenoss/useful_code.txt · Last modified: 06.28.2010 17:38 by nyeates1
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki