You are not logged in.

#1 2009-06-21 15:47:53

woo_ying
Member
Registered: 2009-06-21
Posts: 1

snmp problem, with 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 just 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 users would be greatly appreciated.

So anyways, I installed net-snmp and its dependencies via 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.

 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:

woonasty /etc/snmp  $  snmpd -Dread_config -H 2>&1 | grep "Reading" | sort -u
read_config: Reading configuration /etc/snmp/snmpd.conf

hosts.allow is empty
hosts.deny is empty
and i did a iptables -F

also for the /etc/hosts file I have:

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-

Offline

#2 2011-05-05 06:30:10

jijunlx
Member
Registered: 2011-05-05
Posts: 1

Re: snmp problem, with snmpwalk, please help

ooh,
I think you should add:

snmpd : All : ALLOW

in /etc/hosts.allow
and then: /etc/rc.d/snmpd restart
wink

Offline

Board footer

Powered by FluxBB