Hi
I wrote the following script some time ago to graph the total disk space for
one system. Hope it will help you :-)
Code:
totaldisk=0
totalused=0
def comp(devices):
global totaldisk
global totalused
for f in d.os.filesystems():
print devices.id, f.id
size=f.totalBlocks*f.blockSize
used=f.getRRDValue('usedBlocks')
if used is None:
used = 0
else:
used=int(used)
used=used*f.blockSize
totaldisk += size
totalused += used
for d in dmd.Systems.Novell.getSubDevices():
comp(d)
print "OK|total=%r used=%r" % (totaldisk, totalused)
--
Florian Deckert
SopraGroup - France
-------------------- m2f --------------------
Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=35034#35034
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users