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?