[Pkg-net-snmp-devel] Bug#968992: snmpd service file blocks loading of all MIBS

Paul Rensing agent at cimetrics.com
Tue Aug 25 14:50:04 BST 2020


Package: snmpd
Version: 5.7.3+dfsg-5+deb10u1
Severity: normal

Dear Maintainer,

The shipped systemd service file in /lib/systemd/system/snmpd.service *forces* the
environment variable MIBS to be blank. There appears to be no system in place to
override this and allow loading of MIBS.

In older versions, this was set in /etc/default/snmpd; however that file is now ignored.
If I edit /lib/systemd/system/snmpd.service, it gets wiped out during an upgrade (yes, correct behavior).
For now, I have copied it to the /etc/systemd directory, but this seems wrong because
I won't get any subsequent changes to the service file.

I tried using the method "systemd edit snmpd.service" but this did not work; don't know why.

snmpd needs to load MIBS, otherwise it is pretty useless (or at lease unfriendly). I have
never really understood why Debian ships with all MIBS blocked, but at least, it needs a
clear and approved method of undoing that.

-- System Information:
Debian Release: 10.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-10-amd64 (SMP w/2 CPU cores)
Kernel taint flags: TAINT_CRAP
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages snmpd depends on:
ii  adduser                3.118
ii  debconf [debconf-2.0]  1.5.71
ii  libc6                  2.28-10
ii  libmariadb3            1:10.3.23-0+deb10u1
ii  libsnmp-base           5.7.3+dfsg-5+deb10u1
ii  libsnmp30              5.7.3+dfsg-5+deb10u1
ii  lsb-base               10.2019051400

snmpd recommends no packages.

Versions of packages snmpd suggests:
pn  snmptrapd  <none>

-- Configuration Files:
/etc/default/snmpd changed:

/etc/snmp/snmpd.conf [Errno 13] Permission denied: '/etc/snmp/snmpd.conf'

-- debconf information:
  snmpd/upgradefrom521:



More information about the Pkg-net-snmp-devel mailing list