Actually...any tips for getting this to work on interface utilization alerts?  


Code:

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
    evt.summary = "Filesystem threshold exceeded: current value %3.1f%%" % (p)
    break



I'm not exactly sure what variables I'd use in place of usedBytes or 
totalBytes...or where these variables are pulled from.  Ideally, I'd use 
ifHCInOctets and ifHCOutOctets...but I'm not sure if zenoss sees these as 
variables or where I could check.  Additionally, these will only work for 
devices with a 64bit ethernetCsmacd....as the 32bit ethernetCsmacd uses a 
different name for the data sources and datapoints (it just removes the "HC").




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

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

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



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

Reply via email to