On RHEL 6.3, with the default net-snmp package (net-snmp 1:5.5-41.el6_3.1), I can't get the root partition of an OpenVZ container via SNMP. This bug makes the monitoring of diskspace impossible. >>>>>>>>>>>>>>>>>>>>>>> # snmpwalk -v 2c -c public server.example.com hrStorageDescr HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Memory buffers HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Cached memory HOST-RESOURCES-MIB::hrStorageDescr.10 = STRING: Swap space <<<<<<<<<<<<<<<<<<<<<<< If I recompile the SRPM after I disabled the application of Patch23: net-snmp-5.5-hrFSTable-indexes.patch in the SPEC file, everything works fine, I can monitor the diskspace. >>>>>>>>>>>>>>>>>>>>>>> # snmpwalk -v 2c -c public server.example.com hrStorageDescr HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Memory buffers HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Cached memory HOST-RESOURCES-MIB::hrStorageDescr.10 = STRING: Swap space HOST-RESOURCES-MIB::hrStorageDescr.31 = STRING: / <<<<<<<<<<<<<<<<<<<<<<< (the following does not apply anymore when Patch23 is not applied) Patch30: net-snmp-5.5-gfs.patch Patch46: net-snmp-5.5-xfs.patch Patch61: net-snmp-5.5-hrStorage-realStorageUnits.patch Patch62: net-snmp-5.5-hrStorage-realStorageUnits2.patch Patch63: net-snmp-5.5-hrStorage-fs.patch This bug appeared in RHEL 5.7 I am a user of CentOS, the problem is also in Fedora. I hadn't tested on RHEL but I'm pretty sure it has the same bug.
Created attachment 619864 [details] Add support for simfs I'm not an net-snmp expert, but this patch works for me. I just used the one for XFS as a base.
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-0421.html