How To Install Sensu on CentOS 7

r00t November 3, 2017

Install Sensu on CentOS 7

In this tutorial we will show you how to install Sensu on your CentOS 7 server. For those of you who didn’t know, For those of you who didn’t know, For those of you who didn’t know, Sensu is a free and open source tool for composing the monitoring system you need. It is written in Ruby that uses RabbitMQ to handle messages and Redis to store data. Sensu provides a framework for monitoring infrastructure and application health. Sensu supports a number of platforms such as, IBM AIX, Ubuntu, Debian, RedHat, CentOS, FreeBSD, Mac OS, Solaris, Windows and much more.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Sensu monitoring on a CentOS 7 server.

Install Sensu on CentOS 7

Step 1. First let’s start by ensuring your system is up-to-date.

Step 2. Installing Erlang.

Install Erlang using command:

Step 3. Installing RabbitMQ.

First thing to do is to go to RabbitMQ’s download page and download the latest stable version of RabbitMQ, At the moment of writing this article it is version 3.6.1:

Installing RabbitMQ and related packages is now as simple as running just one command:

To start, stop, restart and check the RabbitMQ status, use the following:

Step 4. Installing Redis.

Next, we will be installing Redis:

Finally, we will start the Redis services and enable them to auto-start:

Step 5. Installing Sensu.

First, create a yum repository for in /etc/yum.repos.d:

Then save and close the file.

Install and start the Sensu services:

Create a sample Sensu configuration file:

Start Sensu and Uchiwa and enable auto-start:

Step 6. Accessing Sensu.

Sensu will be available on HTTP port 3000 by default. Open your favorite browser and navigate to http://yourdomain.com:3000 or http://server-ip:3000 and complete the required the steps to finish the installation. If you are using a firewall, please open port 3000 to enable access to the control panel.

Congratulation’s! You have successfully installed Sensu. Thanks for using this tutorial for installing Sensu monitoring on CentOS 7 systems. For additional help or useful information, we recommend you to check the official Sensu web site.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!

Save

Share on Google+0Share on Facebook0Tweet about this on TwitterShare on Tumblr0Share on StumbleUpon1Share on Reddit1Pin on Pinterest1
The Tags:

Leave a Comment