Skip to content

Instantly share code, notes, and snippets.

@yukirii
Created August 7, 2016 20:44
Show Gist options
  • Save yukirii/01ef4f6ec7d387ea0ad600d8042fb4dc to your computer and use it in GitHub Desktop.
Save yukirii/01ef4f6ec7d387ea0ad600d8042fb4dc to your computer and use it in GitHub Desktop.
sudo yum install -y epel-release
sudo yum -y install erlang

## install rabbitmq
sudo yum install -y socat
sudo rpm --import http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
sudo rpm -Uvh http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.4/rabbitmq-server-3.6.4-1.noarch.rpm
sudo chkconfig rabbitmq-server on
sudo /etc/init.d/rabbitmq-server start
sudo rabbitmq-plugins enable rabbitmq_management

## install redis
sudo yum -y install redis
sudo chkconfig redis on
sudo systemctl start redis
sudo rabbitmqctl add_vhost /sensu
sudo rabbitmqctl add_user sensu sensu
sudo rabbitmqctl set_permissions -p /sensu sensu ".*" ".*" ".*"
sudo vim etc/yum.repos.d/sensu.repo
[sensu]
name=sensu-main
baseurl=http://repositories.sensuapp.org/yum/$basearch/
gpgcheck=0
enabled=1

sudo yum -y install sensu
sudo cp /etc/sensu/config.json.example /etc/sensu/config.json
sudo /etc/init.d/sensu-server start
sudo /etc/init.d/sensu-client start
sudo /etc/init.d/sensu-api start
sudo chkconfig sensu-server on
sudo chkconfig sensu-client on
sudo chkconfig sensu-api on
sudo yum install -y uchiwa

sudo /etc/init.d/uchiwa start
sudo chkconfig uchiwa on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment