Comments (3)
That does seem like a bug of some kind. Can you post a with a curl when the exporter is running with --log.level=debug
?
It may also be helpful to have a tcpdump/wireshark capture of the exporter's SNMP traffic as well as the snmpwalk
to see if there are any protocol differences.
Sadly, I have not added support for the Vigor 165 to the draytek_exporter. I think that model uses the old v4 firmware, not the new v5 firmware.
from snmp_exporter.
Thanks for your response.
Here is the debug log output. pcap attached
snmp.tar.gz
[alarm@alarm snmp_exporter]$ docker run --entrypoint "bin/snmp_exporter" -v /home/alarm/docker/snmp_exporter/generator/snmp_vigor_test.yml:/etc/snmp_exporter/snmp.yml -p9116:9116 --name snmp-exporter-test prom/snmp-exporter --log.level="debug" --config.file="/etc/snmp_exporter/snmp.yml"
ts=2023-11-29T19:19:23.464Z caller=main.go:194 level=info msg="Starting snmp_exporter" version="(version=0.24.1, branch=HEAD, revision=f8826bcfadf9d93df9516c660fdc1d503f4e0b95)" concurrency=1
ts=2023-11-29T19:19:23.464Z caller=main.go:195 level=info build_context="(go=go1.21.0, platform=linux/arm64, user=root@8cd478405a6a, date=20230901-07:33:32, tags=netgo)"
ts=2023-11-29T19:19:23.467Z caller=tls_config.go:274 level=info msg="Listening on" address=[::]:9116
ts=2023-11-29T19:19:23.467Z caller=tls_config.go:277 level=info msg="TLS is disabled." http2=false address=[::]:9116
ts=2023-11-29T19:19:25.721Z caller=collector.go:460 level=debug auth=public_v2 target=192.168.1.1 module=vigor165 msg="Starting scrape"
ts=2023-11-29T19:19:25.721Z caller=collector.go:214 level=debug auth=public_v2 target=192.168.1.1 module=vigor165 msg="Walking subtree" oid=1.3.6.1.2.1.10.251.1.2.2.1.1
ts=2023-11-29T19:19:25.728Z caller=collector.go:228 level=debug auth=public_v2 target=192.168.1.1 module=vigor165 msg="Walk of subtree completed" oid=1.3.6.1.2.1.10.251.1.2.2.1.1 duration_seconds=6.288671ms
ts=2023-11-29T19:19:25.728Z caller=collector.go:214 level=debug auth=public_v2 target=192.168.1.1 module=vigor165 msg="Walking subtree" oid=1.3.6.1.2.1.10.251.1.2.2.1.2
ts=2023-11-29T19:19:25.733Z caller=collector.go:228 level=debug auth=public_v2 target=192.168.1.1 module=vigor165 msg="Walk of subtree completed" oid=1.3.6.1.2.1.10.251.1.2.2.1.2 duration_seconds=5.435326ms
ts=2023-11-29T19:19:25.734Z caller=collector.go:464 level=debug auth=public_v2 target=192.168.1.1 module=vigor165 msg="Finished scrape" duration_seconds=0.012626934
Some notes that might be of interest:
- Vigor CPE is running on FW 4.2.5_STD
DrayTek> sys version
Router Model: Vigor165 Version: 4.2.5_STD English
Profile version: 3.0.0 Status: 1 (0x12872e04)
Router IP: 192.168.1.1 Netmask: 255.255.255.0
Firmware Build Date/Time: May 12 2023 13:54:44
Router Name: DrayTek
Revision: 16746_797_bf5daf4c5 V421_165166_423FW
Current VDSL2 Firmware Version: 08-0B-02-06-00-07
ADSL Firmware Version: 08-0B-00-0B-00-02 Annex B
VDSL2 Firmware Version: 08-0B-02-06-00-07
Router serial no: None
- I have been able to workaround the issue with this setup
generator.yml
auths:
public_v2:
version: 2
modules:
vigor165:
walk:
#VDSL2
- 1.3.6.1.2.1.10.251.1.2.2.1
Had to remove the following sections in generated snmp.yml to make it work though (CPE is running in VDSL2 17A mode)
- name: xdsl2ChStatusAtmStatus
- name: xdsl2ChStatusPtmStatus
from snmp_exporter.
pcap of snmpwalk attached
snmpwalk.tar.gz
[alarm@alarm generator]$ snmpwalk -On -v 2c -c public 192.168.1.1 1.3.6.1.2.1.10.251.1.2.2.1.1
.1.3.6.1.2.1.10.251.1.2.2.1.1.4.1 = INTEGER: 1
.1.3.6.1.2.1.10.251.1.2.2.1.1.4.2 = INTEGER: 2
[alarm@alarm generator]$ snmpwalk -On -v 2c -c public 192.168.1.1 1.3.6.1.2.1.10.251.1.2.2.1.2
.1.3.6.1.2.1.10.251.1.2.2.1.2.4.1 = Gauge32: 99998000
.1.3.6.1.2.1.10.251.1.2.2.1.2.4.2 = Gauge32: 26999000
from snmp_exporter.
Related Issues (20)
- how to update snmp.yaml and do not restart snmp_expoter
- Override help string
- collected metric was collected before with the same name and label values HOT 6
- No specific metrics are generated
- error collecting metric Desc{fqName: "snmp_error", help: "Error scraping target", constLabels: {module="okiprinter"}, variableLabels: {}}: error walking target ipv4: not in time window
- snmp_exporter does not parse InetAddressIPv4z correctly
- yaml/yq parser round-trip behavior: unmarshaling of integer keys in dicts HOT 2
- Go build error when trying to generate "generator" file HOT 6
- Handle connection failures on resolution failure HOT 2
- Sonicwall Firewall / snmp exporter / prometheus
- Generator - get without .0 + unwanted walk
- Make generator error 22 when downloading PICO-IPSEC-FLOW-MONITOR-MIB.txt HOT 1
- Can snmp_exporter read metrics from UPS Schneider ? HOT 3
- Extreme switch id not found
- SNMPv2 Expansion of Environment Variables
- Generator does not pick up eaton mibs
- Help needed creatinging custom generator.yml
- Specifying --config.file=~/snmp_exporter/generator/snmp.yml does not work
- Scans are slow every 5 minutes, with a single retry HOT 13
- MIB Table non-read-only indexes Get ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snmp_exporter.