Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80222 - net-snmp extensions (EXTENSIBLEDOTMIB) are not working
Summary: net-snmp extensions (EXTENSIBLEDOTMIB) are not working
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-31 09:02 UTC by Andras BALI
Modified: 2006-03-31 13:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andras BALI 2005-01-31 09:02:33 UTC
I have copied these lines from the Net-SNMP configuration example to /etc/snmp/snmpd.conf:

disk / 1000
disk /var 10000
disk /home 10000
load 12 14 14

And I get this error message when I try to read them:

[17:42:31] root # snmpwalk -v 1 -c public localhost EXTENSIBLEDOTMIB.DISKMIBNUM                                                                                    
.EXTENSIBLEDOTMIB.DISKMIBNUM: Unknown Object Identifier (Sub-id not found: (top) -> EXTENSIBLEDOTMIB)

Access control settings are:

com2sec local   localhost       public
group MyROGroup v1      local
group MyROGroup v2c     local
group MyROGroup usm     local
view all included .1
access MyROGroup ""      any       noauth    exact  all    none   none

And this is net-snmp 5.1.1-r1.

Reproducible: Always
Steps to Reproduce:
Emerge net-snmp, zcat /usr/share/doc/net-snmp-5.1.1-r1/EXAMPLE.conf.gz > /etc/snmp/snmpd.conf, adjust COMMUNITY and NETWORK, /etc/init.d/snmpd start, snmpwalk -v1 -c public localhost .EXTENSIBLEDOTMIB.DISKMIBNUM.



Portage 2.0.51-r15 (hardened/x86/2.6, gcc-3.3.5, glibc-2.3.4.20040808-r1,
2.6.10-dre i686)
=================================================================
System uname: 2.6.10-dre i686 Celeron (Mendocino)
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jan 25 2005, 14:06:12)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r3
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium2 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ http://gentoo.inode.at/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="apache2 berkdb crypt gdbm hardened imap maildir mmx mysql ncurses nptl pam
pcre perl pic pie python readline ssl x86 xml zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS
Comment 1 Aaron Walker (RETIRED) gentoo-dev 2005-01-31 16:26:55 UTC
5.2 is currently stable on x86.  Do you still get this problem with that version?
Comment 2 Andras BALI 2005-01-31 17:28:37 UTC
Yes I'm also getting this with 5.2-r1.
Comment 3 John Mylchreest (RETIRED) gentoo-dev 2005-02-08 03:49:33 UTC
The EXTENSIBLEDOTMIB can be defined as an OID as well.
Can you please tell me if:
snmpwalk -c public -v 2c localhost .1.3.6.1.4.1.2021
returns the results your after?
if so we know more where to look.
Comment 4 Andras BALI 2005-02-08 08:07:05 UTC
Yes, it does work with the OID. This is what I get (excerpt):

[...]
UCD-SNMP-MIB::dskPath.1 = STRING: /
UCD-SNMP-MIB::dskPath.2 = STRING: /var
UCD-SNMP-MIB::dskPath.3 = STRING: /home
UCD-SNMP-MIB::dskDevice.1 = STRING: /dev/hda1
UCD-SNMP-MIB::dskDevice.2 = STRING: /dev/hda2
UCD-SNMP-MIB::dskDevice.3 = STRING: /dev/hda3
UCD-SNMP-MIB::dskMinimum.1 = INTEGER: 1000
UCD-SNMP-MIB::dskMinimum.2 = INTEGER: 10000
UCD-SNMP-MIB::dskMinimum.3 = INTEGER: 10000
UCD-SNMP-MIB::dskMinPercent.1 = INTEGER: -1
UCD-SNMP-MIB::dskMinPercent.2 = INTEGER: -1
UCD-SNMP-MIB::dskMinPercent.3 = INTEGER: -1
UCD-SNMP-MIB::dskTotal.1 = INTEGER: 4883556
UCD-SNMP-MIB::dskTotal.2 = INTEGER: 4883556
UCD-SNMP-MIB::dskTotal.3 = INTEGER: 66325488
UCD-SNMP-MIB::dskAvail.1 = INTEGER: 3804436
UCD-SNMP-MIB::dskAvail.2 = INTEGER: 4708148
UCD-SNMP-MIB::dskAvail.3 = INTEGER: 17487204
[...]
Comment 5 Timothy Demarest 2005-07-28 16:46:36 UTC
I have the same issue. Using OID works, which just appears to be the same as
using .enterprises.ucdavis.
Comment 6 Timothy Demarest 2005-07-28 16:49:48 UTC
I have the same issue when trying to use .EXTENSIBLEDOTMIB. Using the OID
.1.3.6.1.4.1.2021 does work as well, which just appears to be the same as using
.enterprises.ucdavis.

net-analyzer/net-snmp-5.2.1.2

Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.5-r0, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 Intel(R) Xeon(TM) CPU 2.40GHz
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.10
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe -mmmx -msse -msse2 -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe -mmmx -msse -msse2 -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg candy distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.ccccom.com http://gentoo.llarian.net/
http://mirrors.tds.net/gentoo http://mirror.datapipe.net/gentoo"
MAKEOPTS="-j25"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d acl apache2 berkdb bitmap-fonts cdr crypt curl directfb emacs
emboss encode f77 fbcon foomaticdb fortran gd gdbm gif gtk gtk2 imap imlib ipv6
jpeg ldap libg++ libwww mad mikmod motif mp3 mysql ncurses nls noaudio nptl
opengl pam pcre pdflib perl php png python qt readline samba sdl slang snmp
spell sse ssl tcpd tiff truetype truetype-fonts type1-fonts xml2 xv zlib
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 7 Benjamin Smee (strerror) (RETIRED) gentoo-dev 2006-01-21 10:21:54 UTC
Is this still a problem with the latest ~ARCH net-snmp versions?
Comment 8 Markus Ullmann (RETIRED) gentoo-dev 2006-03-31 13:14:20 UTC
Okay, this is partly fixed and partly invalid ;)

Fixed part:
Seems syntax was inspired by EXAMPLE.conf, the wrong one was copied over during install. Fixed in cvs

Invalid part:
EXTENSIBLEDOTMIB doesn't exist, it is used only at compiletime to replace text with the OID stated here in the bug.