LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-20-2009, 02:20 PM   #1
ursusca
Member
 
Registered: Sep 2008
Location: Toronto, ON, Canada
Distribution: Gentoo, RHEL (Fedora, CentOS, OEL), Ubuntu, FreeBSD, Solaris 10
Posts: 170

Rep: Reputation: 34
Gentoo - addition of "ucd-snmp/diskio" module to Net-SNMP


Hi,

I tried to get disk statistic on my Gentoo box:

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

The addition of the "diskio" module is very useful. How can I add it to net-snmp?
 
Old 05-20-2009, 03:50 PM   #2
ursusca
Member
 
Registered: Sep 2008
Location: Toronto, ON, Canada
Distribution: Gentoo, RHEL (Fedora, CentOS, OEL), Ubuntu, FreeBSD, Solaris 10
Posts: 170

Original Poster
Rep: Reputation: 34
SOLVED :lol:
I've added includeAllDisks 10% in /etc/snmp/snmpd.conf file and restarted snmp

snmpwalk -v 1 -c public localhost .1.3.6.1.4.1.2021.9
UCD-SNMP-MIB::dskIndex.1 = INTEGER: 1
UCD-SNMP-MIB::dskIndex.2 = INTEGER: 2
UCD-SNMP-MIB::dskIndex.3 = INTEGER: 3
UCD-SNMP-MIB::dskIndex.4 = INTEGER: 4
UCD-SNMP-MIB::dskIndex.5 = INTEGER: 5
UCD-SNMP-MIB::dskIndex.6 = INTEGER: 6
UCD-SNMP-MIB::dskIndex.7 = INTEGER: 7
UCD-SNMP-MIB::dskIndex.8 = INTEGER: 8
UCD-SNMP-MIB::dskPath.1 = STRING: /
UCD-SNMP-MIB::dskPath.2 = STRING: /proc
UCD-SNMP-MIB::dskPath.3 = STRING: /sys
UCD-SNMP-MIB::dskPath.4 = STRING: /dev
UCD-SNMP-MIB::dskPath.5 = STRING: /dev/pts
UCD-SNMP-MIB::dskPath.6 = STRING: /proc/bus/usb
UCD-SNMP-MIB::dskPath.7 = STRING: /sys/kernel/security
UCD-SNMP-MIB::dskPath.8 = STRING: /boot
UCD-SNMP-MIB::dskDevice.1 = STRING: /dev/sda3
UCD-SNMP-MIB::dskDevice.2 = STRING: proc
UCD-SNMP-MIB::dskDevice.3 = STRING: sysfs
UCD-SNMP-MIB::dskDevice.4 = STRING: udev
UCD-SNMP-MIB::dskDevice.5 = STRING: devpts
UCD-SNMP-MIB::dskDevice.6 = STRING: usbfs
UCD-SNMP-MIB::dskDevice.7 = STRING: securityfs
UCD-SNMP-MIB::dskDevice.8 = STRING: /dev/sda1
UCD-SNMP-MIB::dskMinimum.1 = INTEGER: -1
UCD-SNMP-MIB::dskMinimum.2 = INTEGER: -1
UCD-SNMP-MIB::dskMinimum.3 = INTEGER: -1
UCD-SNMP-MIB::dskMinimum.4 = INTEGER: -1
UCD-SNMP-MIB::dskMinimum.5 = INTEGER: -1
UCD-SNMP-MIB::dskMinimum.6 = INTEGER: -1
UCD-SNMP-MIB::dskMinimum.7 = INTEGER: -1
UCD-SNMP-MIB::dskMinimum.8 = INTEGER: -1
UCD-SNMP-MIB::dskMinPercent.1 = INTEGER: 10
UCD-SNMP-MIB::dskMinPercent.2 = INTEGER: 10
UCD-SNMP-MIB::dskMinPercent.3 = INTEGER: 10
UCD-SNMP-MIB::dskMinPercent.4 = INTEGER: 10
UCD-SNMP-MIB::dskMinPercent.5 = INTEGER: 10
UCD-SNMP-MIB::dskMinPercent.6 = INTEGER: 10
UCD-SNMP-MIB::dskMinPercent.7 = INTEGER: 10
UCD-SNMP-MIB::dskMinPercent.8 = INTEGER: 10
UCD-SNMP-MIB::dskTotal.1 = INTEGER: 75830464
UCD-SNMP-MIB::dskTotal.2 = INTEGER: 0
UCD-SNMP-MIB::dskTotal.3 = INTEGER: 0
UCD-SNMP-MIB::dskTotal.4 = INTEGER: 10240
UCD-SNMP-MIB::dskTotal.5 = INTEGER: 0
UCD-SNMP-MIB::dskTotal.6 = INTEGER: 0
UCD-SNMP-MIB::dskTotal.7 = INTEGER: 0
UCD-SNMP-MIB::dskTotal.8 = INTEGER: 101086
UCD-SNMP-MIB::dskAvail.1 = INTEGER: 5314680
UCD-SNMP-MIB::dskAvail.2 = INTEGER: 0
UCD-SNMP-MIB::dskAvail.3 = INTEGER: 0
UCD-SNMP-MIB::dskAvail.4 = INTEGER: 10080
UCD-SNMP-MIB::dskAvail.5 = INTEGER: 0
UCD-SNMP-MIB::dskAvail.6 = INTEGER: 0
UCD-SNMP-MIB::dskAvail.7 = INTEGER: 0
UCD-SNMP-MIB::dskAvail.8 = INTEGER: 36384
UCD-SNMP-MIB::dskUsed.1 = INTEGER: 66663800
UCD-SNMP-MIB::dskUsed.2 = INTEGER: 0
UCD-SNMP-MIB::dskUsed.3 = INTEGER: 0
UCD-SNMP-MIB::dskUsed.4 = INTEGER: 160
UCD-SNMP-MIB::dskUsed.5 = INTEGER: 0
UCD-SNMP-MIB::dskUsed.6 = INTEGER: 0
UCD-SNMP-MIB::dskUsed.7 = INTEGER: 0
UCD-SNMP-MIB::dskUsed.8 = INTEGER: 59483
UCD-SNMP-MIB::dskPercent.1 = INTEGER: 93
UCD-SNMP-MIB::dskPercent.2 = INTEGER: 0
UCD-SNMP-MIB::dskPercent.3 = INTEGER: 0
UCD-SNMP-MIB::dskPercent.4 = INTEGER: 2
UCD-SNMP-MIB::dskPercent.5 = INTEGER: 0
UCD-SNMP-MIB::dskPercent.6 = INTEGER: 0
UCD-SNMP-MIB::dskPercent.7 = INTEGER: 0
UCD-SNMP-MIB::dskPercent.8 = INTEGER: 62
UCD-SNMP-MIB::dskPercentNode.1 = INTEGER: 11
UCD-SNMP-MIB::dskPercentNode.2 = INTEGER: 100
UCD-SNMP-MIB::dskPercentNode.3 = INTEGER: 100
UCD-SNMP-MIB::dskPercentNode.4 = INTEGER: 2
UCD-SNMP-MIB::dskPercentNode.5 = INTEGER: 100
UCD-SNMP-MIB::dskPercentNode.6 = INTEGER: 100
UCD-SNMP-MIB::dskPercentNode.7 = INTEGER: 100
UCD-SNMP-MIB::dskPercentNode.8 = INTEGER: 0
UCD-SNMP-MIB::dskErrorFlag.1 = INTEGER: error(1)
UCD-SNMP-MIB::dskErrorFlag.2 = INTEGER: noError(0)
UCD-SNMP-MIB::dskErrorFlag.3 = INTEGER: noError(0)
UCD-SNMP-MIB::dskErrorFlag.4 = INTEGER: noError(0)
UCD-SNMP-MIB::dskErrorFlag.5 = INTEGER: noError(0)
UCD-SNMP-MIB::dskErrorFlag.6 = INTEGER: noError(0)
UCD-SNMP-MIB::dskErrorFlag.7 = INTEGER: noError(0)
UCD-SNMP-MIB::dskErrorFlag.8 = INTEGER: noError(0)
UCD-SNMP-MIB::dskErrorMsg.1 = STRING: /: less than 10% free (= 93%)
UCD-SNMP-MIB::dskErrorMsg.2 = STRING:
UCD-SNMP-MIB::dskErrorMsg.3 = STRING:
UCD-SNMP-MIB::dskErrorMsg.4 = STRING:
UCD-SNMP-MIB::dskErrorMsg.5 = STRING:
UCD-SNMP-MIB::dskErrorMsg.6 = STRING:
UCD-SNMP-MIB::dskErrorMsg.7 = STRING:
UCD-SNMP-MIB::dskErrorMsg.8 = STRING:
 
Old 08-03-2012, 02:59 AM   #3
Seed
LQ Newbie
 
Registered: Aug 2012
Posts: 1

Rep: Reputation: Disabled
I had to post here because I ran into this problem and this post ranks high in the search results and doesn't even work. The solution I was able to find was:

first

echo "net-analyzer/net-snmp diskio" >> /etc/portage/package.use/local

or wherever you manage your use packages. Sometimes it's a file called package.use sometimes it's a list of packages defined under a directory package.use

Then run

emerge -uavN net-snmp

Lookup the paramters but it's verbose, use ask and New.

Then I had is compiled properly:

run:

net-snmp-config --configure-options

and you should have:

'--with-mib-modules=host ucd-snmp/dlmod ucd-snmp/diskio'

or something similar but most importantly WITH ucd-snmp/diskio
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Net-SNMP writing a Subagent - snmp.conf Unknown token: master AustinMarton Programming 0 12-16-2008 07:34 PM
HP Officjet software install slackware - "configure: error: cannot find net-snmp" Old_Fogie Linux - Hardware 1 05-03-2006 01:01 PM
How to configure ucd-snmp and net-snmp? Tazzmanian Linux - Networking 1 05-27-2005 08:09 AM
NET-SNMP vs UCD-SNMP nitind Red Hat 1 05-20-2005 06:08 AM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 10:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration