Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data never changes on exporter #1177

Closed
miqueet opened this issue May 6, 2024 · 2 comments
Closed

data never changes on exporter #1177

miqueet opened this issue May 6, 2024 · 2 comments

Comments

@miqueet
Copy link

miqueet commented May 6, 2024

 ./snmp_exporter --log.level=debug
ts=2024-05-06T19:47:54.793Z caller=main.go:194 level=info msg="Starting snmp_exporter" version="(version=0.25.0, branch=HEAD, revision=9c42d6c874d479314e612bca69558c81f8e26287)" concurrency=1
ts=2024-05-06T19:47:54.793Z caller=main.go:195 level=info build_context="(go=go1.21.5, platform=linux/amd64, user=root@880115266f70, date=20231210-10:05:18, tags=netgo)"
ts=2024-05-06T19:47:54.869Z caller=tls_config.go:274 level=info msg="Listening on" address=0.0.0.0:9116
ts=2024-05-06T19:47:54.869Z caller=tls_config.go:277 level=info msg="TLS is disabled." http2=false address=0.0.0.0:9116
ts=2024-05-06T19:47:55.771Z caller=collector.go:460 level=debug auth=public_v2 target=192.168.232.187 module=if_mib msg="Starting scrape"
ts=2024-05-06T19:47:55.771Z caller=collector.go:180 level=debug auth=public_v2 target=192.168.232.187 module=if_mib msg="Getting OIDs" oids=1
ts=2024-05-06T19:47:55.772Z caller=collector.go:190 level=debug auth=public_v2 target=192.168.232.187 module=if_mib msg="Get of OIDs completed" oids=1 duration_seconds=1.662255ms
ts=2024-05-06T19:47:55.772Z caller=collector.go:214 level=debug auth=public_v2 target=192.168.232.187 module=if_mib msg="Walking subtree" oid=1.3.6.1.2.1.2
ts=2024-05-06T19:47:55.901Z caller=collector.go:228 level=debug auth=public_v2 target=192.168.232.187 module=if_mib msg="Walk of subtree completed" oid=1.3.6.1.2.1.2 duration_seconds=128.970772ms
ts=2024-05-06T19:47:55.902Z caller=collector.go:214 level=debug auth=public_v2 target=192.168.232.187 module=if_mib msg="Walking subtree" oid=1.3.6.1.2.1.31.1.1
ts=2024-05-06T19:47:56.032Z caller=collector.go:228 level=debug auth=public_v2 target=192.168.232.187 module=if_mib msg="Walk of subtree completed" oid=1.3.6.1.2.1.31.1.1 duration_seconds=130.667455ms
ts=2024-05-06T19:47:56.060Z caller=collector.go:464 level=debug auth=public_v2 target=192.168.232.187 module=if_mib msg="Finished scrape" duration_seconds=0.289083518
ts=2024-05-06T19:47:56.784Z caller=collector.go:460 level=debug auth=public_v2 target=192.168.232.178 module=if_mib msg="Starting scrape"
ts=2024-05-06T19:47:56.784Z caller=collector.go:180 level=debug auth=public_v2 target=192.168.232.178 module=if_mib msg="Getting OIDs" oids=1
ts=2024-05-06T19:47:56.785Z caller=collector.go:190 level=debug auth=public_v2 target=192.168.232.178 module=if_mib msg="Get of OIDs completed" oids=1 duration_seconds=1.07598ms
ts=2024-05-06T19:47:56.785Z caller=collector.go:214 level=debug auth=public_v2 target=192.168.232.178 module=if_mib msg="Walking subtree" oid=1.3.6.1.2.1.2
ts=2024-05-06T19:47:58.147Z caller=collector.go:228 level=debug auth=public_v2 target=192.168.232.178 module=if_mib msg="Walk of subtree completed" oid=1.3.6.1.2.1.2 duration_seconds=1.361512802s
ts=2024-05-06T19:47:58.147Z caller=collector.go:214 level=debug auth=public_v2 target=192.168.232.178 module=if_mib msg="Walking subtree" oid=1.3.6.1.2.1.31.1.1
ts=2024-05-06T19:47:59.320Z caller=collector.go:228 level=debug auth=public_v2 target=192.168.232.178 module=if_mib msg="Walk of subtree completed" oid=1.3.6.1.2.1.31.1.1 duration_seconds=1.172880999s
ts=2024-05-06T19:47:59.373Z caller=collector.go:464 level=debug auth=public_v2 target=192.168.232.178 module=if_mib msg="Finished scrape" duration_seconds=2.589365942
ts=2024-05-06T19:47:59.921Z caller=collector.go:460 level=debug auth=public_v2 target=192.168.232.179 module=if_mib msg="Starting scrape"
ts=2024-05-06T19:47:59.921Z caller=collector.go:180 level=debug auth=public_v2 target=192.168.232.179 module=if_mib msg="Getting OIDs" oids=1
ts=2024-05-06T19:47:59.927Z caller=collector.go:190 level=debug auth=public_v2 target=192.168.232.179 module=if_mib msg="Get of OIDs completed" oids=1 duration_seconds=6.103509ms
ts=2024-05-06T19:47:59.927Z caller=collector.go:214 level=debug auth=public_v2 target=192.168.232.179 module=if_mib msg="Walking subtree" oid=1.3.6.1.2.1.2
ts=2024-05-06T19:48:00.092Z caller=collector.go:228 level=debug auth=public_v2 target=192.168.232.179 module=if_mib msg="Walk of subtree completed" oid=1.3.6.1.2.1.2 duration_seconds=164.623303ms
ts=2024-05-06T19:48:00.092Z caller=collector.go:214 level=debug auth=public_v2 target=192.168.232.179 module=if_mib msg="Walking subtree" oid=1.3.6.1.2.1.31.1.1
ts=2024-05-06T19:48:00.261Z caller=collector.go:228 level=debug auth=public_v2 target=192.168.232.179 module=if_mib msg="Walk of subtree completed" oid=1.3.6.1.2.1.31.1.1 duration_seconds=169.432209ms
ts=2024-05-06T19:48:00.284Z caller=collector.go:464 level=debug auth=public_v2 target=192.168.232.179 module=if_mib msg="Finished scrape" duration_seconds=0.362910623
ts=2024-05-06T19:48:00.556Z caller=collector.go:460 level=debug auth=public_v2 target=192.168.232.197 module=if_mib msg="Starting scrape"
ts=2024-05-06T19:48:00.556Z caller=collector.go:180 level=debug auth=public_v2 target=192.168.232.197 module=if_mib msg="Getting OIDs" oids=1
ts=2024-05-06T19:48:00.557Z caller=collector.go:190 level=debug auth=public_v2 target=192.168.232.197 module=if_mib msg="Get of OIDs completed" oids=1 duration_seconds=1.031225ms
ts=2024-05-06T19:48:00.557Z caller=collector.go:214 level=debug auth=public_v2 target=192.168.232.197 module=if_mib msg="Walking subtree" oid=1.3.6.1.2.1.2
ts=2024-05-06T19:48:00.830Z caller=collector.go:460 level=debug auth=public_v2 target=192.168.232.131 module=if_mib msg="Starting scrape"
ts=2024-05-06T19:48:00.830Z caller=collector.go:180 level=debug auth=public_v2 target=192.168.232.131 module=if_mib msg="Getting OIDs" oids=1
ts=2024-05-06T19:48:00.832Z caller=collector.go:190 level=debug auth=public_v2 target=192.168.232.131 module=if_mib msg="Get of OIDs completed" oids=1 duration_seconds=1.925117ms
ts=2024-05-06T19:48:00.832Z caller=collector.go:214 level=debug auth=public_v2 target=192.168.232.131 module=if_mib msg="Walking subtree" oid=1.3.6.1.2.1.2
ts=2024-05-06T19:48:01.096Z caller=collector.go:228 level=debug auth=public_v2 target=192.168.232.197 module=if_mib msg="Walk of subtree completed" oid=1.3.6.1.2.1.2 duration_seconds=538.965814ms
ts=2024-05-06T19:48:01.096Z caller=collector.go:214 level=debug auth=public_v2 target=192.168.232.197 module=if_mib msg="Walking subtree" oid=1.3.6.1.2.1.31.1.1
ts=2024-05-06T19:48:01.152Z caller=collector.go:228 level=debug auth=public_v2 target=192.168.232.131 module=if_mib msg="Walk of subtree completed" oid=1.3.6.1.2.1.2 duration_seconds=319.663622ms
ts=2024-05-06T19:48:01.152Z caller=collector.go:214 level=debug auth=public_v2 target=192.168.232.131 module=if_mib msg="Walking subtree" oid=1.3.6.1.2.1.31.1.1
ts=2024-05-06T19:48:01.538Z caller=collector.go:228 level=debug auth=public_v2 target=192.168.232.197 module=if_mib msg="Walk of subtree completed" oid=1.3.6.1.2.1.31.1.1 duration_seconds=442.398849ms
ts=2024-05-06T19:48:01.569Z caller=collector.go:228 level=debug auth=public_v2 target=192.168.232.131 module=if_mib msg="Walk of subtree completed" oid=1.3.6.1.2.1.31.1.1 duration_seconds=417.69395ms
ts=2024-05-06T19:48:01.584Z caller=collector.go:464 level=debug auth=public_v2 target=192.168.232.197 module=if_mib msg="Finished scrape" duration_seconds=1.028198864
ts=2024-05-06T19:48:01.604Z caller=collector.go:464 level=debug auth=public_v2 target=192.168.232.131 module=if_mib msg="Finished scrape" duration_seconds=0.773960235
ts=2024-05-06T19:48:03.360Z caller=collector.go:460 level=debug auth=public_v2 target=192.168.232.207 module=if_mib msg="Starting scrape"
ts=2024-05-06T19:48:03.360Z caller=collector.go:180 level=debug auth=public_v2 target=192.168.232.207 module=if_mib msg="Getting OIDs" oids=1
ts=2024-05-06T19:48:03.362Z caller=collector.go:190 level=debug auth=public_v2 target=192.168.232.207 module=if_mib msg="Get of OIDs completed" oids=1 duration_seconds=1.811088ms
ts=2024-05-06T19:48:03.362Z caller=collector.go:214 level=debug auth=public_v2 target=192.168.232.207 module=if_mib msg="Walking subtree" oid=1.3.6.1.2.1.2
ts=2024-05-06T19:48:03.394Z caller=collector.go:228 level=debug auth=public_v2 target=192.168.232.207 module=if_mib msg="Walk of subtree completed" oid=1.3.6.1.2.1.2 duration_seconds=30.812211ms
ts=2024-05-06T19:48:03.394Z caller=collector.go:214 level=debug auth=public_v2 target=192.168.232.207 module=if_mib msg="Walking subtree" oid=1.3.6.1.2.1.31.1.1
ts=2024-05-06T19:48:03.427Z caller=collector.go:228 level=debug auth=public_v2 target=192.168.232.207 module=if_mib msg="Walk of subtree completed" oid=1.3.6.1.2.1.31.1.1 duration_seconds=32.136013ms
ts=2024-05-06T19:48:03.436Z caller=collector.go:464 level=debug auth=public_v2 target=192.168.232.207 module=if_mib msg="Finished scrape" duration_seconds=0.075877492
ts=2024-05-06T19:48:05.798Z caller=collector.go:460 level=debug auth=public_v2 target=192.168.232.190 module=if_mib msg="Starting scrape"
ts=2024-05-06T19:48:05.798Z caller=collector.go:180 level=debug auth=public_v2 target=192.168.232.190 module=if_mib msg="Getting OIDs" oids=1
ts=2024-05-06T19:48:05.799Z caller=collector.go:190 level=debug auth=public_v2 target=192.168.232.190 module=if_mib msg="Get of OIDs completed" oids=1 duration_seconds=1.583829ms
ts=2024-05-06T19:48:05.799Z caller=collector.go:214 level=debug auth=public_v2 target=192.168.232.190 module=if_mib msg="Walking subtree" oid=1.3.6.1.2.1.2
ts=2024-05-06T19:48:06.042Z caller=collector.go:228 level=debug auth=public_v2 target=192.168.232.190 module=if_mib msg="Walk of subtree completed" oid=1.3.6.1.2.1.2 duration_seconds=242.327991ms
ts=2024-05-06T19:48:06.042Z caller=collector.go:214 level=debug auth=public_v2 target=192.168.232.190 module=if_mib msg="Walking subtree" oid=1.3.6.1.2.1.31.1.1
ts=2024-05-06T19:48:06.295Z caller=collector.go:228 level=debug auth=public_v2 target=192.168.232.190 module=if_mib msg="Walk of subtree completed" oid=1.3.6.1.2.1.31.1.1 duration_seconds=253.066406ms
ts=2024-05-06T19:48:06.325Z caller=collector.go:464 level=debug auth=public_v2 target=192.168.232.190 module=if_mib msg="Finished scrape" duration_seconds=0.527731576
ts=2024-05-06T19:48:06.398Z caller=collector.go:460 level=debug auth=public_v2 target=192.168.232.196 module=if_mib msg="Starting scrape"
ts=2024-05-06T19:48:06.398Z caller=collector.go:180 level=debug auth=public_v2 target=192.168.232.196 module=if_mib msg="Getting OIDs" oids=1
ts=2024-05-06T19:48:06.399Z caller=collector.go:190 level=debug auth=public_v2 target=192.168.232.196 module=if_mib msg="Get of OIDs completed" oids=1 duration_seconds=1.095086ms
ts=2024-05-06T19:48:06.399Z caller=collector.go:214 level=debug auth=public_v2 target=192.168.232.196 module=if_mib msg="Walking subtree" oid=1.3.6.1.2.1.2

Host operating system: output of uname -a

Linux mon101 5.15.0-94-generic #104-Ubuntu SMP Tue Jan 9 15:25:40 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

snmp_exporter version: output of snmp_exporter -version

What device/snmpwalk OID are you using?

cisco switch oid=1.3.6.1.2.1.2

If this is a new device, please link to the MIB(s).

What did you do that produced an error?

i configured everything like i have seen in the examples yet the snmp_export only produces a single value. I do have this added to grafana but I confirmed in the exporter UI that the values do not change.

i will see this same value for these no matter how long it runs. confirmed via packet capture that it is getting data back from snmp.

ifHCInMulticastPkts{ifAlias="",ifDescr="GigabitEthernet1/0/11",ifIndex="10111",ifName="Gi1/0/11"} 3.302913e+06
ifHCInMulticastPkts{ifAlias="",ifDescr="GigabitEthernet1/0/12",ifIndex="10112",ifName="Gi1/0/12"} 0
ifHCInMulticastPkts{ifAlias="",ifDescr="GigabitEthernet1/0/14",ifIndex="10114",ifName="Gi1/0/14"} 339900
ifHCInMulticastPkts{ifAlias="",ifDescr="GigabitEthernet1/0/22",ifIndex="10122",ifName="Gi1/0/22"} 633611
ifHCInMulticastPkts{ifAlias="",ifDescr="GigabitEthernet1/0/23",ifIndex="10123",ifName="Gi1/0/23"} 86
ifHCInMulticastPkts{ifAlias="",ifDescr="GigabitEthernet1/0/24",ifIndex="10124",ifName="Gi1/0/24"} 2.801795e+06
ifHCInMulticastPkts{ifAlias="",ifDescr="GigabitEthernet1/0/26",ifIndex="10126",ifName="Gi1/0/26"} 0
ifHCInMulticastPkts{ifAlias="",ifDescr="GigabitEthernet1/0/28",ifIndex="10128",ifName="Gi1/0/28"} 1.542994e+06
ifHCInMulticastPkts{ifAlias="",ifDescr="GigabitEthernet1/0/30",ifIndex="10130",ifName="Gi1/0/30"} 0
ifHCInMulticastPkts{ifAlias="",ifDescr="GigabitEthernet1/0/31",ifIndex="10131",ifName="Gi1/0/31"} 1.137246e+06
ifHCInMulticastPkts{ifAlias="",ifDescr="GigabitEthernet1/0/32",ifIndex="10132",ifName="Gi1/0/32"} 0
ifHCInMulticastPkts{ifAlias="",ifDescr="GigabitEthernet1/0/36",ifIndex="10136",ifName="Gi1/0/36"} 1.852691e+06
ifHCInMulticastPkts{ifAlias="",ifDescr="GigabitEthernet1/0/37",ifIndex="10137",ifName="Gi1/0/37"} 0
ifHCInMulticastPkts{ifAlias="",ifDescr="GigabitEthernet1/0/40",ifIndex="10140",ifName="Gi1/0/40"} 149
ifHCInMulticastPkts{ifAlias="",ifDescr="GigabitEthernet1/0/44",ifIndex="10144",ifName="Gi1/0/44"} 0
ifHCInMulticastPkts{ifAlias="",ifDescr="GigabitEthernet1/0/45",ifIndex="10145",ifName="Gi1/0/45"} 1.15566e+06
ifHCInMulticastPkts{ifAlias="",ifDescr="GigabitEthernet1/0/46",ifIndex="10146",ifName="Gi1/0/46"} 0
ifHCInMulticastPkts{ifAlias="",ifDescr="GigabitEthernet1/0/51",ifIndex="10151",ifName="Gi1/0/51"} 0
ifHCInMulticastPkts{ifAlias="",ifDescr="GigabitEthernet1/0/52",ifIndex="10152",ifName="Gi1/0/52"} 0
ifHCInMulticastPkts{ifAlias="",ifDescr="GigabitEthernet1/0/8",ifIndex="10108",ifName="Gi1/0/8"} 24
ifHCInMulticastPkts{ifAlias="",ifDescr="GigabitEthernet1/0/9",ifIndex="10109",ifName="Gi1/0/9"} 2.260096e+06

What did you expect to see?

I would expect to see the values fluctuate with the real world values of the network device

What did you see instead?

I see the single value that never changes every time the exporter is queried.

@SuperQ
Copy link
Member

SuperQ commented May 6, 2024

The exporter has no cache, so the only way this can happen is if the device has a request cache. For example, snmp-server ifmib stats cache.

confirmed via packet capture that it is getting data back from snmp

Can you confirm that the values are changing in the packet capture?

@miqueet
Copy link
Author

miqueet commented May 7, 2024

The exporter has no cache, so the only way this can happen is if the device has a request cache. For example, snmp-server ifmib stats cache.

confirmed via packet capture that it is getting data back from snmp

Can you confirm that the values are changing in the packet capture?

it does indeed appear that the values in the capture are returning the same values and i will invesigate there. I appologize for the issue☝️

image

@miqueet miqueet closed this as completed May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants