Comments (10)
Try -Nr 25 on the snmpbulkwalk. I smell hardware that is slower with increased batch sizes.
from snmp_exporter.
Looks like my snmp-tools have no options starting with N
.
from snmp_exporter.
Might be -Cr
from snmp_exporter.
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.
Hmm, those should be the same speed. Is anything odd apparent from a Tcpdump?
from snmp_exporter.
from snmp_exporter.
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.
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.
from snmp_exporter.
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)
- lookup creates empty labels HOT 3
- Get snmp context from param HOT 1
- context deadline exceeded HOT 1
- [PR proposal] HTTP API for config generation HOT 5
- Should we use https://github.com/librenms/librenms-mibs ? HOT 2
- When using `make docker-generate` get "Error generating config netsnmp" HOT 6
- Lookups with different destination index names from source_indexes names? (ifIndex values, but under different name) HOT 1
- SNMP exporter returns only one of both xdsl2ChStatusUnit HOT 3
- curl: (28) Failed to connect to www.circitor.fr port 443: Connection timed out HOT 2
- field scale not found in type config.Metric HOT 4
- Meraki SNMP.YML
- Add support for entPhySensorTable values HOT 3
- How to detect that private MIB files conform to this program
- Packets crawled using snmp_exporter are in {}; how to solve the problem
- Lookups returning empty strings on Checkpoint MIB HOT 13
- Inconsistent support of IPv6 literals
- Setting a non-default retries value for any module affects all modules
- servertech_sentry3 scraping broke between 0.20.0 and 0.21.0 HOT 13
- canβt find gcc-g++ pkg in rhel HOT 3
- curl: option --no-progress-meter: is unknown
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.