You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
blackbox_exporter seems to have the same problem with the dns_prober (at least), so there may be some code in a common library that needs fixing.
The string "missing port in address" doesn't exist in the snmp_exporter repository. It most likely comes from the go stdlib src/net/ipsock.go. Prometheus itself has code which tests for it:
./web/api/v1/api.go: if err != nil && strings.HasSuffix(err.Error(), "missing port in address") {
The text was updated successfully, but these errors were encountered:
Host operating system: output of
uname -a
snmp_exporter version: output of
snmp_exporter -version
What did you do that produced an error?
Supplying a target IPv6 literal with square brackets but without a port.
curl -gvsS 'localhost:9116/snmp?target=2001:db8::1&module=if_mib&auth=public_v2'
curl -gvsS 'localhost:9116/snmp?target=[2001:db8::1]:161&module=if_mib&auth=public_v2'
curl -gvsS 'localhost:9116/snmp?target=[2001:db8::1]&module=if_mib&auth=public_v2'
The output in the latter case:
Note the address
[[2001:db8::1]]:161
- it looks like something has gone wrong when appending the default port.Additional info
Discussion: https://groups.google.com/g/prometheus-users/c/xdaiJZqm8G4
blackbox_exporter seems to have the same problem with the dns_prober (at least), so there may be some code in a common library that needs fixing.
The string "missing port in address" doesn't exist in the snmp_exporter repository. It most likely comes from the go stdlib src/net/ipsock.go. Prometheus itself has code which tests for it:
The text was updated successfully, but these errors were encountered: