Skip to content

Instantly share code, notes, and snippets.

@astj
Last active June 20, 2017 15:27
Embed
What would you like to do?

Mackerel Agent on QNAP

This is how to run mackerel-agent in my QNAP.

Prepare forked version

https://github.com/astj/mackerel-agent/tree/qts

build a binary

See known problem!

GOOS=linux GOARCH=arm GOARM=5 make build

Transfer

over01.local is my QNAP.

scp build/mackerel-agent over01.local:~/

Check

ssh over01.local
./mackerel-agent version # It must say something

Deployment

ssh over01.local
/share/MD0_DATA/etc/init.d/mackerel-agent.sh stop # If running
cp ./mackerel-agent /share/MD0_DATA/usr/bin/mackerel-agent # overwrite

Start agent

ssh over01.local
/share/MD0_DATA/etc/init.d/mackerel-agent.sh start
ps auxf | grep mackerel # You should see mackerel-agent running
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment