1. prereq

# curl -s https://packagecloud.io/install/repositories/sensu/stable/script.rpm.sh | sh
vi /etc/yum.repos.d/sensu_stable.repo
[sensu_stable]
name=sensu_stable
baseurl=https://packagecloud.io/sensu/stable/el/7/$basearch/
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packagecloud.io/sensu/stable/gpgkey
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300

[sensu_stable-source]
name=sensu_stable-source
baseurl=https://packagecloud.io/sensu/stable/el/7/SRPMS/
repo_gpgcheck=1
gpgcheck=0
enabled=0
gpgkey=https://packagecloud.io/sensu/stable/gpgkey
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300

2. installation

2.1. server

 yum -y install sensu-go-backend
# cp -pv /usr/share/doc/sensu-go-backend-5.17.1/backend.yml.example /etc/sensu/backend.yml
 wget -N -nv https://docs.sensu.io/sensu-go/latest/files/backend.yml -P /etc/sensu/
 systemctl enable sensu-backend
 systemctl start sensu-backend
export SENSU_BACKEND_CLUSTER_ADMIN_USERNAME=admin
export SENSU_BACKEND_CLUSTER_ADMIN_PASSWORD=Passw0rd
sensu-backend init
curl -s http://srv121.d01.net:8080/health | grep Healthy

2.2. agent

yum -y install sensu-go-agent
wget -N -nv https://docs.sensu.io/sensu-go/latest/files/agent.yml -P /etc/sensu/
systemctl enable sensu-agent
systemctl start sensu-agent
sensuctl configure -n --url http://srv121.d01.net:8080 --username admin --password Passw0rd --format tabular
wget https://s3-us-west-2.amazonaws.com/sensu.io/sensu-go/5.17.1/sensu-go_5.17.1_linux_armv7.tar.gz

2.3. cli

yum -y install sensu-go-cli
sensuctl configure -n \
       --username admin \
       --password Passw0rd \
       --namespace default \
       --url 'http://srv121.d01.net:8080'

3. references