Package: snmptrapd Version: 5.7.3+dfsg-1.7 Severity: normal Dear Maintainer,
I have to use the snmptrapd with some special mib-files from the vendors of my hardware suppliers (like Dell, Brocate, Enterasys, Sun, Rittal, ...). Therefor I defined the MIBSDIR environment variable on my own in the file /etc/default/snmptrapd. With the introduction of systemd there is a systemd service unit file provided in the package snmptrapd, located at /lib/systemd/system/snmptrapd.service Unfortunately this file contains the environment MIBSDIR hard coded. Because I would prefer to change only files in /etc for configuration issues I would ask, if you can change the systemd service unit file like this: --- [Unit] Description=Simple Network Management Protocol (SNMP) Trap Daemon. After=network.target ConditionPathExists=/etc/snmp/snmptrapd.conf [Service] EnvironmentFile=/etc/default/snmptrapd Type=simple ExecStart=/usr/sbin/snmptrapd -f $TRAPDOPTS ExecReload=/bin/kill -HUP $MAINPID [Install] WantedBy=multi-user.target --- With the parameter EnvironmentFile you can read the configuration from /etc/default/snmptrapd and so you only have one file for the old and the new init way. I hope this helps and you can realize again the flexibility of the configuration. Best regards, Ingo Rauschenberg -- 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/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages snmptrapd depends on: ii init-system-helpers 1.48 ii libc6 2.24-11+deb9u1 ii libmariadbclient18 10.1.26-0+deb9u1 ii libsnmp30 5.7.3+dfsg-1.7 ii libwrap0 7.6.q-26 ii snmpd 5.7.3+dfsg-1.7 ii zlib1g 1:1.2.8.dfsg-5 Versions of packages snmptrapd recommends: ii perl 5.24.1-3+deb9u2 snmptrapd suggests no packages. -- Configuration Files: /etc/default/snmptrapd changed: MIBSDIR=/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp:/etc/snmp/mibs/Dell:/etc/snmp/mibs/SUN:/etc/snmp/mibs/APC:/etc/snmp/mibs/SUN-MC:/etc/snmp/mibs/Brocade_Fabric_OS_v7.0.2d:/etc/snmp/mibs/Infortrend:/etc/snmp/mibs/Rittal:/etc/snmp/mibs/enterasys MIBS=ALL TRAPDRUN=yes TRAPDOPTS="-Lsd -c /etc/snmp/snmptrapd.conf" /etc/snmp/snmptrapd.conf changed: disableAuthorization yes traphandle default /usr/bin/perl /etc/a1-management/snmp/print_traps.pl -- no debconf information