On Jun 23, 2008, at 10:46 AM, Bob Jensen wrote:
Has anyone found a way to dump node info -- including performance
info from the zenoss command line?
I know I can validate that a node exists, but we would like to get
performance stats from the command line.
I was thinking maybe I would try a wget on the device URL for
individual .mib values, but I can't get the syntax right.
If anyone knows a trick, let me know.
You can do this from zendmd. Try something like the following.
for device in dmd.Devices.Server.Linux.getSubDevices():
load = device.getRRDValue('laLoadInt5')
print "%s: %.2f" % (device.id, load)
Obviously the getRRDValue method is the key to doing this.
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users