We display used MB in the event message, here is the part of the transform that
pulls it from Zenoss..
Code:
import re
fs_id = device.prepId(evt.component)
for f in device.os.filesystems():
if f.id != fs_id: continue
newTotal = float(f.totalBytes())
p = (float(f.usedBytes()) / newTotal) * 100
p = round(p, 0)
freeAmtMB = (float(newTotal - f.usedBytes())) / 1024 / 1024
evt.summary = "Disk Space Low: %3.0f%% used (%3.2f MB free)" % (p,
freeAmtMB)
-------------------- m2f --------------------
Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=34140#34140
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users