Re: UCD-DISKIO-MIB - Reason: (noSuchName)

Alexey Vlasov <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Thu, 15 Mar 2007 23:46:48 +0100, Thomas Anders wrote:

> Do you get a similar error when you "snmpwalk ... 1.3.6.1.4.1.2021.13.15.1"?
 
Nope,
# snmpwalk -c ro_comm -v 1 localhost 1.3.6.1.4.1.2021.13.15.1
i get nothing .

> If so, does the output of "net-snmp-config --configure-options" include
> "ucd-snmp/diskio" in the --with-mib-modules list?

It's now:

# net-snmp-config --configure-options
'--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc'
'--localstatedir=/var/lib'
'--with-install-prefix=/var/tmp/portage/net-analyzer/net-snmp-5.4/image/'
'--with-sys-location=Unknown' '--with-sys-contact=root@Unknown'
'--with-default-snmp-version=3' '--with-mib-modules=host ucd-snmp/dlmod'
'--with-logfile=//var/log/net-snmpd.log'
'--with-persistent-directory=//var/lib/net-snmp'
'--enable-ucd-snmp-compatibility' '--enable-shared' '--enable-as-needed'
'--disable-mfd-rewrites' '--enable-embedded-perl' '--enable-ipv6'
'--disable-internal-md5' '--with-openssl' '--with-libwrap'
'--without-rpm' '--without-bzip2' '--without-zlib' '--without-elf'
'--build=i686-pc-linux-gnu' 'CFLAGS= -march=nocona -mtune=i686 -pipe
-O2' 'CXXFLAGS= -march=nocona -mtune=i686 -pipe -O2' 'LDFLAGS='
'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu'

> If that's not the case, you'll
> need to recompile.

# vim net-snmp-5.4.ebuild
=====
 mibs="host ucd-snmp/dlmod"
    use smux && mibs="${mibs} smux"
    use sendmail && mibs="${mibs} mibII/mta_sendmail"
    use lm_sensors && mibs="${mibs} ucd-snmp/lmSensors"
    use diskio && mibs="${mibs} ucd-snmp/diskio"
=====
I have just replaced only first row on:
mibs="host ucd-snmp/dlmod ucd-snmp/diskio"

# ebuild net-snmp-5.4.ebuild digest
>>> Creating Manifest for /usr/portage/net-analyzer/net-snmp
  digest.assumed                 3
   digest-net-snmp-5.2.1.2-r1::net-snmp-5.2.1.2.tar.gz
   digest-net-snmp-5.2.2-r3::net-snmp-5.2.2.tar.gz
   digest-net-snmp-5.3.0.1::net-snmp-5.3.0.1.tar.gz
# emerge net-snmp

After compilation:

# net-snmp-config --configure-options
'--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc'
'--localstatedir=/var/lib'
'--with-install-prefix=/var/tmp/portage/net-analyzer/net-snmp-5.4/image/'
'--with-sys-location=Unknown' '--with-sys-contact=root@Unknown'
'--with-default-snmp-version=3' '--with-mib-modules=host ucd-snmp/dlmod
ucd-snmp/diskio' '--with-logfile=//var/log/net-snmpd.log'
'--with-persistent-directory=//var/lib/net-snmp'
'--enable-ucd-snmp-compatibility' '--enable-shared' '--enable-as-needed'
'--disable-mfd-rewrites' '--enable-embedded-perl' '--enable-ipv6'
'--disable-internal-md5' '--with-openssl' '--with-libwrap'
'--without-rpm' '--without-bzip2' '--without-zlib' '--without-elf'
'--build=i686-pc-linux-gnu' 'CFLAGS= -march=nocona -mtune=i686 -pipe
-O2' 'CXXFLAGS= -march=nocona -mtune=i686 -pipe -O2' 'LDFLAGS='
'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu'

# snmpwalk -c ro_insolve -v 1 localhost 1.3.6.1.4.1.2021.13.15.1
UCD-DISKIO-MIB::diskIOIndex.1 = INTEGER: 1
UCD-DISKIO-MIB::diskIOIndex.2 = INTEGER: 2
UCD-DISKIO-MIB::diskIOIndex.3 = INTEGER: 3
[cut]
UCD-DISKIO-MIB::diskIOWrites.32 = Counter32: 49
UCD-DISKIO-MIB::diskIOWrites.33 = Counter32: 85858
UCD-DISKIO-MIB::diskIOWrites.34 = Counter32: 0

But there is no needed objects diskIOLA1 in the list, why?

Next,
# snmpget -v 1 -c ro_comm localhost diskIOLA1.0
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: UCD-DISKIO-MIB::diskIOLA1.0

Maybe on Linux you can't get LA? Or I've forgotten to enable some
options in kernel?

-- 
BRGDS. Alexey Vlasov.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.