How to set custommer community in snmp_exporter's configuration?

42 views
Skip to first unread message

Jeyrce Lu

unread,
Jan 26, 2021, 3:17:13 AM1/26/21
to Prometheus Users
I  had change the switch community from "public" to "sxzq", and write configuration in snmp.yml like this:

apcups:
auth:
community: sxzq
walk:
- 1.3.6.1.2.1.1.3
- 1.3.6.1.2.1.2
- 1.3.6.1.4.1.318.1.1.1.12
- 1.3.6.1.4.1.318.1.1.1.2
- 1.3.6.1.4.1.318.1.1.1.3
- 1.3.6.1.4.1.318.1.1.1.4
- 1.3.6.1.4.1.318.1.1.1.7.2
- 1.3.6.1.4.1.318.1.1.1.8.1
- 1.3.6.1.4.1.318.1.1.10.2.3.2
metrics:
- name: sysUpTime
oid: 1.3.6.1.2.1.1.3
type: gauge

But it did't worked,  I saw the log:

time="2021-01-26T15:54:31+08:00" level=error msg="Error scraping target 10.10.90.241: Error walking target 10.10.90.241: Request timeout (after 3 retries)" source="collector.go:125"


Is there something wrong with my configuration?
Reply all
Reply to author
Forward
0 new messages