mackerel

手順 [#n9c27414]

 # curl -fsSL https://mackerel.io/assets/files/scripts/setup-yum.sh | sh
 This script requires superuser authority to configure Mackerel yum repository:
 ++ mktemp
 + gpgkey_path=/tmp/tmp.fj9XyZCeCV
 + curl -fsS -o /tmp/tmp.fj9XyZCeCV https://mackerel.io/assets/files/GPG-KEY-mackerel
 + rpm --import /tmp/tmp.fj9XyZCeCV
 + rm /tmp/tmp.fj9XyZCeCV
 + cat
 done
 To install mackerel-agent type: sudo yum install mackerel-agent
 # ls -l /etc/yum.repos.d/
 -rw-r--r--. 1 root root   90 11月 11 11:10 2015 mackerel.repo
 # yum install -y mackerel-agent
 # yum list installed | grep  mackerel
 mackerel-agent.noarch         0.24.1-1            @mackerel
 # sed -i.bak '1s:^:apikey = "aFHfVgSaRcM4wTDVU4KTwc4LwCu9H5p8u8XWbnSpG211"\'$'\n'':' /etc/mackerel- agent/mackerel-agent.conf
 # /etc/init.d/mackerel-agent start
 Starting mackerel-agent: [  OK  ]
 # /etc/init.d/mackerel-agent status
 mackerel-agent (pid  19999) を実行中...
 # chkconfig mackerel-agent --list
 mackerel-agent 	0:off	1:off	2:on	3:on	4:on	5:on	6:off