Griesbacher / nagflux

A connector which copies performancedata from Nagios / Icinga(2) / Naemon to InfluxDB
GNU General Public License v2.0
65 stars 32 forks source link

Support for CentOS8 RHEL8 Rocky8 #62

Open DevYves89 opened 1 year ago

DevYves89 commented 1 year ago

It appears that 'go get' is no longer supported due to changes with golang.

The replacement command would be 'go install' which would replace both get & build.

e.g.

go install github.com/griesbacher/nagflux@latest

Unfortunately, this fails for me with the below error due to changes to prometheus.

go/pkg/mod/github.com/griesbacher/nagflux@v0.4.1/statistics/prometheus.go:110:39: undefined: prometheus.Handler

My understanding is that this line now needs to read promhttp.Handler not prometheus.Handler

Also, the import statement in this go file needs editing to include the prometheus promhttp module.

I have been unable to get this working as I have little experience with go projects.