Le jeudi 07 décembre 2006 à 22:11 +0100, Peter de Kraker a écrit :
> Hello,
> 
> I am a Ubuntu Edgy user and I am setting up snmpd on all my pc's and 
> servers.
> I had a lot of trouble enabling remote snmp requests. I found out that 
> the default behaviour of the Ubuntu version of snmpd is that it binds 
> itself to 127.0.0.1 thus denying remote requests.
> 
> The only way I could get it to work was to edit the /etc/default/snmpd 
> configuration line:
> Default settings included: SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I 
> -smux -p /var/run/snmpd.pid 127.0.0.1'
> Changing the 127.0.0.1 to 0.0.0.0 solved my problem.
> 
> I really think this is an ugly hack, but I am not skilled enough to 
> conclude that this hardcoded setting cannot be overruled by a option in 
> /etc/snmp/snmpd.conf
> I tried "agentaddress udp:161" and "agentaddress 
> udp:161,tcp:161,udp6:161,tcp6:161"  but these gave server errors.

This isn't an ugly hack. This options file has been designed to be
modified by local administrator.

> Could somebody with more knowledge of snmpd configuration stuff tell me 
> if this hardcoded /etc/default/snmpd config file is indeed different 
> from the standard configuration of snmpd? Is this line indeed causing 
> the binding to only 127.0.0.1 instead of the default behaviour to bind 
> to all interfaces? Can it be overruled with an option in 
> /etc/snmp/snmpd.conf?

This file is specific to Debian distribution. Ubuntu is based on Debian.
Many services has been packaged with default configuration options file
support into theses distributions. This is a way to modify startup
options without alter init script directly.

> I will file a bugreport on Ubuntu if it only can be solved by editing 
> the  /etc/default/snmpd file. First I need some confirmation on the subject.

On Ubuntu, most services has been designed to listen localhost only by
default. I don't think you "bug" will be solved. You always have to
modify /etc/default/snmpd if default options doesn't match yours needs.

Regards, 

-- 
Raphaël 'SurcouF' Bordet 
http://debianfr.net/ | JID: surcouf at debianfr dot net



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to