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?

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/e45322db-27c9-47fc-ac64-95f105477dddn%40googlegroups.com.

Reply via email to