After your reply, I did try and create a FileSystem template based on UCD-SNMP-MIB because that one give the values as returned by df. (I had to add "includeAllDisks 10%" to snmpd.conf.) However, it messes up the figures on the filesystem status pages. So, then I tried overriding the individual template for the filesystem and that gives me a correct graph. ie. showing 100% full. Of course, the status still shows the incorrect value.

It would be nice to be able to override the default FileSystem template with UCD-SNMP-MIB values without messing up the status pages. Would it be sufficient to add the relevant HOST-RESOURCES data sources into the custom template?

It would work to add the usedBlocks data source from HOST-RESOURCES to your custom templates. The alternative would be to update $ZENHOME/ Products/ZenModel/FileSystem.py so that it's methods could intelligently return their results from the HOST-RESOURCES totalBlocks & usedBlocks values, or the UCD-SNMP-MIB dskTotal & dskUsed values.

The methods on the FileSystem class that are important:
        totalBytes
        usedBytes
        freeBytes
        capacity

We chose to use the HOST-RESOURCES MIB over the UCD-SNMP-MIB because it is more standardized. It even works on Windows systems.
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to