Hello All,
I am trying to install snmp-exporter in RHEL 7 and following the commands
from the Github repo.
sudo yum install gcc gcc-c++ make net-snmp net-snmp-utils net-snmp-libs
net-snmp-devel --- done
go get github.com/prometheus/snmp_exporter/generator -- latest error is
below,
# github.com/gosnmp/gosnmp
/root/go/src/github.com/gosnmp/gosnmp/gosnmp.go:351:72: unknown field
'Control' in struct literal of type net.Dialer
/root/go/src/github.com/gosnmp/gosnmp/v3_usm.go:159:9: undefined:
strings.Builder
Initial error (package gopkg.in/yaml.v2: unrecognized import path
"gopkg.in/yaml.v2" (parse) , I thought "go get" was deprecated and as a
workaround I tried
wget https://storage.googleapis.com/golang/getgo/installer_linux
chmod +x installer_linux
source /root/.bash_profile
go install github.com/prometheus/snmp_exporter@latest --
can't load package: package github.com/prometheus/snmp_exporter@latest:
cannot find package "github.com/prometheus/snmp_exporter@latest" in any of:
/usr/lib/golang/src/github.com/prometheus/snmp_exporter@latest (from
$GOROOT)
/root/go/src/github.com/prometheus/snmp_exporter@latest (from $GOPATH)
Next steps:
cd ${GOPATH-$HOME/go}/src/github.com/prometheus/snmp_exporter/generator
go build
make mibs
I spent almost a week trying to figure out how to get this working, if
someone could help me with all the steps for installing snmp-exporter for
Prometheus in RHEL 7, I would greatly appreciate it.
--
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/5cde3582-6a2f-4ec5-b057-efdf1577e505n%40googlegroups.com.