Skip to content

Instantly share code, notes, and snippets.

@cluther
Created November 30, 2011 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cluther/1410593 to your computer and use it in GitHub Desktop.
Save cluther/1410593 to your computer and use it in GitHub Desktop.
How many graphs in Zenoss?
from itertools import chain
reduce(lambda x, y: x + len(y.getDefaultGraphDefs()), chain(dmd.Devices.getSubDevicesGen(), dmd.Devices.getMonitoredComponents()), 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment