3
3

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.

sensuのインストール方法を調べてみた(が設定がよくわからん)

Posted at

公式のDocument

CentOS6にインストールしてみた

/etc/yum.repos.d/sensu.repo
[sensu]
name=sensu-main
baseurl=http://repos.sensuapp.org/yum/el/$releasever/$basearch/
gpgcheck=0
enabled=1
sensuインストール
yum install -y epel-release
yum install -y rabbitmq-server redis sensu uchiwa
cp -p /etc/sensu/config.json{.example,}
for s in rabbitmq-server redis sensu-api sensu-server sensu-client uchiwa
do
  service $s restart
done

/etc/sensu/conf.d/README.md を参考にjsonファイルを作ってみる。

/etc/sensu/conf.d/client.json
{
  "client": {
    "name": "localhost",
    "address": "127.0.0.1",
    "subscriptions": [
      "test"
    ]
  }
}
/etc/sensu/conf.d/graphite_handler.json
{
  "handlers": {
    "graphite": {
      "type": "tcp",
      "socket": {
        "host": "127.0.0.1",
        "port": 2003
      },
      "mutator": "only_check_output"
    }
  }
}

サービスを再起動させてどうか・・・

http://サーバのIP:3000/ にアクセスするとuchiwaのdashboardが表示されます。

スクリーンショット 2014-09-05 14.18.54.png

CentOS7で動かそうとしたがダメでした。。

  • RabbitMQが起動失敗する。
/etc/resolv.conf
+ options single-request-reopen"
yum groupinstall -y "@Development Tools"
yum install -y epel-release
yum install -y rabbitmq-server
systemctl start rabbitmq-server
systemctl status rabbitmq-server -l
rabbitmqのログ
/var/log/rabbitmq/rabbit@localhost.log
sensuのインストール
git clone https://github.com/sensu/sensu.git
yum install -y gem ruby-devel
gem install rake bundle rspec eventmachine
/usr/local/bin/bundle install
/usr/local/bin/rake -f Rakefile
3
3
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
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?