monitoringsensuprocess-monitoringprocess-monitor

How to install Sensu client without installing Sensu server?


I am trying to install a Sensu client without the server.

According to the documentation:

"The Sensu Core package installs several processes including sensu-server, sensu-api, and sensu-client."

However after adding the repository, I was only able to locate the aggragate sensu package and could not locate or install sensu-client.

I noticed a ticket on github stating it was not possible however that was 2 years ago so maybe things have changed?

Is it possible to install Sensu server without having to install Redis, RabbitMQ and Sensu server?


Solution

  • The sensu package will install sensu-server, sensu-api, and sensu-client services, you can however, setup a functional sensu-client without installing Redis, RabbitMQ, and without configuring sensu-server.

    sudo yum install sensu
    vi /etc/sensu/config.json 
    vi /etc/sensu/conf.d/client.json
    sudo /etc/init.d/sensu-client start
    sudo /sbin/chkconfig sensu-client on
    

    /etc/sensu/config.json should at least have the rabbitmq location of the server, while /etc/sensu/conf.d/client.json of course needs to have the ip and name of the client.