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

Salvatore Bonaccorso carnil at debian.org
Tue Aug 25 15:14:38 BST 2020


hi

I' not the maintainer but I hope I can give a hint:

On Tue, Aug 25, 2020 at 09:50:04AM -0400, Paul Rensing wrote:
> 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.

The idea here is not to edit the /lib/systemd/system/snmpd.service but
you can create a systemd drop-in file say named:

/etc/systemd/system/snmpd.service.d/overrides.conf

and set there:

[Service]
Environment="MIBS=ALL"

It should not be copied the whole unit file, but rather only this
specific setting you want to override.

For details see systemd.unit(5).

Regards,
Salvatore



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