[Pkg-net-snmp-devel] Bug#771906: snmpd: systemd and snmpd bad configuration

christian bac christian.bac at telecom-sudparis.eu
Mon Feb 12 13:45:50 UTC 2018

Package: snmpd
Version: 5.7.3+dfsg-1.7
Followup-For: Bug #771906

Dear Maintainer,
by trying to disable log for snmpd, we first modified
/etc/default/snmpd line 15 that contains SNMPDOPTS.
This did not modified the service behavior after :  
service snmpd stop
service snmpd start

Then we checked that /etc/default/snmpd was used by /etc/init.d/snmpd.
Seemed it was good.
Finaly, we found that /lib/systemd/system/snmpd.service contains the
following line :
ExecStart=/usr/sbin/snmpd -Lsd -Lf /dev/null -u Debian-snmp -g
p -I -smux,mteTrigger,mteTriggerConf -f

This line does not use the configuration from /etc/default and this is
no use to modify the file in /etc/default.

Best regards

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

Kernel: Linux 4.9.0-5-amd64 (SMP w/32 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages snmpd depends on:
ii  adduser                3.115
ii  debconf [debconf-2.0]  1.5.61
ii  init-system-helpers    1.48
ii  libc6                  2.24-11+deb9u1
ii  libsnmp-base           5.7.3+dfsg-1.7
ii  libsnmp30              5.7.3+dfsg-1.7
ii  lsb-base               9.20161125

snmpd recommends no packages.

Versions of packages snmpd suggests:
pn  snmptrapd  <none>

-- Configuration Files:
/etc/default/snmpd changed [not included]
/etc/init.d/snmpd changed [not included]
/etc/snmp/snmpd.conf [Errno 13] Permission non accordée: '/etc/snmp/snmpd.conf'

-- debconf information:

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