| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-20-2009, 02:20 PM
|
#1
|
|
Member
Registered: Sep 2008
Location: Toronto, ON, Canada
Distribution: Gentoo, RHEL (Fedora, CentOS, OEL), Ubuntu, FreeBSD, Solaris 10
Posts: 169
Rep:
|
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?
|
|
|
|
05-20-2009, 03:50 PM
|
#2
|
|
Member
Registered: Sep 2008
Location: Toronto, ON, Canada
Distribution: Gentoo, RHEL (Fedora, CentOS, OEL), Ubuntu, FreeBSD, Solaris 10
Posts: 169
Original Poster
Rep:
|
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:
|
|
|
|
08-03-2012, 02:59 AM
|
#3
|
|
LQ Newbie
Registered: Aug 2012
Posts: 1
Rep: 
|
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:32 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|