Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Aug 2011 00:21:50 GMT
From:      Helmut Schneider <jumper99@gmx.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/160246: net-mgmt/net-snmp: incorrect hrStorageType if "disk" is added to snmpd.conf
Message-ID:  <201108280021.p7S0LoFZ055812@red.freebsd.org>
Resent-Message-ID: <201108280030.p7S0UCIM039795@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         160246
>Category:       ports
>Synopsis:       net-mgmt/net-snmp: incorrect hrStorageType if "disk" is added to snmpd.conf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 28 00:30:12 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Helmut Schneider
>Release:        8.2-RELEASE-p2
>Organization:
>Environment:
>Description:
net-snmp displays the wrong hrStorageType for most devices if the moutnt point is added to snmpd.conf:

[helmut@BSDHelmut ~]$ for i in 31 32 33 34 35; do snmpwalk -v2c -cpublic localhost HOST-RESOURCES-MIB::hrStorageDescr.${i}; snmpwalk -v2c -cpublic localhost HOST-RESOURCES-MIB::hrStorageType.${i}; done
HOST-RESOURCES-MIB::hrStorageDescr.31 = STRING: /
HOST-RESOURCES-MIB::hrStorageType.31 = OID: HOST-RESOURCES-TYPES::hrStorageNetworkDisk
HOST-RESOURCES-MIB::hrStorageDescr.32 = STRING: /dev
HOST-RESOURCES-MIB::hrStorageType.32 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageDescr.33 = STRING: /home
HOST-RESOURCES-MIB::hrStorageType.33 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageDescr.34 = STRING: /tmp
HOST-RESOURCES-MIB::hrStorageType.34 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageDescr.35 = STRING: /usr
HOST-RESOURCES-MIB::hrStorageType.35 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
[helmut@BSDHelmut ~]$

"/" should be displayed as hrStorageFixedDisk and not as hrStorageNetworkDisk. net-snmpd 5.5 behaves as expected.
>How-To-Repeat:
Install net-snmp 5.7, put at least "disk /" into snmpd.conf, compare hrStorageDescr and HOST-RESOURCES-MIB::hrStorageType.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108280021.p7S0LoFZ055812>