Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jan 2017 11:11:48 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 216175] net-mgmt/net-snmp problematic $snmpd_conffile in pkg-message
Message-ID:  <bug-216175-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216175

            Bug ID: 216175
           Summary: net-mgmt/net-snmp problematic $snmpd_conffile in
                    pkg-message
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: zi@FreeBSD.org
          Reporter: yongjhen@fastmailbox.net
             Flags: maintainer-feedback?(zi@FreeBSD.org)
          Assignee: zi@FreeBSD.org

With default PREFIX=3D"/usr/local", pkg-message suggests:

snmpd_conffile=3D"/usr/local/share/snmp/snmpd.conf /etc/snmpd.conf"

But by default snmpd also searches and reads snmpd.conf from the following
directories:
/usr/local/etc/snmp
/usr/local/share/snmp
/usr/local/lib/snmp
$HOME/.snmp

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:

agentAddress  udp:127.0.0.1:161

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:
snmpd_conffile=3D"%%PREFIX%%/etc/snmpd.conf /etc/snmpd.conf"

Or something not conflict with the above default search paths.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216175-13>