Port details on branch 2024Q3 |
- net-snmp Extendable SNMP implementation
- 5.9.4_6,1 net-mgmt =251 5.9.4_6,1Version of this port present on the latest quarterly branch.
- Maintainer: zi@FreeBSD.org
- Port Added: 2004-02-23 04:43:25
- Last Update: 2024-07-19 18:04:28
- Commit Hash: 9364edf
- People watching this port, also watch:: libiconv, expat, gmake, gettext, freetype2
- License: BSD3CLAUSE
- WWW:
- http://net-snmp.sourceforge.net/
- Description:
- This is Net-SNMP (previously known as "ucd-snmp").
Various tools relating to the Simple Network Management Protocol including:
An extensible agent
An SNMP library
tools to request or set information from SNMP agents
tools to generate and handle SNMP traps
a version of the Unix 'netstat' command using SNMP
a graphical Perl/Tk/SNMP based mib browser
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- net-snmp>0:net-mgmt/net-snmp
- Conflicts:
- CONFLICTS:
- ucd-snmp-4.*
- net-snmp-5.3.*
- To install the port:
- cd /usr/ports/net-mgmt/net-snmp/ && make install clean
- To add the package, run one of these commands:
- pkg install net-mgmt/net-snmp
- pkg install net-snmp
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: net-snmp
- Flavors: there is no flavor information for this port.
- NOT_FOR_ARCHS: mips mips64
- distinfo:
- TIMESTAMP = 1709374659
SHA256 (net-snmp-5.9.4.tar.gz) = 8b4de01391e74e3c7014beb43961a2d6d6fa03acc34280b9585f4930745b0544
SIZE (net-snmp-5.9.4.tar.gz) = 6681606
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- perl5>=5.36<5.37 : lang/perl5.36
- Runtime dependencies:
-
- perl5>=5.36<5.37 : lang/perl5.36
- This port is required by:
- for Build
-
- net-mgmt/pandorafms_server
- net-mgmt/snmp4nagios
-
Deleted ports which required this port:
- for Libraries
-
- net/asterisk18
- net/asterisk20
- net/ptpd2
- net/rtg
- net-mgmt/cacti-spine
- net-mgmt/cacti88-spine
- net-mgmt/docsis
-
Deleted ports which required this port:
- for Run
-
- net-mgmt/librenms
- net-mgmt/mysql-snmp
- net-mgmt/observium
- net-mgmt/p5-SNMP-Simple
- net-mgmt/p5-SNMP-Util
- net-mgmt/pandorafms_server
- net-mgmt/py-snmp_passpersist
-
Deleted ports which required this port:
- * - deleted ports are only shown under the This port is required by section. It was harder to do for the Required section. Perhaps later...
Configuration Options:
- ===> The following configuration options are available for net-snmp-5.9.4_6,1:
AX_DISABLE_TRAP=off: Disable agentx subagent code in snmptrapd
AX_SOCKONLY=off: Disable UDP/TCP transports for agentx
DOCS=on: Build and/or install documentation
DUMMY=on: Enable dummy values as placeholders
MFD_REWRITES=off: Use new MFD rewrites of mib modules
MYSQL=off: MySQL database support
NEWSYSLOG=on: Automatically rotate snmpd.log via newsyslog
NOLIBPKG=off: Build without libpkg
PERL=on: Perl scripting language support
PERL_EMBEDDED=on: Build embedded perl
PYTHON=off: Python bindings or support
SCTP=off: Build with SCTP MIB support
SMUX=on: Build with SNMP multiplexing (SMUX) support
TKMIB=off: Install graphical MIB browser
TLS=off: Secure network connection support via TLS
UNPRIVILEGED=off: Allow unprivileged users to execute net-snmp
===> Use 'make config' to modify these settings
- Options name:
- net-mgmt_net-snmp
- USES:
- cpe libtool perl5 ssl
- pkg-message:
- For install:
- **** This port installs snmpd, header files and libraries but does not
start snmpd by default.
If you want to auto-start snmpd and snmptrapd, add the following to
/etc/rc.conf:
snmpd_enable="YES"
snmpd_flags="-a"
snmpd_conffile="/usr/local/share/snmp/snmpd.conf /etc/snmpd.conf"
snmptrapd_enable="YES"
snmptrapd_flags="-a -p /var/run/snmptrapd.pid"
**** You may also specify the following make variables:
NET_SNMP_SYS_CONTACT="zi@FreeBSD.org"
NET_SNMP_SYS_LOCATION="USA"
DEFAULT_SNMP_VERSION=3
NET_SNMP_MIB_MODULES="host smux mibII/mta_sendmail ucd-snmp/diskio"
NET_SNMP_LOGFILE=/var/log/snmpd.log
NET_SNMP_PERSISTENTDIR=/var/net-snmp
to define default values (or to override the defaults). To avoid being
prompted during the configuration process, you should (minimally) define
the first two variables. (NET_SNMP_SYS_*)
You may also define the following to avoid all interactive configuration:
BATCH="yes"
- If upgrading
- snmpd now drops privileges by default after initialization is completed.
Ensure that any extension commands defined in your snmpd.conf can be executed
by the snmpd user.
It is possible to start and run snmpd entirely as a non-root user with the
following steps:
1. Add the following lines to /etc/rc.conf:
snmpd_user="snmpd"
snmpd_group="snmpd"
snmpd_pidfile="/var/net-snmp/snmpd.pid"
2. Configure the mac_portacl(4) kernel module:
a. Load mac_portacl.ko at boot time by adding the following line to
/etc/rc.conf:
kld_list="mac_portacl"
b. Configure the following sysctls in sysctl.conf(5):
net.inet.ip.portrange.reservedhigh=0
security.mac.portacl.rules=gid:344:udp:161,gid:344:tcp:161,gid:344:tcp:199,gid:344:tcp:705
This allows snmpd to bind to these privileged ports without holding
special privileges.
3. Make sure that the snmpd user has read/write or read-only access to the
following:
RW - /var/log/snmpd.log
RW - /var/net-snmp/*
RO - /usr/local/share/snmp/*
Note that snmpd creates the /var/net-snmp directory upon its initial
startup, and this cannot be done by the snmpd user.
4. Ensure that any and all extension commands defined in snmpd.conf can be
executed by the snmpd user.
- Master Sites:
|