/etc/default/snmpd configuration

Peter de Kraker <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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.

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?

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.

Thanks in advance,

Peter, Netherlands



-------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.