LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 06-21-2009, 09:08 PM   #1
wooonix
LQ Newbie
 
Registered: Mar 2009
Posts: 11

Rep: Reputation: 0
snmp problem, regarding snmpwalk, please help


Hello, have a problem with SNMP, was wondering if any had a similar problem or just knows the solution.

I had set up the snmp daemon before on fedora 10 and CentOS. I have arch linux on my laptop ( i love arch for my personal distro outside of work, but am still kinda noob at it. as I became an Arch user about a month ago)


Any help from more experienced linux users would be greatly appreciated.

So anyways, I installed net-snmp and its dependencies via arch's package management tool; Pacman -S net-snmp. I ran snmpconf -r none -g basic_setup and followed the directions (like i have in the past) at http://net-snmp.sourceforge.net/tutoria … snmpd.html


but when I try:

snmpwalk -v 1 -c public localhost ..i get the following response: 'Timeout: No Response from localhost'
I have snmpd running, and checked via ps ax | grep snmp.


Code:
 woonasty ~  $  snmpd -Dread_config -H 2>&1 | grep "config path" | sort -u

read_config:  config path used for agentx:/etc/snmp:/usr/share/snmp:/usr/lib/snmp:/home/woonasty/.snmp (persistent path:/var/net-snmp)
read_config:  config path used for agentx:/var/net-snmp (persistent path:/var/net-snmp)
read_config:  config path used for snmp:/etc/snmp:/usr/share/snmp:/usr/lib/snmp:/home/woonasty/.snmp (persistent path:/var/net-snmp)
read_config:  config path used for snmp:/var/net-snmp (persistent path:/var/net-snmp)
read_config:  config path used for snmpd:/etc/snmp:/usr/share/snmp:/usr/lib/snmp:/home/woonasty/.snmp (persistent path:/var/net-snmp)
read_config:  config path used for snmpd:/var/net-snmp (persistent path:/var/net-snmp)
running snmpd -Dread_config -H 2>&1 | grep "Reading" | sort -u ..gave me this:

Code:
woonasty /etc/snmp  $  snmpd -Dread_config -H 2>&1 | grep "Reading" | sort -u
read_config: Reading configuration /etc/snmp/snmpd.conf
/etc/hosts.allow is empty
/etc/hosts.deny is empty
and i did a iptables -F

also for the /etc/hosts file I have:


Code:
woonasty /etc  $  uname -a
Linux darkstar 2.6.29-ARCH #1 SMP PREEMPT Wed May 20 07:06:02 UTC 2009 i686 Intel(R) Pentium(R) M processor 1.50GHz GenuineIntel GNU/Linux
woonasty /etc  $  cat /etc/hosts
#
# /etc/hosts: static lookup table for host names
#

#<ip-address>    <hostname.domain.org>    <hostname>
127.0.0.1        localhost.localdomain     localhost darkstar

# End of file
woonasty /etc  $
Once again, any help is greatly greatly greatly appreciated and will be remembered, Thanks all for your time!

-woo-
 
Old 06-24-2009, 07:16 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 115Reputation: 115
an strace might tell you where it is failing

anyway, does your community string match that of the one in snmpd.conf?
errm...also...what clues are in the log files?
i am a firm believer of check the relevant log files first

Last edited by centosboy; 06-24-2009 at 07:17 AM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Net-SNMP writing a Subagent - snmp.conf Unknown token: master AustinMarton Programming 0 12-18-2008 03:44 AM
SNMP: snmpwalk giving dissimilar results jaredboyd Linux - Networking 0 09-24-2008 08:44 PM
SNMP master & SNMP client Script for system monitoring ratul_11 Programming 1 12-24-2007 05:32 AM
MRTG cfgmaker Error SNMPwalk problem manish_2479 Linux - Networking 3 07-10-2007 03:48 PM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 10:45 AM


All times are GMT -5. The time now is 08:05 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
Open Source Consulting | Domain Registration