Do not use on any
shared computer
July 25, 2008 12:45pm pdt
null
[x]
Attachment Details

SNMP Error

Tags: problem, snmpwalk, mrtg, snmpd, snmp
I recently set up MRTG on my server and it is working fine so far for every host I try except localhost.

I did not have snmpd installed, but now do.  I used apt-get to install snmpd and left the config as it comes except for this part:

#       sec.name  source          community
com2sec paranoid  default         public
com2sec readonly  default         public
#com2sec readwrite default         private

I uncommented the readonly line after I had problems.  The rest of the config file is still default, meaning most of it is commented out.

A walk of localhost produces this:
10hz:/home/mrtg# snmpwalk -Os -c public -v 1 localhost system

sysDescr.0 = STRING: Linux 10hz 2.6.18-5-486 #1 Mon Dec 24 16:04:42 UTC 2007 i686
sysObjectID.0 = OID: netSnmpAgentOIDs.10
sysUpTimeInstance = Timeticks: (351264) 0:58:32.64
sysContact.0 = STRING: Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)
sysName.0 = STRING: 10hz
sysLocation.0 = STRING: Unknown (configure /etc/snmp/snmpd.local.conf)
sysORLastChange.0 = Timeticks: (27) 0:00:00.27
sysORID.1 = OID: ifMIB
sysORID.2 = OID: snmpMIB
sysORID.3 = OID: tcpMIB
sysORID.4 = OID: ip
sysORID.5 = OID: udpMIB
sysORID.6 = OID: vacmBasicGroup
sysORID.7 = OID: snmpFrameworkMIBCompliance
sysORID.8 = OID: snmpMPDCompliance
sysORID.9 = OID: usmMIBCompliance
sysORDescr.1 = STRING: The MIB module to describe generic objects for network interface sub-layers
sysORDescr.2 = STRING: The MIB module for SNMPv2 entities
sysORDescr.3 = STRING: The MIB module for managing TCP implementations
sysORDescr.4 = STRING: The MIB module for managing IP and ICMP implementations
sysORDescr.5 = STRING: The MIB module for managing UDP implementations
sysORDescr.6 = STRING: View-based Access Control Model for SNMP.
sysORDescr.7 = STRING: The SNMP Management Architecture MIB.
sysORDescr.8 = STRING: The MIB for Message Processing and Dispatching.
sysORDescr.9 = STRING: The management information definitions for the SNMP User-based Security Model.
sysORUpTime.1 = Timeticks: (27) 0:00:00.27
sysORUpTime.2 = Timeticks: (27) 0:00:00.27
sysORUpTime.3 = Timeticks: (27) 0:00:00.27
sysORUpTime.4 = Timeticks: (27) 0:00:00.27
sysORUpTime.5 = Timeticks: (27) 0:00:00.27
sysORUpTime.6 = Timeticks: (27) 0:00:00.27
sysORUpTime.7 = Timeticks: (27) 0:00:00.27
sysORUpTime.8 = Timeticks: (27) 0:00:00.27
sysORUpTime.9 = Timeticks: (27) 0:00:00.27
End of MIB

When I walk a working computer, I get this:
10hz:/etc/snmp# snmpwalk -Os -c public -v 1 192.168.0.69 system
sysDescr.0 = STRING: Hardware: x86 Family 15 Model 107 Stepping 1 AT/AT COMPATIBLE - Software: Windows 2000 Version 5.1 (Build 2600 Multiprocessor Free)
sysObjectID.0 = OID: enterprises.311.1.1.3.1.1
sysUpTimeInstance = Timeticks: (824795) 2:17:27.95
sysContact.0 = STRING:
sysName.0 = STRING: 20HZ
sysLocation.0 = STRING:
sysServices.0 = INTEGER: 76

I've found this problem out there a great many times, but not a solution so far.  Surely it's just a config change that needs made in the config maybe?

Thanks in advance!

Start your free trial to view this solution
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Question Stats
Zone: OS
Question Asked By: archaic0
Solution Provided By: decoleur
Participating Experts: 1
Solution Grade: A
Views: 115
Translate:
Loading Advertisement...
 
[+][-]Expert Comment by decoleur
Expert Comment by decoleur:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by archaic0
Author Comment by archaic0:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by archaic0
Author Comment by archaic0:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by decoleur
Expert Comment by decoleur:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by archaic0
Author Comment by archaic0:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by archaic0
Author Comment by archaic0:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Accepted Solution by decoleur
Accepted Solution by decoleur:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by archaic0
Author Comment by archaic0:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Open Discussion
Open Discussion
null
Comment by decoleur
thanks, if I could add my 2 cents on your conclusions...

I think they were spot on, the second part is where you tie a "security model" with a version of snmp (v1, v2c, usm aka v3) and the type of access (RO or RW). The third is where you explicitely define how the security model is authenticated and what resources it has access to. You could use this if you wanted to set up a monitor that only had access to a restricted set of information.
 
null
Comment by archaic0
Yeah, things always make more sense once you figure them out, I should post my own tutorial on how to get MRTG working and make sure to include this part about getting SNMP to work on a linux box.  Maybe it's just debian that defaults this way.  I know in previous years the defaults were good enough because the last time I set up MRTG I didn't have a single problem with monitoring the localhost and all I did was apt-get snmpd.  I guess they've opted for a more secure default now.  I guess that's better... right?

Thanks again for your help.
 
 
20080723-EE-VQP-34 / EE_QW_Related_20080208