Giter VIP home page Giter VIP logo

Comments (10)

brian-brazil avatar brian-brazil commented on May 23, 2024

Try -Nr 25 on the snmpbulkwalk. I smell hardware that is slower with increased batch sizes.

from snmp_exporter.

Andor avatar Andor commented on May 23, 2024

Looks like my snmp-tools have no options starting with N.

from snmp_exporter.

brian-brazil avatar brian-brazil commented on May 23, 2024

Might be -Cr

from snmp_exporter.

Andor avatar Andor commented on May 23, 2024

Nope, looks it work even faster:

[andor@hostname ~]$ time snmpbulkwalk -C r25 -v 2c -c community $target 1.3.6.1.2.1.2 > /dev/null

real    0m8.356s
user    0m0.052s
sys     0m0.011s
[andor@hostname ~]$ time snmpbulkwalk -C r25 -v 2c -c community $target 1.3.6.1.2.1.31.1.1 > /dev/null

real    0m7.783s
user    0m0.049s
sys     0m0.009s

from snmp_exporter.

brian-brazil avatar brian-brazil commented on May 23, 2024

Hmm, those should be the same speed. Is anything odd apparent from a Tcpdump?

from snmp_exporter.

RichiH avatar RichiH commented on May 23, 2024

from snmp_exporter.

truedays avatar truedays commented on May 23, 2024

Just started looking at Prometheus snmp_exporter, but here's my theory..

net-snmp's snmpbulkwalk defaults are:
retry (-r) 5
max-repetitions (-Cr) 10
timeout (-t) 1

While collector.go has
snmp.Retries = 3
snmp.MaxRepetitions = 25
snmp.Timeout = time.Second * 60

timeout is the time between the initial get-request and the corresponding get-response until it sends another duplicate get-request (UDP-style handshake).

I think you'll get comparable times if you more closely mirror the SNMP arguments used by collector.go

COMMUNITY='public'
TARGET='127.0.0.1'
time { for i in 1.3.6.1.2.1.{2,31.1.1,1.3}; do snmpbulkwalk -v2c -c ${COMMUNITY} -r3 -Cr25 -t60 ${TARGET} ${i}& done; wait; }

from snmp_exporter.

brian-brazil avatar brian-brazil commented on May 23, 2024

I don't think that explanation does it, as we'd be seeing times of over a minute if that were the case.

from snmp_exporter.

RichiH avatar RichiH commented on May 23, 2024

from snmp_exporter.

Andor avatar Andor commented on May 23, 2024

Sorry, but i can't share pcap's.
Sorry, but it was my mistake, compared with different targets :D

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.