/Events /Perf /Filesystem 
Transform:

fs_id = device.prepId(evt.component)
for f in device.os.filesystems():
    if f.id != fs_id: continue
    p = (float(f.usedBytes()) / f.totalBytes()) * 100
    freeAmtGB = (float(f.totalBytes() - f.usedBytes())) / 1024 / 1024 / 1024
    evt.summary = "Disk space low: %3.1f%% used (%3.2f GB free)" % (p, 
freeAmtGB)
    if p > 95 and (freeAmtGB < 1) and (freeAmtGB > 0):
        evt.severity = 5
    break

This transform works great except when a file system goes below 95 percent 
utilization and freeAmtGB > 1 the event is never cleared.




-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=30734#30734

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to