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!