SNMP Warnings in Debian Squeeze

The default installation of snmpd in Debian 6 Squeeze will put warnings into the daemon.log.

Reason is the licensing of the MIB files, that is not compatible with Debian’s policy.

If you are not willing to accept these messages on each restart of the SNMP service, please find the resolution in the following list:

  • Edit /etc/apt/sources.list and append contrib and non-free to the standard repositories.
  • apt-get update
  • apt-get install -y snmpd snmp-mibs-downloader
  • Change in /etc/default/snmpd:
    export MIBS=/usr/share/mibs/netsnmp/UCD-SNMP-MIB

Commenting the original line export MIBS= did not help, also the MIBS=/usr/share/mibs/netsnmp did not work, so I will leave the MIBS setting in the configuration on UCD-SNMP-MIB.