• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1412
  • Last Modified:

Loading/installing MIBS and getting SNMP to give data

Hello All,

I have a linux server running Debian 3.0 with kernal 2.4.18. I have installed snmpd version 4.2.3 but I am unable to get below  .1.3.6.1.2.1. MIB. Once I have passed the basic system info I recieve "End of MIB" when using snmpwalk. From my research I believe I need to add MIB modules for the stuff I want to monitor like CPU, network traffic etc..

How do I add/load these addition MIBS so that snmpd will responde to the query? My MIBs are in /usr/share/snmp/mibs and below is my basic snmpd.conf file which is basiclly the default.


Thanks Hartman


**** snmpd.conf *****
com2sec paranoid  localhost     *******

group MyROSystem v1         paranoid
group MyROSystem v2c        paranoid
group MyROSystem usm        paranoid
group MyROGroup  v1         readonly
group MyROGroup  v2c        readonly
group MyROGroup  usm        readonly
group MyRWGroup  v1         readwrite
group MyRWGroup  v2c        readwrite
group MyRWGroup  usm        readwrite

view all    included  .1                               80
view system included  .iso.org.dod.internet.mgmt.mib-2.system

access MyROSystem ""      any       noauth    exact  system none   none
access MyROGroup  ""      any       noauth    exact  all    none   none
access MyRWGroup  ""      any       noauth    exact  all    all    none

syslocation Unknown (configure /etc/snmp/snmp.local.conf)
syscontact Unknown <root@localhost> (configure /etc/snmp/snmp.local.conf)

proc mountd
proc ntalkd 4
proc sendmail 10 1

disk / 10000

load 12 14 14
**** end of file ****
0
Hartman
Asked:
Hartman
  • 7
  • 5
1 Solution
 
kiranghagCommented:
which command u are using to access mibs...
u need to use public  group.
0
 
kiranghagCommented:
can u directly start the walk at branch 2
0
 
kiranghagCommented:
i mean 4.2
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
HartmanAuthor Commented:
Kiranghag,

I am using snmpwalk to see how far I get down. For example

# snmpwalk -v 1 localhost ****** 2

Returns
End of MIB

But this returns some info but I can't get any more

# snmpwalk -v 1 localhost ****** .1.3.6.1.2.1

I think my problem is either I dont know how to access the local MIB data to get what info I need or somehow the default install only goes so far and I need to add the rest which I don't know how to do.

Hartman

0
 
kiranghagCommented:
refer the mib by the names...
e.g. snmpwalk system
this would walk down the system branch...
this would also insure that the snmp-utils have recognized the branch u want to work upon.

if the mib which u are trying to view is not the one which came with snmp-utils,,, this can help you find out if snmp-utils has reognised it...so if your mib has a branch say foobar. and after giving the comman to view foobar. and error might indicate that the mib is not recognised . this is beacause if its recognised, the mapping from name to numbers is possible for snmp-utils.

i guess network interface statistics can be obtained from the ".if" branch, somewhere below system branch
0
 
HartmanAuthor Commented:
kiranghag,

When I do the following, I get lots of standard looking info

# snmpwalk system

But when I do

# snmpwalk system.if
system.if: Unknown Object Identifier (Sub-id not found: system -> if)


I'm not sure what MIBS came with my snmp, I have debian and I installed the default package. In /usr/share/snmp/mibs, there are tons of files.

I understand in general the fole of the MIBS I just have no exprince working with them, ie testing and and adding.

Thanks
Hartman
0
 
kiranghagCommented:
do
snmpwalk system.interfaces
or
snmpwalk interfaces
0
 
HartmanAuthor Commented:
Kiranghag,

When I do

# snmpwalk host community system.interfaces

I get this

# system.interfaces: Unknown Object Identifier (Sub-id not found: system -> interfaces)

That is what I get for everything below system.

Hartman
0
 
kiranghagCommented:
**** ...i dont have a linux box to test...
but try
snmpwalk interfaces...

btw...do u have the tree list of the branches under system...
if not just redirect the output of the "snmpwalk system" to a file and see thru it carefully if the required information is present...

damn, i donno when i can get my box with penguin...
0
 
HartmanAuthor Commented:
Kiranghag,

# snmpwalk localhost ***** interfaces
End of MIB

Here is the output from system

# snmpwalk localhost ***** system
system.sysDescr.0 = Linux aragorn.*****.com 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i686
system.sysObjectID.0 = OID: enterprises.ucdavis.ucdSnmpAgent.linux
system.sysUpTime.0 = Timeticks: (1487373) 4:07:53.73
system.sysContact.0 = Hartman <root@localhost> (configure /etc/snmp/snmp.local.conf)
system.sysName.0 = aragorn.*****.com
system.sysLocation.0 = Unknown (configure /etc/snmp/snmp.local.conf)
system.sysORLastChange.0 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORID.1 = OID: ifMIB
system.sysORTable.sysOREntry.sysORID.2 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpMIB
system.sysORTable.sysOREntry.sysORID.3 = OID: tcpMIB
system.sysORTable.sysOREntry.sysORID.4 = OID: ip
system.sysORTable.sysOREntry.sysORID.5 = OID: udpMIB
system.sysORTable.sysOREntry.sysORID.6 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpVacmMIB.vacmMIBConformance.vacmMIBGroups.vacmBasicGroup
system.sysORTable.sysOREntry.sysORID.7 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpFrameworkMIB.snmpFrameworkMIBConformance.snmpFrameworkMIB
.snmpFrameworkMIBCompliance
system.sysORTable.sysOREntry.sysORID.8 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpMPDMIB.snmpMPDMIBConformance.snmpMPDMIBCompliances.snmpMP
system.sysORTable.sysOREntry.sysORID.9 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpUsmMIB.usmMIBConformance.usmMIBCompliances.usmMIBComplian
system.sysORTable.sysOREntry.sysORDescr.1 = The MIB module to describe generic objects for network interface sub-layers
system.sysORTable.sysOREntry.sysORDescr.2 = The MIB module for SNMPv2 entities
system.sysORTable.sysOREntry.sysORDescr.3 = The MIB module for managing TCP implementations
system.sysORTable.sysOREntry.sysORDescr.4 = The MIB module for managing IP and ICMP implementations
system.sysORTable.sysOREntry.sysORDescr.5 = The MIB module for managing UDP implementations
system.sysORTable.sysOREntry.sysORDescr.6 = View-based Access Control Model for SNMP.
system.sysORTable.sysOREntry.sysORDescr.7 = The SNMP Management Architecture MIB.
system.sysORTable.sysOREntry.sysORDescr.8 = The MIB for Message Processing and Dispatching.
system.sysORTable.sysOREntry.sysORDescr.9 = The management information definitions for the SNMP User-based Security Model.
system.sysORTable.sysOREntry.sysORUpTime.1 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.2 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.3 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.4 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.5 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.6 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.7 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.8 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.9 = Timeticks: (0) 0:00:00.00
End of MIB


Im at a total loss.

Thanks
Hartman
0
 
kiranghagCommented:
key w8 a sec..
what does the ***** in your command means???
have u passed public as community.???
0
 
HartmanAuthor Commented:
kiranghag

**** = protected community name :)

Hey I got so crazy I removed/reinstalled snmp/snmpd and for some reason now everything comes up fine.

Thanks for your help and I will give you the points.

Hartman
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 7
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now