公式の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が表示されます。
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
