Hmm, I still have the problem on RHEL 6 with 5.7 after applying the patches. I was wondering if I had done something wrong. The difference I can see is that 5.7 compiles with the hrh_storage.c and earlier versions compile hr_storage.c. I forced a compile of 5.7 with hr_storage.c and
hr_filesys.c and I get the OIDs:

HOST-RESOURCES-MIB::hrStorageType.31 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk

Dennis.

On 7/28/2011 8:43 AM, Bart Van Assche wrote:
On Tue, Jul 26, 2011 at 1:58 PM, Niels Baggesen <[email protected] <mailto:[email protected]>> wrote:

    On Mon, Jul 25, 2011 at 08:53:51AM -0700, Dennis Andrews wrote:
    > Linux. I tested it on RHEL 6 and  RHEL 5.5

    The following patch and running autoconf should fix it:

    diff --git a/configure.d/config_os_functions
    b/configure.d/config_os_functions
    index d7242a9..7736994 100644
    --- a/configure.d/config_os_functions
    +++ b/configure.d/config_os_functions
    @@ -22,7 +22,6 @@ else
     fi

     AC_TYPE_SIGNAL
    -AC_FUNC_GETMNTENT

     ##
     #   Stand-alone function checks:
    diff --git a/configure.d/config_os_libs1 b/configure.d/config_os_libs1
    index 00befbc..ce33d34 100644
    --- a/configure.d/config_os_libs1
    +++ b/configure.d/config_os_libs1
    @@ -59,6 +59,7 @@ fi
     AC_SEARCH_LIBS(getfsstat, [nbutil])
     AC_CHECK_FUNCS(getfsstat)
     AC_CHECK_FUNCS(getvfsstat)
    +AC_FUNC_GETMNTENT

     #
     # kinfo_get_cpus

    It makes sure that vi have tested for getmntent before deciding which
    agent modules to use.


The results I get with this patch are:
* 5.4, 5.5 and 5.6 branches: hrStorageFixedDisk entries are reported in hrStorageTable. $ apps/snmpwalk -Mmibs -v2c -cpublic :1161 hrStorageTable|grep hrStorageFixedDisk HOST-RESOURCES-MIB::hrStorageType.31 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk HOST-RESOURCES-MIB::hrStorageType.32 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk HOST-RESOURCES-MIB::hrStorageType.33 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk HOST-RESOURCES-MIB::hrStorageType.34 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
$ grep '^#.*GETMNTENT' config.log
#define HAVE_GETMNTENT 1

* 5.7 branch and master branch: no hrStorageFixedDisk entries are reported in hrStorageTable. $ apps/snmpwalk -Mmibs -v2c -cpublic :1161 hrStorageTable|grep hrStorageFixedDisk
$ grep '^#.*GETMNTENT' config.log
#define HAVE_GETMNTENT 1

Bart.
------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to