18.04 – ubuntu snmpd ignore / etc / default / snmpd

I just spent a day trying to run snmpd on Ubuntu 18 and I wanted to document my experience. In addition, there seems to be some problems with the startup files and I would like to know where to post the bugs.

the problem in short is:
Ubuntu prepares snmpd to start using systemd, which is fine, but the default configuration includes systemd files that are broken.

/lib/systemd/system/snmpd.service:
The service of origin def:

[Unit]

Description = Simple Network Management Protocol (SNMP) daemon.

After = network.target

ConditionPathExists = / etc / snmp / snmpd.conf

[Service]

Environment = "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

Environment = "MIBS ="

Type = simple ExecStartPre = / bin / mkdir -p / var / run / agentx

ExecStart = / usr / sbin / snmpd -Lsd -Lf / dev / null -u Debian-snmp -g Debian-snmp -I -smux, mteTrigger, mteTriggerConf -f

ExecReload = / bin / kill -HUP $ MAINPID

[Install]

WantedBy = multi -user.target

as you can see on the command line, this will launch snmpd with a set of arguments, but it seems to completely ignore / etc / default / snmpd (it took me hours to understand why my changes were made at snmpd were not taking)

In order to run systemd with snmpd AND read the / etc / default / snmpd file, I did it and it seems to work:

[Unit]

Description = Simple Network Management Protocol (SNMP) daemon.

After = network.target

ConditionPathExists = / etc / snmp / snmpd.conf

[Service]

PIDFile = / run / snmpd.pid

Type = forcing

EnvironmentFile = – / etc / default / snmpd

ExecStartPre = / bin / mkdir -p / var / run / agentx

ExecStart = / usr / sbin / snmpd $ SNMPDOPTS

ExecReload = / bin / kill -HUP $ MAINPID

[Install]

WantedBy = multi -user.target

This seems to be a bug in the way Ubuntu packages snmpd ??? Where should I report the bug?
Thank you