Skip to content

Instantly share code, notes, and snippets.

@Zorlin
Created September 29, 2020 14:00
Show Gist options
  • Save Zorlin/f0d7fdfd6fc984f5873db8d21741a151 to your computer and use it in GitHub Desktop.
Save Zorlin/f0d7fdfd6fc984f5873db8d21741a151 to your computer and use it in GitHub Desktop.
scrutiny-arm

Hi there,

This is a rough guide on getting "scrutiny" up and running on armv7/armhf. Expect an update for arm64 later, hopefully.

I did this as I wanted to use scrutiny with my ODROID HC2 units which are not amd64-based.

Pre-requisites

Start with an Ubuntu 20.04 or Debian 10 installation running on an armhf board.

armbian with the legacy kernel is probably your best bet on hc1/hc2.

# Install build tools
sudo apt install build-essential
# Install build dependencies
sudo apt install smartmontools golang 
# Install more build dependencies (nodeJS)
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs

Grabbing the code

Pull down and extract the latest version of scrutiny

wget https://github.com/AnalogJ/scrutiny/archive/0.2.4.tar.gz
tar xf 0.2.4.tar.gz scrutiny-0.2.4/

Building the code

cd scrutiny-0.2.4/
go build webapp/backend/cmd/scrutiny/scrutiny.go
go build collector/cmd/collector-metrics/collector-metrics.go
mv scrutiny scrutiny-web-linux-armhf
mv collector-metrics scrutiny-collector-metrics-linux-armhf

Getting up and running

Use the manual installation guide here - https://github.com/AnalogJ/scrutiny/blob/master/docs/INSTALL_MANUAL.md -

but when it says to use amd64 binaries, use your own armhf binaries.

It's advisable to copy them to /etc/scrutiny/bin like you would normally.

You could also try out https://github.com/Zorlin/scrutiny-playbook if you're feeling adventurous. You'll need to edit the crontab to use the armhf binary instead of arm64, but it will save you some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment