0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

VyOS1.1.8にMacarel-agentを入れる

Last updated at Posted at 2018-01-13

手順

1.mackerel-agentのセットアップスクリプトをダウンロード

vyos@vyos# sudo curl -L -O https://mackerel.io/file/script/setup-all-apt.sh

2.セットアップスクリプトに実行権限付与

vyos@vyos# sudo chmod +x setup-all-apt.sh

3.MACKEREL_APIKEY を指定してスクリプト実行

vyos@vyos# MACKEREL_APIKEY='hogehogehogehogehogehogehogeho' ./setup-all-apt.sh

4.実行が完了するとmackerel-agentが起動し、Mackerel側に自動的にホストが登録されます。

vyos@vyos# ps ax | grep mack
25073 pts/2    Sl     0:02 /usr/bin/mackerel-agent --pidfile=/var/run/mackerel-agent.pid --root=/var/lib/mackerel-agent

Debianへのargentインストール公式手順だと、wgetからの標準出力でシェルをそのまま実行していますが、それだとうまくいかないようです。

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?