Unable to setup Uptime Monitors in Ubuntu

While running the below command

./heartbeat setup

getting error as per below

bash: ./heartbeat: cannot execute binary file: Exec format error

Info:
OS: Ubuntu
Elasticsearch, Kibana version: 7.17.18

While setting up Uptime Monitor executed below commands
curl -L -O https://artifacts.elastic.co/downloads/beats/heartbeat/heartbeat-7.17.18-darwin-x86_64.tar.gz
tar xzvf heartbeat-7.17.18-darwin-x86_64.tar.gz
cd heartbeat-7.17.18-darwin-x86_64/

You are using darwin-x86_64 - Mac version on Ubuntu.
Try with: .deb or tar. Tar is the binary for any Linux platform.

1 Like

Oops.. Sorry executed Linux Deb for Ubuntu.

curl -L -O https://artifacts.elastic.co/downloads/beats/heartbeat/heartbeat-7.17.18-amd64.deb
sudo dpkg -i heartbeat-7.17.18-amd64.deb
sudo heartbeat setup
sudo service heartbeat-elastic start

Its working, Thank you !

1 Like

Thank you !