-
Notifications
You must be signed in to change notification settings - Fork 600
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
snmp configuration file can not poll my switch #78
Comments
This is likely due to timeouts. SNMP devices can be very slow. Have you tested using a utility like The SNMP exporter has a hard-coded timeout of 60 seconds. How long does it take to SNMP walk the device? |
A full walk will (almost) always take longer than the few snmpbulkgets snmp_exporter does by default. That being said, you still want to look at the error it gives you via http. In general, please never ever make screen shots of text. Past the text in here, instead. Everything else makes it very hard to read, and help you... |
SuperQ how can i make that curl against the SNMP exporter URL to see if it times out? |
whenn i browser http error collecting metric Desc{fqName: "snmp_error", help: "Error scraping target", constLabels: {}, variableLabels: []}: Error walking target 172.16.10.1: Request timeout (after 3 retries) |
Yes, it seems like your SNMP device is very slow to respond. The timeouts are currently hard-coded, and you'll have to edit them yourself and re-build the snmp_exporter. See: https://github.com/prometheus/snmp_exporter/blob/master/collector.go#L42 |
i test 6 switches and the same result .....always the status is down |
Changing the scrape_interval will not affect the internal timeouts in the exporter. The problem is the snmp_exporter is unable to communicate with your switches, or they take too long to respond. |
SuperQ thank you ....how can i rebuld the file where can i find collector.go |
i rebuld it still did not work |
Hi, this is a problem with your procurve switch. The IP (VLAN) of the request is another one than the reply address. |
I got the same error message from the snmp exporter when talking to a switch and ended up here after a little searching. Figured I'd add my findings in case somebody else ends up here. I played about with snmpwalk in the command line, stepping up through the protocol levels (I'm new to SNMP). Note, when it fails, the response message also indicates a timeout. I ended up with snmp v3 with the security level and user name taken from the switch management interface info. snmpwalk then returned the desired info. snmpwalk -v1 -c public 172.ip.add.ress snmpwalk -v2c -c public 172.ip.add.ress snmpwalk -v3 -lnoAuthNoPriv -u guest 172.ip.add.ress Added the following to the snmp.yml file:
|
hallo i iam new in this sector
i downlload it and aplly all steps
nodes is okey
my problem is
whenn i add snmp device , it can not show anything from him and it can not even pollen
but with snmpwalk from same machine works good i do not know where the problem
please look at the photos and tell me what muss i change
thank you
The text was updated successfully, but these errors were encountered: