This shows you the differences between the selected revision and the current version of the page.
| technology:zenoss:useful_code 06.15.2010 18:33 | technology:zenoss:useful_code 06.28.2010 17:38 current | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| </code> | </code> | ||
| * create new user for support | * create new user for support | ||
| + | |||
| + | <code python> | ||
| + | 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) | ||
| + | </code> | ||
| + | * print all thresholds that exist | ||