Giter VIP home page Giter VIP logo

Comments (3)

SuperQ avatar SuperQ commented on June 19, 2024

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.

micharambou avatar micharambou commented on June 19, 2024

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.

micharambou avatar micharambou commented on June 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.