sonic-net / sonic-buildimage

Scripts which perform an installable binary image build for SONiC
Other
736 stars 1.42k forks source link

SNMP MIBs missing #5889

Open vaibhavhd opened 3 years ago

vaibhavhd commented 3 years ago

Description

MIB missing errors are consistently logged in /var/log/quagga/bgpd.log. I think this is common in every platform ( I checked 6100 and DX010).

The SNMP docker in .201911 image does not have these MIBs present in /usr/share/mibs/ The missing MIBs are listed in miblist.txt. The missing MIBs are present at https://github.com/net-snmp/net-snmp/tree/V5-7-patches/mibs but somehow SONiC image does not include them.

Nov  5 06:04:00.644052 str-s6100-acs-4 ERR bgp#bgpd[54]: [EC 100663310] snmp[err]: MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Nov  5 06:04:00.648047 str-s6100-acs-4 ERR bgp#bgpd[54]: [EC 100663310] snmp[err]: Cannot find module (SNMPv2-MIB): At line 1 in (none)
Nov  5 06:04:00.648396 str-s6100-acs-4 ERR bgp#bgpd[54]: [EC 100663310] snmp[err]: Cannot find module (IF-MIB): At line 1 in (none)
Nov  5 06:04:00.648742 str-s6100-acs-4 ERR bgp#bgpd[54]: [EC 100663310] snmp[err]: Cannot find module (IP-MIB): At line 1 in (none)
Nov  5 06:04:00.657893 str-s6100-acs-4 ERR bgp#bgpd[54]: [EC 100663310] snmp[err]: Cannot find module (TCP-MIB): At line 1 in (none)
Nov  5 06:04:00.658215 str-s6100-acs-4 ERR bgp#bgpd[54]: [EC 100663310] snmp[err]: Cannot find module (UDP-MIB): At line 1 in (none)
Nov  5 06:04:00.660010 str-s6100-acs-4 ERR bgp#bgpd[54]: [EC 100663310] snmp[err]: Cannot find module (HOST-RESOURCES-MIB): At line 1 in (none)
Nov  5 06:04:00.660287 str-s6100-acs-4 ERR bgp#bgpd[54]: [EC 100663310] snmp[err]: Cannot find module (NOTIFICATION-LOG-MIB): At line 1 in (none)
Nov  5 06:04:00.660490 str-s6100-acs-4 ERR bgp#bgpd[54]: [EC 100663310] snmp[err]: Cannot find module (DISMAN-EVENT-MIB): At line 1 in (none)
Nov  5 06:04:00.664019 str-s6100-acs-4 ERR bgp#bgpd[54]: [EC 100663310] snmp[err]: Cannot find module (DISMAN-SCHEDULE-MIB): At line 1 in (none)
Nov  5 06:04:00.664327 str-s6100-acs-4 ERR bgp#bgpd[54]: [EC 100663310] snmp[err]: Cannot find module (HOST-RESOURCES-TYPES): At line 1 in (none)
Nov  5 06:04:00.668092 str-s6100-acs-4 ERR bgp#bgpd[54]: [EC 100663310] snmp[err]: Cannot find module (MTA-MIB): At line 1 in (none)
Nov  5 06:04:00.668412 str-s6100-acs-4 ERR bgp#bgpd[54]: [EC 100663310] snmp[err]: Cannot find module (NETWORK-SERVICES-MIB): At line 1 in (none)
Nov  5 06:04:00.668809 str-s6100-acs-4 ERR bgp#bgpd[54]: [EC 100663310] snmp[err]: Cannot find module (SNMPv2-TC): At line 15 in /usr/share/snmp/mibs/UCD-DISKIO-MIB.txt
Nov  5 06:04:00.669217 str-s6100-acs-4 ERR bgp#bgpd[54]: [EC 100663310] snmp[err]: Cannot find module (SNMPv2-SMI): At line 34 in /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
Nov  5 06:04:00.672293 str-s6100-acs-4 ERR bgp#bgpd[54]: [EC 100663310] snmp[err]: Cannot find module (SNMPv2-TC): At line 37 in /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
Nov  5 06:04:00.680851 str-s6100-acs-4 WARNING bgp#bgpd[54]: [EC 100663310] snmp[warning]: Did not find 'enterprises' in module #-1 (/usr/share/snmp/mibs/UCD-SNMP-MIB.txt)

Steps to reproduce the issue:

  1. Step inside snmp container.
  2. Check dir /usr/share/snmp/mibs/
  3. Some MIBs mentioned in milist.txt are absent in the dir.

Describe the results you received:

Missing MIBs errors in bgpd.log

Describe the results you expected:

SNMP Mibs that are listed in miblist.txt should be found (ideally).

qiluo-msft commented 3 years ago

Even the 'the results you expected' is met, bgp and snmp are isolated containers, so bgpd still has no visibilities on that folder.

What is the real impact other than the ERR logs?

vaibhavhd commented 3 years ago

I see. My assumption was that the MIBs listed in miblist.txt have some purpose. I don't know if there are external or internal entities polling these MIBs which can have certain negative outcome due to MIBs not found in the image.

Also, why are these SNMP error logs appearing in bgpd.log?