I have the same error.
I have installed snmp exporter on same centsos 7 machine that has prometheus installed, but after staring snmp exporter, I m getting this error on screen until I kill the exporter process.
I am new to Prometheus, I shall really appreciate any help.
[root@ansimaster-centos snmp_exporter-0.6.0.linux-amd64]# ./snmp_exporter &[1] 24876[root@ansimaster-centos snmp_exporter-0.6.0.linux-amd64]#
INFO[0000] Starting snmp exporter (version=0.6.0, branch=HEAD, revision=4388d6815791d6d616098f899110c9dca354028c)
source="main.go:125"
INFO[0000] Build context (go=go1.8.3, user=root@fd9cde4d0842, date=20170822-11:04:46)
source="main.go:126"
INFO[0000] Listening on :9116
source="main.go:205"^C[root@ansimaster-centos snmp_exporter-0.6.0.linux-amd64]# ser
INFO[0014] Error scraping target
10.142.0.3: Error walking target
10.142.0.3: Error reading from UDP: read udp 10.142.0.3:47276->
10.142.0.3:161: read: connection refused
source="collector.go:126"
INFO[0029] Error scraping target
10.142.0.3: Error walking target
10.142.0.3: Error reading from UDP: read udp 10.142.0.3:51632->
10.142.0.3:161: read: connection refused
source="collector.go:126"
INFO[0044] Error scraping target
10.142.0.3: Error walking target
10.142.0.3: Error reading from UDP: read udp 10.142.0.3:46459->
10.142.0.3:161: read: connection refused
source="collector.go:126"
INFO[0059] Error scraping target
10.142.0.3: Error walking target
10.142.0.3: Error reading from UDP: read udp 10.142.0.3:32984->
10.142.0.3:161: read: connection refused
source="collector.go:126"
INFO[0074] Error scraping target
10.142.0.3: Error walking target
10.142.0.3: Error reading from UDP: read udp 10.142.0.3:47966->
10.142.0.3:161: read: connection refused
source="collector.go:126"
INFO[0089] Error scraping target
10.142.0.3: Error walking target
10.142.0.3: Error reading from UDP: read udp 10.142.0.3:56880->
10.142.0.3:161: read: connection refused
source="collector.go:126"
INFO[0104] Error scraping target
10.142.0.3: Error walking target
10.142.0.3: Error reading from UDP: read udp 10.142.0.3:37946->
10.142.0.3:161: read: connection refused
source="collector.go:126"
INFO[0119] Error scraping target
10.142.0.3: Error walking target
10.142.0.3: Error reading from UDP: read udp 10.142.0.3:58843->
10.142.0.3:161: read: connection refused
source="collector.go:126"^C[root@ansimaster-centos snmp_exporter-0.6.0.linux-amd64]# ^C[root@ansimaster-centos snmp_exporter-0.6.0.linux-amd64]# ^C[root@ansimaster-centos snmp_exporter-0.6.0.linux-amd64]# ^C[root@ansimaster-centos snmp_exporter-0.6.0.linux-amd64]#
INFO[0134] Error scraping target
10.142.0.3: Error walking target
10.142.0.3: Error reading from UDP: read udp 10.142.0.3:39957->
10.142.0.3:161: read: connection refused
source="collector.go:126"^C[root@ansimaster-centos snmp_exporter-0.6.0.linux-amd64]# ^C[root@ansimaster-centos snmp_exporter-0.6.0.linux-amd64]# ^C[root@ansimaster-centos snmp_exporter-0.6.0.linux-amd64]# pkill snmp[root@ansimaster-centos snmp_exporter-0.6.0.linux-amd64]#