joshuar / pingbeat

DEPRECATED. Pingbeat sends ICMP packets and stores the RTT in Elasticsearch or other outputs supported by libbeat.
Apache License 2.0
55 stars 19 forks source link

README.md is outdated rendering installation extremely arduous #33

Open ThrosturX opened 6 years ago

ThrosturX commented 6 years ago

There are several issues with the installation steps in README.md:

There are more problems with the Makefile:

I've never had such problems building a binary from source...

ThrosturX commented 6 years ago

Here is a quick workaround to build the binary, until this is solved:

$ go get github.com/joshuar/pingbeat
$ cd $GOPATH/github.com/elastic/beats
$ git checkout 5.6
$ cd $GOPATH/github.com/joshuar/pingbeat
$ go build

At this point pingbeat binary exists at $GOPATH/github.com/joshuar/pingbeat and can be moved into a $PATH location.

polishsputnik commented 6 years ago

This workaround doesn't seem to like Go 1.8.... Getting "syntax error: unexpected = in type declaration"

geokal commented 6 years ago
go get github.com/joshuar/pingbeat
# github.com/joshuar/pingbeat/beater
../go/src/github.com/joshuar/pingbeat/beater/pingbeat.go:29:14: undefined: publisher.Client

On OSX Sierra do a go env see where your GOPATH is and cd into it and find pingbeat under src/github.com/ then do a brew install glide and then follow @ThrosturX instructions. Then you are good to go. Under /Users/yourHomeFolder/go/src/github.com/joshuar/pingbeat do a ./pingbeat -h to see the options. See also getting started guide https://github.com/joshuar/pingbeat/blob/master/docs/gettingstarted.asciidoc