Differences

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
 
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