[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SOLVED] Re: snmpd lauscht nur lokal?



Ingo Juergensmann wrote:
Mac Ortis wrote:
wie bekomme ich den snmpd dazu auf alle ports zu lauschen und nicht nur
lokal?

Schau mal in /etc/default/snmpd.

Dank dir, das habe ich gebraucht..


Mini howto:

Erstmal testen:

netstat -taupen |grep snmpd

#netstat -taupen |grep snmp
udp 0 0 127.0.0.1:161 0.0.0.0:* 0 1312369 5552/snmpd

Also kein TCP und UDP lauscht nur auf UDP


Editieren:

nano -w /etc/default/snmpd

Auskomentieren:
#SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'

Neu eintragen
SNMPDOPTS='-Lsd -Lf /dev/null -p /var/run/snmpd.pid'

/etc/init.d/snmpd restart

netstat -taupen |grep snmpd

So sollte es dann aussehen!
# netstat -taupen |grep snmpd
tcp 0 0 0.0.0.0:199 0.0.0.0:* LISTEN 0 1315189 5625/snmpd udp 0 0 0.0.0.0:161 0.0.0.0:* 0 1315190 5625/snmpd








Reply to: