cacti icon indicating copy to clipboard operation
cacti copied to clipboard

SNMP Timeouts for valid OIDs

Open BSOD2600 opened this issue 9 years ago • 3 comments

latest e3f5ee822c492cda90e5980caa61e545ba4e94e0 Windows 2012 R2 with Windows SNMP agent. net-snmp 5.5 x64

After adding a new Windows device, the following gets logged:

2017-01-04 21:05:06 - CMDPHP WARNING: SNMP Error:'Timeout (1000 ms)\', Device:'192.168.1.22', OID:'.1.3.6.1.2.1.1.2.0'
2017-01-04 21:05:09 - CMDPHP WARNING: SNMP Error:'snmp2_real_walk(): No response from 127.0.0.1', Device:'localhost', OID:'.1.3.6.1.2.1.25.2.3.1.1'
2017-01-04 21:05:10 - CMDPHP WARNING: SNMP Error:'Timeout (1000 ms)\', Device:'192.168.1.22', OID:'.1.3.6.1.2.1.1.2.0'

However, both of those OIDs are valid... if cacti kept walking:

C:\>snmpwalk -v 2c -c public localhost .1.3.6.1.2.1.1.2.0
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.311.1.1.3.1.2
C:\>snmpwalk -v 2c -c public -On localhost .1.3.6.1.2.1.1.2.0
.1.3.6.1.2.1.1.2.0 = OID: .1.3.6.1.4.1.311.1.1.3.1.2
C:\>snmpwalk -v 2c -c public localhost .1.3.6.1.2.1.25.2.3.1.1
HOST-RESOURCES-MIB::hrStorageIndex.1 = INTEGER: 1
HOST-RESOURCES-MIB::hrStorageIndex.2 = INTEGER: 2
HOST-RESOURCES-MIB::hrStorageIndex.3 = INTEGER: 3
HOST-RESOURCES-MIB::hrStorageIndex.4 = INTEGER: 4
HOST-RESOURCES-MIB::hrStorageIndex.5 = INTEGER: 5
C:\>snmpwalk -v 2c -c public -On localhost .1.3.6.1.2.1.25.2.3.1.1
.1.3.6.1.2.1.25.2.3.1.1.1 = INTEGER: 1
.1.3.6.1.2.1.25.2.3.1.1.2 = INTEGER: 2
.1.3.6.1.2.1.25.2.3.1.1.3 = INTEGER: 3
.1.3.6.1.2.1.25.2.3.1.1.4 = INTEGER: 4
.1.3.6.1.2.1.25.2.3.1.1.5 = INTEGER: 5

Yet the data sources were able to correctly walk and fetch the data: image

BSOD2600 avatar Jan 05 '17 05:01 BSOD2600

Please increase your snmp timeout. That data query should be re-written, it's very inefficient.

cigamit avatar Jan 06 '17 03:01 cigamit

occurs with 5 seconds too.

2017-01-05 22:49:47 - CMDPHP WARNING: SNMP Error:'Timeout (5000 ms)\', Device:'192.168.1.22', OID:'.1.3.6.1.2.1.1.1.0'
2017-01-05 22:50:11 - CMDPHP WARNING: SNMP Error:'Timeout (5000 ms)\', Device:'192.168.1.22', OID:'.1.3.6.1.2.1.1.3.0'

BSOD2600 avatar Jan 06 '17 06:01 BSOD2600

Closing for now. It appears to be working on your latest test system. Reopen if this continues to happen.

cigamit avatar Jan 07 '17 20:01 cigamit