On Thu, 17 Nov 2016 07:20:04 +0000 fx wrote:
FYB> PROBLEM:
FYB> I downloaded the net-snmp 5.7.3 source, compiled and installed
FYB> snmp on my Ubuntu 16.04. Before this I also installed snmp,
FYB> snmpd, snmptrapd through apt-get install command.

If you are installing your own, I strongly recommend that you use
prefixes to completely separate the two installations. e.g.

 --prefix=/usr/local/test \
 --with-persistent-directory=/usr/local/test/var/net-snmp \
 --with-logfile=/usr/local/test/var/log/snmpd.log


FYB> Then, the problem comes again. The /snmp.me/sbin/snmpd also
FYB> refers to the system config file (/etc/snmp/snmpd.conf). I
FYB> hope to specify the user config file(/snmp.me/etc/snmpd.conf)
FYB> by the -c option, But it always failed.

You need the -C option to ignore the default configuration file (or
use --prefix during configure to change its path).

Robert

------------------------------------------------------------------------------
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to