Yes you were right. The problem was that it was started with localhost
parameter. And it was the startup script /etc/init.d/snmpd that added this
parameter. So finally I had to edit /etc/init.d/snmpd and replace
"start-stop-daemon --start....$OPTIONS..." with plain "/usr/sbin/snmpd -Lsd -Lf
/dev/null -p /var/run/snmpd.pid" and localhost parameter was gone for good.
$OPTIONS did not specify localhost parameter so I could not remove it that way.
It looks like "start-stop-daemon" automatically inserted localhost parameter at
the end. I have another installation on CentOS RedHat and this problem did not
exist there. It only happened on my Ubuntu 9.04, so it seems like Debian
distribution did not configure snmpd correctly and it was preventing remote
connections thru its startup script.
Thanks for your feedback.
Dzenan
-----Original Message-----
From: dave.shi...@googlemail.com on behalf of Dave Shield
Sent: Fri 7/9/2010 5:51 PM
To: Dzenan Causevic
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: How to I make snmpd agent allow remote connectios
On 8 July 2010 13:17, Dzenan Causevic <dzenan.cause...@bstelecom.ba> wrote:
>
> I only installed SNMP agent on my Ubuntu 9.04 but it allows only connections
> from localhost. How do I make it allow remote connections as well?
Check how the agent is being started. In particular, what options it
is started with.
If there's a parameter such as "localhost" or "localhost:161", then delete this
and restart the agent.
By default, the agent will listen on the standard port on all
available interfaces.
But if you explicitly specify a list of ports, then it will only
listen on those.
I don't use Ubuntu myself, so I don't know how this is configured there.
But on a Fedora/RedHat system, it would typically be controlled via
/etc/sysconfig/snmpd
Dave
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users