request timeout error for Juniper switch, how to resolve it? #689
Unanswered
rahulkumarmaurya
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Prometheus server is unable to fetch SNMP data from Juniper switch.
Logs on Prometheus server
level=info ts=2021-10-05T09:43:49.967Z caller=main.go:152 msg="Starting snmp_exporter" version="(version=0.20.0, branch=HEAD, revision=c33572b6c8c8e43a479fde0f9fa8ac86e15598bc)"
level=info ts=2021-10-05T09:43:49.967Z caller=main.go:153 build_context="(go=go1.15.8, user=root@eebd39e6960e, date=20210212-11:37:48)"
level=info ts=2021-10-05T09:43:50.082Z caller=main.go:246 msg="Listening on address" address=:9116
level=info ts=2021-10-05T09:43:50.083Z caller=tls_config.go:191 msg="TLS is disabled." http2=false
level=info ts=2021-10-05T09:44:28.905Z caller=collector.go:224 module=if_mib target=172.16.160.2 msg="Error scraping target" err="error getting target 172.16.160.2: request timeout (after 3 retries)"
GUI Logs from Prometheus Server
An error has occurred while serving metrics:
error collecting metric Desc{fqName: "snmp_error", help: "Error scraping target", constLabels: {}, variableLabels: []}: error getting target 172.16.160.2: request timeout (after 3 retries)
Juniper Switch Logs
Oct 5 09:44:08 switch-01 snmpd[1289]: SNMPD_AUTH_FAILURE: nsa_log_community: unauthorized SNMP community from 172.16.171.38 to 172.16.160.2 (public)
Oct 5 09:44:13 switch-01 snmpd[1289]: SNMPD_AUTH_FAILURE: nsa_log_community: unauthorized SNMP community from 172.16.171.38 to 172.16.160.2 (public)
Note:- Prometheus server is able to ping and ssh to Juniper switch.
node_exporter is working fine without any issue, facing issue only for snmp_exporter.
Beta Was this translation helpful? Give feedback.
All reactions