toni-moreno / snmpcollector

A full featured Generic SNMP data collector with Web Administration Interface for InfluxDB
MIT License
286 stars 53 forks source link

Cumulus Linux device not connecting #532

Closed jasonyates-thg closed 1 year ago

jasonyates-thg commented 1 year ago

Running SNMPCollector v 0.13.1 in a docker container.

I have a Cumulus Linux device configured to collect interface stats however the device never gets connected nor starts collecting stats. If I use the test function and manually walk the relevant MIB's they all are successful and return within 0.2s

Logs for my failed device appear to show SNMP timing out.

time="2023-04-25 18:50:30" level=info msg="Got basic system info snmp.SysInfo{SysDescr:\"Cumulus Linux 3.7.12 (Linux Kernel 4.1.33-1+cl3u26)\", SysUptime:1010228000000000, SysContact:\"root\", SysName:\"testswitch\", SysLocation:\"Unknown\"} " device=10.10.0.87 measurement=ifMIB time="2023-04-25 18:50:30" level=info msg="Loading Indexed values" device=10.10.0.87 measurement=ifMIB time="2023-04-25 18:50:30" level=debug msg="Looking up column names .1.3.6.1.2.1.2.2.1.2 " device=10.10.0.87 measurement=ifMIB time="2023-04-25 18:51:30" level=info msg="[device] STATS SEND NOT CONNECTED" time="2023-04-25 18:52:30" level=info msg="[device] STATS SEND NOT CONNECTED" time="2023-04-25 18:52:30" level=error msg="LOADINDEXEDLABELS - SNMP WALK error: request timeout (after 5 retries)" device=10.10.0.87 measurement=ifMIB time="2023-04-25 18:52:30" level=error msg="Not able to initialize at the start of the measurement: trying to load Indexed Labels for baseOid .1.3.6.1.2.1.2.2.1.2: request timeout (after 5 retries)" device=10.10.0.87 measurement=ifMIB time="2023-04-25 18:52:30" level=info msg="MeasurementLoop Init Loop Align...." device=10.10.0.87 measurement=ifMIB time="2023-04-25 18:52:30" level=info msg="Waiting 29.307442161s to round until nearest interval... (Cycle = 60 seconds)" device=10.10.0.87 measurement=ifMIB time="2023-04-25 18:53:00" level=info msg="MeasurementLoop new Iteration" device=10.10.0.87 measurement=ifMIB time="2023-04-25 18:53:00" level=info msg="Loading Indexed values" device=10.10.0.87 measurement=ifMIB time="2023-04-25 18:53:00" level=debug msg="Looking up column names .1.3.6.1.2.1.2.2.1.2 " device=10.10.0.87 measurement=ifMIB time="2023-04-25 18:53:30" level=info msg="[device] STATS SEND NOT CONNECTED"