LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-05-2003, 06:03 AM   #1
jasonmok
LQ Newbie
 
Registered: Aug 2003
Posts: 1

Rep: Reputation: 0
Exclamation SNMP Response Error: noSuchName


I am using RedHat 9, mrtg-2.9.17-13 and net-snmp-5.0.6-17
I am sure my mrtg conf is no problem. And I think this about snmp setting. But I don't how to set snmp.

Pls help me to solve this problem and teach me how to set snmp.
thx

When I run this
[root@ns1 mrtg]# mrtg mrtg.cfg
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 2 (OID: 1.3.6.1.2.1.2.2.1.16.1)
SNMPv1_Session (remote host: "ns1.xxx.com" [127.0.0.1].161)
community: "public"
request ID: 1622863907
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 450
SNMPGET Problem for ifInOctets.1 ifOutOctets.1 sysUptime sysName on
public@ns1.xxx.com:
at /usr/bin/mrtg line 1491
WARNING: Expected a number but got ''
WARNING: Expected a number but got ''
 
Old 08-23-2003, 04:59 AM   #2
RowNetCom
LQ Newbie
 
Registered: Aug 2003
Posts: 5

Rep: Reputation: 0
I too am trying to get Redhat Linux (7.3 in this case) to provide MRTG graphs of its bandwidth usage. It seems the correct way to do this is to configure and start the SNMP daemon. Then configure and run the mrtg process via cron.

However, when trying to run the MRTG manually for the first time, I also receive the same error, and after many searches on the net, I see MANY people have posted this exact same question, but NO ONE has ever answered it. And here again, on the LinuxQuestions Forum, no answer exists.

Is it possible that SNMP exists on Redhat to be accessed by an external source, and MRTG is used to access outside routers, but the two shall never work together under Linux on the same machine????

Has ANYONE ever gotten this to work?

Last edited by RowNetCom; 08-23-2003 at 05:02 AM.
 
Old 08-23-2003, 06:07 PM   #3
RowNetCom
LQ Newbie
 
Registered: Aug 2003
Posts: 5

Rep: Reputation: 0
Solution Found

After a few more hours searching the net, I found the solution.

The default settings of the SNMP were too restrictive for MTRG to access what it needed. Here is the revised section of the snmpd.conf file:

Code:
####
# First, map the community name "public" into a "security name"

#       sec.name  source          community
com2sec linuxbox  default       public

####
# Second, map the security name into a group name:

#       groupName      securityModel securityName
group   mrtggrp v1           linuxbox
group   mrtggrp v2c          linuxbox

####
# Third, create a view for us to let the group have rights to:

#       name           incl/excl     subtree         mask(optional)
view    mrtgview        included        .1          80

####
# Finally, grant the group read-only access to the systemview view.

#       group          context sec.model sec.level prefix read   write  notif
access  mrtggrp ""      any       noauth    exact  mrtgview none none

# -----------------------------------------------------------------------------
 
Old 11-23-2003, 02:29 AM   #4
BlackTSB
LQ Newbie
 
Registered: Oct 2003
Posts: 9

Rep: Reputation: 0
that's right
 
Old 03-19-2004, 10:28 PM   #5
rstory
LQ Newbie
 
Registered: Mar 2004
Posts: 21

Rep: Reputation: 15
Quote:
Originally posted by RowNetCom
The default settings of the SNMP were too restrictive for MTRG to access what it needed. Here is the revised section of the snmpd.conf file:
[/CODE]

Even simple, for more recent versions of net-snmp, is :

rocommunity public
 
Old 04-08-2004, 08:33 AM   #6
spank
Member
 
Registered: Aug 2003
Location: Romania
Distribution: Ubuntu 6.06
Posts: 278

Rep: Reputation: 30
Unhappy

I have the same problem... but with the snmpd.conf that you posted it still doesnt work.. i have rh 9.
Please help!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
response timeout by snmp agent anubhuti_k Linux - Networking 0 02-20-2005 03:15 AM
NO-response-SNMP ahmed4linux Linux - General 1 11-06-2004 03:01 AM
SNMP error when running MRTG: no response zhgalaxy Linux - General 2 04-02-2004 04:33 AM
error message when run MRTG: SNMP error zhgalaxy Linux - Newbie 0 02-18-2004 12:08 PM
snmp :- No response, request timedout Pranesh Linux - Software 0 09-08-2003 08:51 AM


All times are GMT -5. The time now is 01:37 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration