bluerail / zabbix-passenger

Monitoring the Passenger application server with Zabbix
3 stars 6 forks source link

Unaviable to compile #1

Open k2name opened 1 year ago

k2name commented 1 year ago

~/t/zabbix-passenger (master)> go version go version go1.19 linux/amd64

~/t/zabbix-passenger (master)> go build zabbix-passenger.go

zabbix-passenger.go:7:2: no required module provides package golang.org/x/net/html/charset: go.mod file not found in current directory or any parent directory; see 'go help modules'
zabbix-passenger.go:8:2: no required module provides package gopkg.in/alecthomas/kingpin.v2: go.mod file not found in current directory or any parent directory; see 'go help modules'
zabbix-passenger.go:9:2: no required module provides package gopkg.in/xmlpath.v2: go.mod file not found in current directory or any parent directory; see 'go help modules'

Maybe need add go.mod to repo? Thank.

lauer commented 1 month ago

I am not a go developer either, but used an half hour to figure, that you can just run the following in the directory, after changing the location of the kingpin.v2 requirement from gopkg.in/alecthomas/kingpin.v2 to github.com/alecthomas/kingpin/v2 in zabbix-passenger.go

And then

go mod init zabbix-passenger
go mod tidy
go build zabbix-passenger.go

But the build was for no reason, (needed it for freebsd) - because this small app did not give me enough usefull information from passenger-status

rvanlieshout commented 1 month ago

Thank you for taking the time to debug this @lauer. I'm afraid we're going to archive this project. Feel free to continue on it

rvanlieshout commented 1 month ago

(and use passenger-status --show=json)