|
|
9a6c41 |
978398 - net-snmp does not honor configuration file look-ups as specified in man
|
|
|
9a6c41 |
|
|
|
9a6c41 |
commit 9bd0413bfbdcd845413c135bbff8771fa7130809
|
|
|
9a6c41 |
Author: Jan Safranek <jsafranek@users.sourceforge.net>
|
|
|
9a6c41 |
Date: Mon Feb 11 11:57:01 2013 +0100
|
|
|
9a6c41 |
|
|
|
9a6c41 |
Explicitly enumerate configuration files.
|
|
|
9a6c41 |
|
|
|
9a6c41 |
The generic conf and local.conf extensions were interpreted as my.snmp.conf and my.other.snmp.local.conf by some customers.
|
|
|
9a6c41 |
|
|
|
9a6c41 |
diff -up net-snmp-5.7.2/man/snmp_config.5.defptch net-snmp-5.7.2/man/snmp_config.5.def
|
|
|
9a6c41 |
--- net-snmp-5.7.2/man/snmp_config.5.defptch 2013-06-26 16:14:33.039284390 +0200
|
|
|
9a6c41 |
+++ net-snmp-5.7.2/man/snmp_config.5.def 2013-06-26 16:14:49.616233272 +0200
|
|
|
9a6c41 |
@@ -11,9 +11,10 @@ found and read from. By default, the ap
|
|
|
9a6c41 |
configuration files in the following 4 directories, in order:
|
|
|
9a6c41 |
SYSCONFDIR/snmp,
|
|
|
9a6c41 |
DATADIR/snmp, /usr/lib(64)/snmp, and $HOME/.snmp. In each of these
|
|
|
9a6c41 |
-directories, it looks for files with the extension of both
|
|
|
9a6c41 |
-.IR conf " and " local.conf
|
|
|
9a6c41 |
-(reading the second ones last). In this manner, there are
|
|
|
9a6c41 |
+directories, it looks for files snmp.conf, snmpd.conf and/or
|
|
|
9a6c41 |
+snmptrapd.conf, as well as snmp.local.conf, snmpd.local.conf
|
|
|
9a6c41 |
+and/or snmptrapd.local.conf. *.local.conf are always
|
|
|
9a6c41 |
+read last. In this manner, there are
|
|
|
9a6c41 |
8 default places a configuration file can exist for any given
|
|
|
9a6c41 |
configuration file type.
|
|
|
9a6c41 |
.PP
|