Re: clarrification on "agentaddress" in snmpd.conf
"Ronnel P. Maglasang" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Dave Shield wrote: >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 > > Wooh! Great! Thanks. This maybe be worth adding to the man pages. Isn't it a BUG, can't snmpd just skip or disregard the same values for "agentaddress" it found (assuming thats the cause). We'll, just a though for the developers. I myself might try looking at the codes.
smime.p7s
(application/x-pkcs7-signature, 3.1 KB) - not displayed