Hello, everyone

This is Yan from Japan. I’m an software engineer of Fuji Xerox.
I encountered a net-snmp problem recently. Could you help me to solve it?

PROBLEM:
I downloaded the net-snmp 5.7.3 source, compiled and installed snmp on my 
Ubuntu 16.04.
Before this I also installed snmp, snmpd, snmptrapd through apt-get install 
command.

Then, there are two snmpd on my system.

1)     /etc/init.d/snmpd

(Installed from cmd)

2)     /snmp.me/sbin/snmpd
(Installed from source)

The config files location.

1)    /etc/snmp/snmpd.conf

(Installed from cmd)

2)    /snmp.me/etc/snmpd.conf
(Copied from source/EXAMPLE.conf)

If I start the command-installed snmpd, it works well.
Then I stop this snmpd service, and try to start source-installed snmpd using 
the following command.
/snmp.me/sbin/snmpd -Lsd -c /snmp.me/etc/snmpd.conf

It shows nothing on the command window, but the error is written in 
/var/log/syslog
(Please see the enclosed file user-specific-config-error.txt)

But if I start by this command, it can start.
/snmp.me/sbin/snmpd -f
-f :  Don’t fork() from calling shell.

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

Any help would be highly appreciated.
Thank you in advance.

Yan.


Nov 17 22:36:49 yokohama snmpd[3200]: Turning on AgentX master support. 

Nov 17 22:36:49 yokohama snmpd[3200]: /snmp.me/etc/snmp.med.conf: line 87: 
Error: Already have an entry for this process.

Nov 17 22:36:49 yokohama snmpd[3200]: /snmp.me/etc/snmp.med.conf: line 89: 
Error: Already have an entry for this process.

Nov 17 22:36:49 yokohama snmpd[3200]: /snmp.me/etc/snmp.med.conf: line 91: 
Error: Already have an entry for this process.

Nov 17 22:36:49 yokohama snmpd[3200]: /snmp.me/etc/snmp.med.conf: line 103: 
Error: includeAllDisks already specified.

Nov 17 22:36:49 yokohama snmpd[3200]: /snmp.me/etc/snmp.med.conf: line 103: 
Error: #011ignoring: includeAllDisks 10%

Nov 17 22:36:49 yokohama snmpd[3200]: error on subcontainer 'mteObjectsTable' 
insert (-1)

Nov 17 22:36:49 yokohama snmpd[3200]: error on subcontainer 'mteObjectsTable' 
insert (-1)

Nov 17 22:36:49 yokohama snmpd[3200]: /snmp.me/etc/snmp.med.conf: line 143: 
Error: duplicate trigger name

Nov 17 22:36:49 yokohama snmpd[3200]: error on subcontainer 'mteObjectsTable' 
insert (-1)

Nov 17 22:36:49 yokohama snmpd[3200]: error on subcontainer 'mteObjectsTable' 
insert (-1)

Nov 17 22:36:49 yokohama snmpd[3200]: /snmp.me/etc/snmp.med.conf: line 143: 
Error: duplicate trigger name

Nov 17 22:36:49 yokohama snmpd[3200]: error on subcontainer 'mteObjectsTable' 
insert (-1)

Nov 17 22:36:49 yokohama snmpd[3200]: error on subcontainer 'mteObjectsTable' 
insert (-1)

Nov 17 22:36:49 yokohama snmpd[3200]: /snmp.me/etc/snmp.med.conf: line 143: 
Error: duplicate trigger name

Nov 17 22:36:49 yokohama snmpd[3200]: error on subcontainer 'mteObjectsTable' 
insert (-1)

Nov 17 22:36:49 yokohama snmpd[3200]: error on subcontainer 'mteObjectsTable' 
insert (-1)

Nov 17 22:36:49 yokohama snmpd[3200]: /snmp.me/etc/snmp.med.conf: line 143: 
Error: duplicate trigger name

Nov 17 22:36:49 yokohama snmpd[3200]: error on subcontainer 'mteObjectsTable' 
insert (-1)

Nov 17 22:36:49 yokohama snmpd[3200]: error on subcontainer 'mteObjectsTable' 
insert (-1)

Nov 17 22:36:49 yokohama snmpd[3200]: /snmp.me/etc/snmp.med.conf: line 143: 
Error: duplicate trigger name

Nov 17 22:36:49 yokohama snmpd[3200]: error on subcontainer 'mteObjectsTable' 
insert (-1)

Nov 17 22:36:49 yokohama snmpd[3200]: error on subcontainer 'mteObjectsTable' 
insert (-1)

Nov 17 22:36:49 yokohama snmpd[3200]: /snmp.me/etc/snmp.med.conf: line 143: 
Error: duplicate trigger name

Nov 17 22:36:49 yokohama snmpd[3200]: error on subcontainer 'mteObjectsTable' 
insert (-1)

Nov 17 22:36:49 yokohama snmpd[3200]: /snmp.me/etc/snmp.med.conf: line 143: 
Error: duplicate trigger name

Nov 17 22:36:49 yokohama snmpd[3200]: /snmp.me/etc/snmp.med.conf: line 145: 
Error: duplicate trigger name

Nov 17 22:36:49 yokohama snmpd[3200]: /snmp.me/etc/snmp.med.conf: line 145: 
Error: duplicate trigger name

Nov 17 22:36:49 yokohama snmpd[3200]: duplicate table data attempted to be 
entered. row exists

Nov 17 22:36:49 yokohama snmpd[3200]: Failed to register extend entry 'test1' - 
possibly duplicate name.

Nov 17 22:36:49 yokohama snmpd[3200]: duplicate table data attempted to be 
entered. row exists

Nov 17 22:36:49 yokohama snmpd[3200]: Failed to register extend entry 'test2' - 
possibly duplicate name.

Nov 17 22:36:49 yokohama snmpd[3200]: Turning on AgentX master support.

Nov 17 22:36:49 yokohama snmpd[3200]: Error opening specified endpoint 
"udp:127.0.0.1:161"

Nov 17 22:36:49 yokohama snmpd[3200]: Server Exiting with code 1
------------------------------------------------------------------------------
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to