[Pkg-net-snmp-devel] Bug#924343: snmpd: default config startup warnings

Andreas Hasenack andreas at canonical.com
Mon Mar 11 20:08:43 GMT 2019


Package: snmpd
Version: 5.7.3+dfsg-5
Severity: Normal

Dear Maintainer,

this is a follow-up to bug
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=786887 which was
closed because it was filed against a very old version of this
package.

I just tried again with an up-to-date debian sid system, and it still
happens with a default configuration:

root at sid-snmpd-default-monitors:~# > /var/log/syslog
root at sid-snmpd-default-monitors:~# systemctl start snmpd
root at sid-snmpd-default-monitors:~# cat /var/log/syslog
Mar 11 19:45:31 sid-snmpd-default-monitors systemd[1]: Starting Simple
Network Management Protocol (SNMP) Daemon....
Mar 11 19:45:31 sid-snmpd-default-monitors systemd[1]: Started Simple
Network Management Protocol (SNMP) Daemon..
Mar 11 19:45:31 sid-snmpd-default-monitors snmpd[385]:
/etc/snmp/snmpd.conf: line 145: Warning: Unknown token:
defaultMonitors.
Mar 11 19:45:31 sid-snmpd-default-monitors snmpd[385]:
/etc/snmp/snmpd.conf: line 147: Warning: Unknown token:
linkUpDownNotifications.
Mar 11 19:45:31 sid-snmpd-default-monitors snmpd[385]: Turning on
AgentX master support.
Mar 11 19:45:31 sid-snmpd-default-monitors snmpd[385]: NET-SNMP version 5.7.3

Line 145 is the line that enabled defaultMonitors (indented like that, btw):
                                   # generate traps on UCD error conditions
defaultMonitors          yes

There are a number of steps one has to take to get rid of those
warnings, and I'm listing them here in the hopes of helping others,
not necessarily as a guideline on how this should be fixed. I
collected these together from several bug reports and/or comments:
- remove the MIBS= variable definition (to empty) from the systemd service file:
#Environment="MIBS="
- comment the "mibs" line in /etc/snmp/snmp.conf:
#mibs :
- remove ",mteTrigger,mteTriggerConf" from the ExecStart line in the
same systemd service file:
ExecStart=/usr/sbin/snmpd -Lsd -Lf /dev/null -u Debian-snmp -g
Debian-snmp -I -smux -f -p /run/snmpd.pid
- reload systemd:
sudo systemctl daemon-reload
- enable non-free and install snmp-mibs-downloader:
sudo apt install snmp-mibs-downloader
- restart snmpd
sudo systemctl restart snmpd



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