If you show what you actually did, and what error you got back, someone might be able to help.
On Friday, 26 August 2022 at 17:24:30 UTC+1 [email protected] wrote: > I tried all the options on the web but had no luck. > > On Thursday, August 25, 2022 at 4:19:45 PM UTC-5 Charan Tej wrote: > >> Ben, >> >> Thank you, I was able to proceed after upgrading go version, but the >> latest errors are when I do "make build". Do you have any idea? the mibs >> directory was created but nothing inside. >> >> #make mibs >> mkdir: created directory ‘mibs’ >> >> Downloading apc-powernet-mib >> make: *** [mibs/apc-powernet-mib] Error 22 >> >> *Thank you,* >> *Charan Jalakam* >> >> >> >> On Fri, Aug 19, 2022 at 11:25 AM Ben Kochie <[email protected]> wrote: >> >>> This is likely because your Go compiler is too old. >>> >>> Make sure you have the latest version of Go installed. >>> >>> https://go.dev/dl/ >>> >>> On Fri, Aug 19, 2022 at 6:22 PM Charan Tej <[email protected]> wrote: >>> >>>> 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 >>>> >>>> <https://groups.google.com/d/msgid/prometheus-users/5cde3582-6a2f-4ec5-b057-efdf1577e505n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- 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/162f78bf-330b-4a03-abc9-7b86381cd192n%40googlegroups.com.

