if evt.message.find("Error reading value for") >= 0:
evt._action = "drop"
* drop ALL "oid x.x.x.x. is bad" events. whats the best way to do this system wide? (zenoss 2.4.1)
* utilizes heirarchical transforms; you can put the above transform at /Events to apply it to all events
dmd.ZenUsers.manage_addUser("zenoss-support", "zen0ss", ("Manager",))
commit()
* create new user for support
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)
* print all thresholds that exist