LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-28-2007, 09:56 AM   #1
deadeyes
Member
 
Registered: Aug 2006
Posts: 609

Rep: Reputation: 79
snmpwalk ok from localhost; fails from other hosts


Hi all,

I have installed snmpd and snmp packages with apt-get.

I read a howto and it told me that if I only put "rocommunity public" in snmpd.conf that I am able to query the host from the localhost but also from other hosts.

I tried that. From localhost I had no problems. From another host I get "Timeout: No Response from 192.168.192.xxx".
I tried with different hosts. But the hosts all gave the same message.

After that I checked watched the network traffic with wireshark.
I saw this immidiately:
Code:
Source: 192.168.192.79
Destination: 192.168.192.67
Protocol: ICMP
Info: Destination unreachable (Port unreachable)
The firewall is off on both the host and the computer where I want to do the querys.
I can ping from both to both computers.
I scanned the udp ports with nmap from the computers who dont run snmpd. I didn't saw the port.

So I looked with "ps aux | grep snmpd" and saw:
Code:
/usr/sbin/snmpd -Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1
At the end of the line you see 127.0.0.1. I'm almost 100% shure this is the problem.
I looked in the man-page and read about the listening address. But I can't seem to find where I should change this listening address.
I tried changing the init.d script without success.
I then stopped the service and tried:
/usr/sbin/snmpd -Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid udp:161
And this solved it I am so happy right now (I searched for 5hours on this )


Now, I really want that it is standard this way. So if I start the init.d script that it starts with udp:161 at the end.

Who can help me?

THanks in advance!
 
Old 03-15-2007, 06:59 AM   #2
bwright72
LQ Newbie
 
Registered: Mar 2007
Posts: 1

Rep: Reputation: 0
Hope you have a reply by now

Hopefull you have sorted this problem...

If not check out /etc/defaults/snmpd

Simply remove the 127.0.0.1
 
Old 03-16-2007, 02:09 AM   #3
deadeyes
Member
 
Registered: Aug 2006
Posts: 609

Original Poster
Rep: Reputation: 79
Quote:
Originally Posted by bwright72
Hopefull you have sorted this problem...

If not check out /etc/defaults/snmpd

Simply remove the 127.0.0.1
Yes I did

I forgot to post it here:s

Thanks!
 
  


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
RHEL 2.6.9-5EL , etc/hosts localhost removed mikeman1 Linux - Enterprise 3 12-22-2006 09:29 PM
php fails to find localhost anindyanuri Programming 6 03-19-2005 09:03 AM
Localhost login fails Captain_Wally Linux - Newbie 0 12-03-2004 01:43 PM
Can't ping localhost (/etc/hosts and DNS are OK) Mr. Gone Linux - Networking 9 10-16-2004 03:05 PM
SSH To IP Address Fails - Localhost Works ViragoRider Linux - Newbie 7 10-03-2003 07:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration