SNMP timeout with DLink switch

CMK version:
1.2.8p27

OS version:
Centos 8

Error message:
cmk --snmpwalk fails, while snmpwalk command completes succesfully

[root@arnor ~]# cmk --snmpwalk --debug dlink-sw
Error walking dlink-sw: SNMP Error on dlink-sw while walking .1.3.6.1.2.1
Traceback (most recent call last):
  File "/usr/share/check_mk/modules/check_mk.py", line 5188, in <module>
    do_snmpwalk(args)
  File "/usr/share/check_mk/modules/check_mk.py", line 3652, in do_snmpwalk
    do_snmpwalk_on(host, snmpwalks_dir + "/" + host)
  File "/usr/share/check_mk/modules/check_mk.py", line 3677, in do_snmpwalk_on
    rows = inline_snmpwalk_on_suboid(hostname, None, oid)
  File "/usr/share/check_mk/modules/inline_snmp.py", line 153, in inline_snmpwalk_on_suboid
    raise MKSNMPError("SNMP Error on %s while walking %s" % (hostname, fetchoid))
__main__.MKSNMPError: SNMP Error on dlink-sw while walking .1.3.6.1.2.1
[root@arnor ~]# snmpwalk -c public -v 2c dlink-sw.groumpf.org | head
SNMPv2-MIB::sysDescr.0 = STRING: WS6-DGS-1210-16/G1 7.10.008
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.171.10.153.12.2
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (135594266) 15 days, 16:39:02.66
SNMPv2-MIB::sysContact.0 = STRING: 
SNMPv2-MIB::sysName.0 = STRING: DLINK-SW
SNMPv2-MIB::sysLocation.0 = STRING: BUREAU
SNMPv2-MIB::sysServices.0 = INTEGER: 72
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (135593647) 15 days, 16:38:56.47
SNMPv2-MIB::sysORID.1 = OID: IF-MIB::interfaces
SNMPv2-MIB::sysORID.2 = OID: EtherLike-MIB::dot3StatsTable

Output of “cmk --debug -vvn hostname”: (If it is a problem with checks or plugins)

[root@arnor ~]# cmk --debug -vvn dlink-sw
Check_mk version 1.2.8p27
Executing BULKWALK of ".1.3.6.1.2.1.43.18.1.1.2" on dlink-sw
=> 1.3.6.1.2.1.43.18.1.1.2 = 
Executing BULKWALK of ".1.3.6.1.2.1.43.18.1.1.4" on dlink-sw
=> 1.3.6.1.2.1.43.18.1.1.4 = 
Executing BULKWALK of ".1.3.6.1.2.1.43.18.1.1.5" on dlink-sw
=> 1.3.6.1.2.1.43.18.1.1.5 = 
Executing BULKWALK of ".1.3.6.1.2.1.43.18.1.1.7" on dlink-sw
=> 1.3.6.1.2.1.43.18.1.1.7 = 
Executing BULKWALK of ".1.3.6.1.2.1.43.18.1.1.8" on dlink-sw
=> 1.3.6.1.2.1.43.18.1.1.8 = 
Alerts               OK - No alerts present
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.1" on dlink-sw
=> 1.3.6.1.2.1.2.2.1.1 = 
=> 1.3.6.1.2.1.2.2.1.1.1 = 1
=> 1.3.6.1.2.1.2.2.1.1.2 = 2
=> 1.3.6.1.2.1.2.2.1.1.3 = 3
=> 1.3.6.1.2.1.2.2.1.1.4 = 4
=> 1.3.6.1.2.1.2.2.1.1.5 = 5
=> 1.3.6.1.2.1.2.2.1.1.6 = 6
=> 1.3.6.1.2.1.2.2.1.1.7 = 7
=> 1.3.6.1.2.1.2.2.1.1.8 = 8
=> 1.3.6.1.2.1.2.2.1.1.9 = 9
=> 1.3.6.1.2.1.2.2.1.1.10 = 10
=> 1.3.6.1.2.1.2.2.1.1.11 = 11
=> 1.3.6.1.2.1.2.2.1.1.12 = 12
=> 1.3.6.1.2.1.2.2.1.1.13 = 13
=> 1.3.6.1.2.1.2.2.1.1.14 = 14
=> 1.3.6.1.2.1.2.2.1.1.15 = 15
=> 1.3.6.1.2.1.2.2.1.1.16 = 16
=> 1.3.6.1.2.1.2.2.1.1.17 = 17
=> 1.3.6.1.2.1.2.2.1.1.18 = 18
=> 1.3.6.1.2.1.2.2.1.1.19 = 19
=> 1.3.6.1.2.1.2.2.1.1.20 = 20
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.2" on dlink-sw
=> 1.3.6.1.2.1.2.2.1.2 = 
=> 1.3.6.1.2.1.2.2.1.2.1 = D-Link DGS-1210-16 Rev.G1/7.10.008 Port 1
=> 1.3.6.1.2.1.2.2.1.2.2 = D-Link DGS-1210-16 Rev.G1/7.10.008 Port 2
=> 1.3.6.1.2.1.2.2.1.2.3 = D-Link DGS-1210-16 Rev.G1/7.10.008 Port 3
=> 1.3.6.1.2.1.2.2.1.2.4 = D-Link DGS-1210-16 Rev.G1/7.10.008 Port 4
=> 1.3.6.1.2.1.2.2.1.2.5 = D-Link DGS-1210-16 Rev.G1/7.10.008 Port 5
=> 1.3.6.1.2.1.2.2.1.2.6 = D-Link DGS-1210-16 Rev.G1/7.10.008 Port 6
=> 1.3.6.1.2.1.2.2.1.2.7 = D-Link DGS-1210-16 Rev.G1/7.10.008 Port 7
=> 1.3.6.1.2.1.2.2.1.2.8 = D-Link DGS-1210-16 Rev.G1/7.10.008 Port 8
=> 1.3.6.1.2.1.2.2.1.2.9 = D-Link DGS-1210-16 Rev.G1/7.10.008 Port 9
=> 1.3.6.1.2.1.2.2.1.2.10 = D-Link DGS-1210-16 Rev.G1/7.10.008 Port 10
=> 1.3.6.1.2.1.2.2.1.2.11 = D-Link DGS-1210-16 Rev.G1/7.10.008 Port 11
=> 1.3.6.1.2.1.2.2.1.2.12 = D-Link DGS-1210-16 Rev.G1/7.10.008 Port 12
=> 1.3.6.1.2.1.2.2.1.2.13 = D-Link DGS-1210-16 Rev.G1/7.10.008 Port 13
=> 1.3.6.1.2.1.2.2.1.2.14 = D-Link DGS-1210-16 Rev.G1/7.10.008 Port 14
=> 1.3.6.1.2.1.2.2.1.2.15 = D-Link DGS-1210-16 Rev.G1/7.10.008 Port 15
=> 1.3.6.1.2.1.2.2.1.2.16 = D-Link DGS-1210-16 Rev.G1/7.10.008 Port 16
=> 1.3.6.1.2.1.2.2.1.2.17 = D-Link DGS-1210-16 Rev.G1/7.10.008 Port 17
=> 1.3.6.1.2.1.2.2.1.2.18 = D-Link DGS-1210-16 Rev.G1/7.10.008 Port 18
=>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.6.1.2.1.2.2.1.8.20 = 2
Executing BULKWALK of ".1.3.6.1.2.1.31.1.1.1.6" on dlink-sw
=> 1.3.6.1.2.1.31.1.1.1.6 = 
=> 1.3.6.1.2.1.31.1.1.1.6.1 = 76785584123
=> 1.3.6.1.2.1.31.1.1.1.6.2 = 0
=> 1.3.6.1.2.1.31.1.1.1.6.3 = 0
=> 1.3.6.1.2.1.31.1.1.1.6.4 = 0
=> 1.3.6.1.2.1.31.1.1.1.6.5 = 489209149705
=> 1.3.6.1.2.1.31.1.1.1.6.6 = 6672718
=> 1.3.6.1.2.1.31.1.1.1.6.7 = 0
=> 1.3.6.1.2.1.31.1.1.1.6.8 = 0
=> 1.3.6.1.2.1.31.1.1.1.6.9 = 0
=> 1.3.6.1.2.1.31.1.1.1.6.10 = 2003870106
No SNMP response received before timeout
CRIT - SNMP Error on dlink-sw while walking .1.3.6.1.2.1.31.1.1.1.6, execution time 36.5 sec|execution_time=36.476 user_time=0.660 system_time=0.030 children_user_time=0.000 children_system_time=0.000

** output of cmk -D :
[root@arnor ~]# cmk -D dlink-sw

dlink-sw                                                                       
Addresses:              192.168.100.251
Tags:                   snmp, udp
Host groups:            
Contact groups:         
Type of agent:          SNMP (community: 'public', bulk walk: yes, port: default, inline: yes)
Is aggregated:          no
Services:
  checktype      item                                       params                                                                                                                     description                                          groups summarized to groups
  -------------- ------------------------------------------ -------------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------- ------ ------------- ------
  printer_alerts None                                       None                                                                                                                       Alerts                                                                          
  if64           D-Link DGS-1210-16 Rev.G1/7.10.008 Port 1  {'state': [u'1'], 'errors': (0.01, 0.1), 'speed': 1000000000}                                                              Interface D-Link DGS-1210-16 Rev.G1/7.10.008 Port 1                             
  if64           D-Link DGS-1210-16 Rev.G1/7.10.008 Port 10 {'state': [u'1'], 'errors': (0.01, 0.1), 'speed': 1000000000}                                                              Interface D-Link DGS-1210-16 Rev.G1/7.10.008 Port 10                            
  if64           D-Link DGS-1210-16 Rev.G1/7.10.008 Port 11 {'state': [u'1'], 'errors': (0.01, 0.1), 'speed': 1000000000}                                                              Interface D-Link DGS-1210-16 Rev.G1/7.10.008 Port 11                            
  if64           D-Link DGS-1210-16 Rev.G1/7.10.008 Port 12 {'state': [u'1'], 'errors': (0.01, 0.1), 'speed': 1000000000}                                                              Interface D-Link DGS-1210-16 Rev.G1/7.10.008 Port 12                            
  if64           D-Link DGS-1210-16 Rev.G1/7.10.008 Port 13 {'state': [u'1'], 'errors': (0.01, 0.1), 'speed': 1000000000}                                                              Interface D-Link DGS-1210-16 Rev.G1/7.10.008 Port 13                            
  if64           D-Link DGS-1210-16 Rev.G1/7.10.008 Port 5  {'state': [u'1'], 'errors': (0.01, 0.1), 'speed': 1000000000}                                                              Interface D-Link DGS-1210-16 Rev.G1/7.10.008 Port 5                             
  if64           D-Link DGS-1210-16 Rev.G1/7.10.008 Port 6  {'state': [u'1'], 'errors': (0.01, 0.1), 'speed': 1000000000}                                                              Interface D-Link DGS-1210-16 Rev.G1/7.10.008 Port 6                             
  snmp_info      None                                       None                                                                                                                       SNMP Info                                                                       
  tcp_snmp       None                                       {'error_rate': (0.01, 0.1, 10), 'syn_fail_max': (100, 1000), 'reset_max': (100, 1000), 'retransmit_rate': (0.01, 0.1, 10)} TCP stats                                                                       
  udp_snmp       None                                       {'error_rate': (0.01, 0.1, 10), 'no_port_max': (100, 1000)}                                                                UDP stats                                                                       
  snmp_uptime    None                                       {}                                                                                                                         Uptime                                                                          

Regards,
Xavier

You are using such a old version of checkmk that no one will be able to help you

vs.

It looks like your device cannot handle bulkwalks. Please disable bulkwalk for this device and test again.

Like Andreas said, you probably want to test whether the device actually supports bulkwalks and what bulksize might be used. You can achieve this on the commandline with the command:
snmpbulkwalk instead of snmpwalk. You can then experiment with the bulksize using the Option
-Cr5 (this would set the bulksize to 5 instead of default 10). If your device handles smaller bulksizes you can set the size via WATO. Otherwise you will have to disable bulkwalks for the device but please keep SNMPv2 for the 64Bit Counters.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.