snmpwalk -v2c -m +PowerNet-MIB -c mycommunitystring 192.168.16.22 1.3.6.1.4.1.318.1.1.1.1.1.2
PowerNet-MIB::upsBasicIdentName.0 = STRING: "UPS_IDEN"
time="2018-10-24T16:01:42-05:00" level=debug msg="Scraping target '192.168.16.29' with module 'apcups'" source="main.go:86"
time="2018-10-24T16:01:42-05:00" level=debug msg="Getting 3 OIDs from target \"192.168.16.29\"" source="collector.go:103"
time="2018-10-24T16:01:42-05:00" level=debug msg="Get of 3 OIDs completed in 34.807046ms" source="collector.go:109"
time="2018-10-24T16:01:42-05:00" level=debug msg="Walking target \"192.168.16.29\" subtree \"1.3.6.1.2.1.2\"" source="collector.go:133"
time="2018-10-24T16:01:42-05:00" level=debug msg="Walk of target \"192.168.16.29\" subtree \"1.3.6.1.2.1.2\" completed in 544.912645ms" source="collector.go:143"
time="2018-10-24T16:01:42-05:00" level=debug msg="Walking target \"192.168.16.29\" subtree \"1.3.6.1.4.1.318.1.1.1.12\"" source="collector.go:133"
time="2018-10-24T16:01:49-05:00" level=debug msg="Scraping target '192.168.16.22' with module 'apcups'" source="main.go:86"
time="2018-10-24T16:01:49-05:00" level=debug msg="Getting 3 OIDs from target \"192.168.16.22\"" source="collector.go:103"
time="2018-10-24T16:01:49-05:00" level=debug msg="Get of 3 OIDs completed in 100.669286ms" source="collector.go:109"
time="2018-10-24T16:01:49-05:00" level=debug msg="Walking target \"192.168.16.22\" subtree \"1.3.6.1.2.1.2\"" source="collector.go:133"
time="2018-10-24T16:01:50-05:00" level=debug msg="Walk of target \"192.168.16.22\" subtree \"1.3.6.1.2.1.2\" completed in 506.247039ms" source="collector.go:143"
time="2018-10-24T16:01:50-05:00" level=debug msg="Walking target \"192.168.16.22\" subtree \"1.3.6.1.4.1.318.1.1.1.12\"" source="collector.go:133"
time="2018-10-24T16:01:50-05:00" level=debug msg="Walk of target \"192.168.16.29\" subtree \"1.3.6.1.4.1.318.1.1.1.12\" completed in 7.428172487s" source="collector.go:143"
time="2018-10-24T16:01:50-05:00" level=debug msg="Walking target \"192.168.16.29\" subtree \"1.3.6.1.4.1.318.1.1.1.2\"" source="collector.go:133"
time="2018-10-24T16:01:50-05:00" level=debug msg="Walk of target \"192.168.16.29\" subtree \"1.3.6.1.4.1.318.1.1.1.2\" completed in 423.601772ms" source="collector.go:143"
time="2018-10-24T16:01:50-05:00" level=debug msg="Walking target \"192.168.16.29\" subtree \"1.3.6.1.4.1.318.1.1.1.3\"" source="collector.go:133"
time="2018-10-24T16:01:51-05:00" level=debug msg="Walk of target \"192.168.16.22\" subtree \"1.3.6.1.4.1.318.1.1.1.12\" completed in 818.196309ms" source="collector.go:143"
time="2018-10-24T16:01:51-05:00" level=debug msg="Walking target \"192.168.16.22\" subtree \"1.3.6.1.4.1.318.1.1.1.2\"" source="collector.go:133"
time="2018-10-24T16:01:51-05:00" level=debug msg="Walk of target \"192.168.16.29\" subtree \"1.3.6.1.4.1.318.1.1.1.3\" completed in 470.443788ms" source="collector.go:143"
time="2018-10-24T16:01:51-05:00" level=debug msg="Walking target \"192.168.16.29\" subtree \"1.3.6.1.4.1.318.1.1.1.4\"" source="collector.go:133"
time="2018-10-24T16:01:51-05:00" level=debug msg="Walk of target \"192.168.16.22\" subtree \"1.3.6.1.4.1.318.1.1.1.2\" completed in 317.104656ms" source="collector.go:143"
time="2018-10-24T16:01:51-05:00" level=debug msg="Walking target \"192.168.16.22\" subtree \"1.3.6.1.4.1.318.1.1.1.3\"" source="collector.go:133"
time="2018-10-24T16:01:51-05:00" level=debug msg="Walk of target \"192.168.16.29\" subtree \"1.3.6.1.4.1.318.1.1.1.4\" completed in 368.865275ms" source="collector.go:143"
time="2018-10-24T16:01:51-05:00" level=debug msg="Walking target \"192.168.16.29\" subtree \"1.3.6.1.4.1.318.1.1.1.7.2\"" source="collector.go:133"
time="2018-10-24T16:01:51-05:00" level=debug msg="Walk of target \"192.168.16.22\" subtree \"1.3.6.1.4.1.318.1.1.1.3\" completed in 383.5979ms" source="collector.go:143"
time="2018-10-24T16:01:51-05:00" level=debug msg="Walking target \"192.168.16.22\" subtree \"1.3.6.1.4.1.318.1.1.1.4\"" source="collector.go:133"
time="2018-10-24T16:01:52-05:00" level=debug msg="Scraping target '192.168.16.33' with module 'apcups'" source="main.go:86"
| Endpoint | State | Labels | Last Scrape | Error |
|---|---|---|---|---|
| http://127.0.0.1:9116/snmp module="apcups" target="192.168.16.22" | DOWN | instance="192.168.16.22" | 15.566s ago | server returned HTTP status 500 Internal Server Error |
| http://127.0.0.1:9116/snmp module="apcups" target="192.168.16.29" | DOWN | instance="192.168.16.29" | 22.81s ago | context deadline exceeded |
| http://127.0.0.1:9116/snmp module="apcups" target="192.168.16.33" | UP | instance="192.168.16.33" | 13.169s ago |
--
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 prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/b984cdbe-cd5d-4530-8eac-c60d6d3ad4a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
curl -v http://myserver:9116/snmp?module=apcups&target=192.168.16.33
[root@myserver snmp_exporter]# * About to connect() to myserver port 9116 (#0)
* Trying fe80::95f6:b70:e85c:ead3...
* Connected to myserver (fe80::95f6:b70:e85c:ead3) port 9116 (#0)
> GET /snmp?module=apcups HTTP/1.1
> User-Agent: curl/7.29.0
> Host: myserver:9116
> Accept: */*
>
< HTTP/1.1 400 Bad Request
< Content-Type: text/plain; charset=utf-8
< X-Content-Type-Options: nosniff
< Date: Thu, 25 Oct 2018 16:12:09 GMT
< Content-Length: 37
<
'target' parameter must be specified
* Connection #0 to host myserver left intact
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/8ee48ed8-dcf8-4316-af29-d52bc725d9ba%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/ea3738ed-b410-44de-b02f-ce5e1615f24d%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/36febbe9-d76e-4ab9-b6c5-5a2eb55ae7ef%40googlegroups.com.
| Element | Value |
|---|---|
| scrape_duration_seconds{instance="192.168.16.18",job="snmp"} | 9.264275752 |
| scrape_duration_seconds{instance="192.168.16.20",job="snmp"} | 8.267845698 |
| scrape_duration_seconds{instance="192.168.16.22",job="snmp"} | 10.000491527 |
| scrape_duration_seconds{instance="192.168.16.26",job="snmp"} | 8.57521429 |
| scrape_duration_seconds{instance="192.168.16.29",job="snmp"} | 10.000354781 |
| scrape_duration_seconds{instance="192.168.16.33",job="snmp"} | 2.745934816 |
| scrape_duration_seconds{instance="192.168.16.6",job="snmp"} | 9.571652629999999 |
| scrape_duration_seconds{instance="192.168.16.7",job="snmp"} | 9.62274709 |
| scrape_duration_seconds{instance="192.168.16.9",job="snmp"} | 10.000474457 |
| scrape_duration_seconds{instance="localhost:9090",job="prometheus"} | 0.005037188 |
| scrape_duration_seconds{instance="localhost:9100",job="node_exporter"} | 0.000745088 |
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/2b7d7d35-a193-4d10-92f3-8dd6135ee657%40googlegroups.com.