lists.netmrg.net lists.netmrg.net
NetMRG discussion and support
 
FAQ :: Search :: Memberlist :: Usergroups :: Register
Profile :: Log in to check your private messages :: Log in

Missing dskTable from enterprises.ucdavis (No disk data)

 
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support
Author Message
mikey
Beginner


Joined: 22 Feb 2004
Posts: 2
Location: New Zealand

PostPosted: Sun Feb 22, 2004 9:08 am    Post subject: Missing dskTable from enterprises.ucdavis (No disk data) Reply with quote

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-MIB::hrSWRunParameters.23978 = STRING: "dsk"
[root@tuvok init.d]# snmpwalk -v 2c -c public tuvok enterprises.ucdavis.dskTable
UCD-SNMP-MIB::dskTable = 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.
Back to top
balleman
Site Admin


Joined: 20 Jan 2003
Posts: 282

PostPosted: Sun Feb 22, 2004 2:42 pm    Post subject: Reply with quote

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:
Code:
###############################################################################
# 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 = ""


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 :)
Back to top
mikey
Beginner


Joined: 22 Feb 2004
Posts: 2
Location: New Zealand

PostPosted: Mon Feb 23, 2004 1:09 am    Post subject: Working Reply with quote

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.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support All times are GMT
Page 1 of 1

 



smartBlue Style © 2002 Smartor
Powered by phpBB © 2001, 2002 phpBB Group