With default PREFIX="/usr/local", pkg-message suggests:
But by default snmpd also searches and reads snmpd.conf from the following directories:
If a user choose to use "/usr/local/share/snmp/snmpd.conf",
that file would be read and processed twice, which is unnecessary,
or sometimes causes snmpd unable to start.
For example in "/usr/local/share/snmp/snmpd.conf.example",
the following line configure listening address:
If it is in "/usr/local/share/snmp/snmpd.conf", snmpd will bind on udp:127.0.0.1:161 twice and fail with log messages:
"Error opening specified endpoint "udp:127.0.0.1:161"
Server Exiting with code 1"
I suggest change $snmpd_conffile in pkg-mesasge.in to:
Or something not conflict with the above default search paths.