Missing dskTable from enterprises.ucdavis (No disk data)

mikey

22-02-2004 04:08:48

I've had NetMRG installed for a couple of days now and working with everything but disks. (btw this is the sort of tool I have been wanting for years but never found or had time to write)

My setup is as follows;

RedHat 9.0
net-snmp-5.0.9-2.90.1
net-snmp-utils-5.0.9-2.90.1
net-snmp-perl-5.0.9-2.90.1
net-snmp-devel-5.0.9-2.90.1
All other required packages are latest RH with patches.

Disks/Filesystems are enumerated but don't have the device correct , even after a recache

I get the following
Index Device Path
1 / /
instead of
Index Device Path
1 /dev/hda3 /
like the demo on Argo

/usr/share/snmp/mibs/UCD-SNMP-MIB.txt exists but when I try to walk either of the below.

[root@tuvok init.d]# snmpwalk -v 2c -c public tuvok . | grep dsk
HOST-RESOURCES-MIBhrSWRunParameters.23978 = STRING "dsk"
[root@tuvok init.d]# snmpwalk -v 2c -c public tuvok enterprises.ucdavis.dskTable
UCD-SNMP-MIBdskTable = No Such Object available on this agent at this OID

No disk table
I have read up and googled alot over the weekend, also found the topics here on the export LD_ASSUME_KERNEL=2.4.1 and tried that.
I am no SNMP expert so any help would be greatly appricaitated.

Do I have to recompile net-snmp to turn on ucd compat?

Thanks, Mike.

balleman

22-02-2004 09:42:05

Mikey,

It looks like NetMRG is failing over to the host-mib's disk table, which isn't good. There should be no need to recompile net-snmp, but check in your snmpd.conf in the "disk checks" section. You need to enumerate your partitions here for them to show up in the UCD-SNMP disk table. Here's what that section looks like on my desktop
[code1041ffb79d2]###############################################################################
# disk checks
#

# The agent can check the amount of available disk space, and make
# sure it is above a set limit.

# disk PATH [MIN=100000]
#
# PATH: mount path to the disk in question.
# MIN: Disks with space below this value will have the Mib's errorFlag set.
# Default value = 100000.

# Check the / partition and make sure it contains at least 10 megs.

disk /

# % snmpwalk -v 1 localhost public .1.3.6.1.4.1.2021.9
# enterprises.ucdavis.diskTable.dskEntry.diskIndex.1 = 0
# enterprises.ucdavis.diskTable.dskEntry.diskPath.1 = "/" Hex: 2F
# enterprises.ucdavis.diskTable.dskEntry.diskDevice.1 = "/dev/dsk/c201d6s0"
# enterprises.ucdavis.diskTable.dskEntry.diskMinimum.1 = 10000
# enterprises.ucdavis.diskTable.dskEntry.diskTotal.1 = 837130
# enterprises.ucdavis.diskTable.dskEntry.diskAvail.1 = 316325
# enterprises.ucdavis.diskTable.dskEntry.diskUsed.1 = 437092
# enterprises.ucdavis.diskTable.dskEntry.diskPercent.1 = 58
# enterprises.ucdavis.diskTable.dskEntry.diskErrorFlag.1 = 0
# enterprises.ucdavis.diskTable.dskEntry.diskErrorMsg.1 = ""
[/code1041ffb79d2]

The "disk /" line is the important part.

Hopefully this will fix your problem, please let us know. Thanks for your praise too, we always like that )

mikey

22-02-2004 20:09:16

Thanks for that.

After a restart of snmpd I was able to recache the disks and two cycles later I have data.

Now I can get to work graphing other things.

Also I would be quite interested in contributing howtos and working on documentation if there are things I can help out on let me know.

Thanks, Mike.