Devuan bug report logs - #491
snmpd: Default not sourced, SNMPDOPTS not changed, 'ia_addr' error resurrected

version graph

Package: snmpd; Maintainer for snmpd is (unknown); Source for snmpd is src:net-snmp.

Reported by: Alessandro Vesely <vesely@tana.it>

Date: Tue, 14 Jul 2020 17:03:01 UTC

Severity: normal

Tags: debian

Found in version 5.7.3+dfsg-5

Fixed in version 5.8+dfsg-2

Done: Mark Hindley <mark@hindley.org.uk>

Forwarded to https://bugs.debian.org/965034

Full log


🔗 View this message in rfc822 format

MIME-Version: 1.0
X-Mailer: MIME-tools 5.509 (Entity 5.509)
X-Loop: owner@bugs.devuan.org
From: "Devuan bug Tracking System" <owner@bugs.devuan.org>
To: Mark Hindley <mark@hindley.org.uk>
Subject: bug#491: marked as done (snmpd: Default not sourced, SNMPDOPTS
 not changed, 'ia_addr' error resurrected)
Message-ID: <handler.491.D491.16733654223896.ackdone@bugs.devuan.org>
References: <Y72HnuHje4xL7qRl@hindley.org.uk>
 <159474525290.27362.326221750437452939.reportbug@north.ext.tana.it>
X-Devuan-PR-Message: closed 491
X-Devuan-PR-Package: snmpd
X-Devuan-PR-Keywords: debian
Reply-To: 491@bugs.devuan.org
Date: Tue, 10 Jan 2023 15:44:01 +0000
Content-Type: multipart/mixed; boundary="----------=_1673365441-3905-0"
[Message part 1 (text/plain, inline)]
Your message dated Tue, 10 Jan 2023 15:43:26 +0000
with message-id <Y72HnuHje4xL7qRl@hindley.org.uk>
and subject line Fixed in Debian 965034
has caused the Devuan bug report #491,
regarding snmpd: Default not sourced, SNMPDOPTS not changed, 'ia_addr' error resurrected
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.devuan.org
immediately.)


-- 
491: https://bugs.devuan.org/cgi/bugreport.cgi?bug=491
Devuan Bug Tracking System
Contact owner@bugs.devuan.org with problems
[Message part 2 (message/rfc822, inline)]
From: Alessandro Vesely <vesely@tana.it>
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
Subject: snmpd: Default not sourced, SNMPDOPTS not changed, 'ia_addr' error resurrected
Date: Tue, 14 Jul 2020 18:47:32 +0200
Package: snmpd
Version: 5.7.3+dfsg-5
Severity: normal

Dear Maintainer,

after upgrading to Beowulf, daemon.log gets filled with these:

Jul 14 18:31:46 31 north snmpd[27013]: error on subcontainer 'ia_addr' insert (-1)
Jul 14 18:31:46 31 north snmpd[27013]: error on subcontainer 'ia_addr' insert (-1)
Jul 14 18:31:46 31 north snmpd[27013]: error on subcontainer 'ia_addr' insert (-1)
Jul 14 18:31:46 31 north snmpd[27013]: error on subcontainer 'ia_addr' insert (-1)
Jul 14 18:31:46 31 north snmpd[27013]: error on subcontainer 'ia_addr' insert (-1)
Jul 14 18:31:46 31 north snmpd[27013]: error on subcontainer 'ia_addr' insert (-1)
Jul 14 18:31:46 31 north snmpd[27013]: error on subcontainer 'ia_addr' insert (-1)
[...]

It is an old bug, with a known "solution" consisting in lowering the log level.

However, the Debian maintainer must have changed the original init.d/snmpd
file, since they use systemd instead, so that /etc/default/snmpd does not
get sourced.  Hence the logs.

I just changed /etc/init.d/snmpd (lazy me).

-- System Information:
Distributor ID:	Debian
Description:	Devuan GNU/Linux 3 (beowulf)
Release:	3
Codename:	beowulf
Architecture: x86_64

Kernel: Linux 4.19.0-9-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages snmpd depends on:
ii  adduser                3.118
ii  debconf [debconf-2.0]  1.5.71
ii  libc6                  2.28-10
ii  libmariadb3            1:10.3.22-0+deb10u1
ii  libsnmp-base           5.7.3+dfsg-5
ii  libsnmp30              5.7.3+dfsg-5
ii  libssl1.1              1.1.1d-0+deb10u3
ii  lsb-base               10.2019051400
ii  zlib1g                 1:1.2.11.dfsg-1

snmpd recommends no packages.

Versions of packages snmpd suggests:
pn  snmptrapd  <none>

-- Configuration Files:
/etc/default/snmpd changed:
export MIBS=
SNMPDRUN=yes
SNMPDOPTS='-LS6d -Lf /dev/null -u snmp -g snmp -I -smux,mteTrigger,mteTriggerConf -p /run/snmpd.pid'

/etc/init.d/snmpd changed:
if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then
    set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script
fi
DESC="SNMP Services"
DAEMON=/usr/sbin/snmpd
PIDFILE="/run/snmpd.pid"
OLD_MIBS_DIR="/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp"
MIBS_DIR="/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf"
export MIBDIRS="$MIBS_DIR:$OLD_MIBS_DIR"
DEFAULT_SNMPDOPTS="-Ls6d -Lf /dev/null -u Debian-snmp -g Debian-snmp -I -smux,mteTrigger,mteTriggerConf"
[ -z "$SNMPDOPTS" ] && SNMPDOPTS=$DEFAULT_SNMPDOPTS
DAEMON_ARGS="$SNMPDOPTS -p $PIDFILE"
do_start_prepare()
{
    	# remove old symlink with previous version
    	if [ -L /var/run/agentx ]; then
		rm -f /var/run/agentx
	fi
	if [ ! -d /var/run/agentx ]; then
		mkdir -p /var/run/agentx
	fi
}

/etc/snmp/snmpd.conf [Errno 13] Permission denied: '/etc/snmp/snmpd.conf'
/etc/snmp/snmptrapd.conf [Errno 13] Permission denied: '/etc/snmp/snmptrapd.conf'

-- debconf information:
  snmpd/upgradefrom36:
  snmpd/upgradefrom521:
[Message part 3 (message/rfc822, inline)]
From: Mark Hindley <mark@hindley.org.uk>
To: 491-done@bugs.devuan.org
Subject: Fixed in Debian 965034
Date: Tue, 10 Jan 2023 15:43:26 +0000
Version net-snmp/5.8+dfsg-2

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Tue Apr 1 22:50:15 2025;