Re: clarrification on "agentaddress" in snmpd.conf

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Thu, 2005-10-13 at 15:28 +0800, Ronnel P. Maglasang wrote:
> Anyways, here's the dump of snmpd with the "-Dread_config" option.
> 
> $ ./snmpd -Dread_config -c /usr/local/etc/snmp/snmpd.conf

> read_config: reading premib configuration tokens
> read_config: config path 
> used:/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/root/.snmp:/var/net-snmp

And there's your problem.
/usr/local/etc/snmp is on the default search path, so the agent is
*already* reading the file /usr/local/etc/snmp/snmpd.conf

The option '-c /usr/local/etc/snmp/snmpd.conf' tells the agent to
explicitly read this file a second time - exactly as I suggested.

That's what's causing the agent to try and open the same port twice
(and hence failing).   You only need '-c' if you want to add *extra*
config files - not those in the standard locations.

Dave


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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.