Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1022719

Bug#968992: snmpd service file blocks loading of all MIBS

From Salvatore Bonaccorso <carnil@debian.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#968992: snmpd service file blocks loading of all MIBS
Date 2020-08-25 16:20 +0200
Message-ID <AHHXP-UB-1@gated-at.bofh.it> (permalink)
References <AHHO9-Rl-1@gated-at.bofh.it> <AHHO9-Rl-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.debian.bugs.dist | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#968992: snmpd service file blocks loading of all MIBS Paul Rensing   <agent@cimetrics.com> - 2020-08-25 16:10 +0200
  Bug#968992: snmpd service file blocks loading of all MIBS Salvatore Bonaccorso <carnil@debian.org> - 2020-08-25 16:20 +0200
  Bug#968992: [Pkg-net-snmp-devel] Bug#968992: snmpd service file blocks loading of all MIBS Craig Small <csmall@debian.org> - 2020-08-26 00:10 +0200

csiph-web