How to Install Sensu GO Monitoring Tool on Ubuntu


If you’re looking for a way to monitor your infrastructure and applications, you may want to consider using Sensu.

In this blog post, we’ll take a look at what Sensu is, how it works, and some of its key features.

This tutorial will be helpful for beginners to install Sensu Go Monitoring Tool on Ubuntu 22.04 LTS and Ubuntu 20.04

READ  How to Setup Grafana With Prometheus

What is Sensu Go?

Sensu Go is an open-source project that aims to provide a simple, scalable monitoring solution for modern cloud environments. Sensu Go is built on top of the Sensu monitoring framework and includes a new data model, APIs, and web UI.

Sensu Go is designed to be used in conjunction with other tools in the Sensu ecosystem, such as the Sensu agent and Sensu backend. Sensu Go can also be used as a standalone monitoring solution.

Sensu Go Architecture

Senugo Architecture

Sensu Go has 2 main components

  • Sensu Backend
  • Sensu Agent

Sensu Agent

Sensu Agents are lightweight clients that will run on the infrastructure that needs to be monitored. Agents are responsible for sending the Metric events and creating status to the Sensu backend.

Sensu Backend

It is the Core of Sensu Architecture and it contains Web UI, HTTP API, WebSocket API, and embedded etcd store.

Web UI – Web Based UI used for managing and creating entities, Checks, handlers, etc.

embedded etcd store – Contains all the event data.

HTTP API – Used by Sensuctl and Web UI

Install SensuGO On Ubuntu 22.04 LTS / 20.04 LTS

Step 1: Make sure the system is up to date

sudo apt update && sudo apt upgrade -y

Step 2: Install Sensu Backend

Add the Sensu repository to the system and install the sensu go backend package.

curl -s | sudo bash
sudo apt install sensu-go-backend

Step 3: Configure and start the Sensu Backend

Copy the config template from the sensu docs and move it to the/etc/sensu directory

sudo curl -L -o /etc/sensu/backend.yml

Start the Sensu Backend service

sudo systemctl start sensu-backend

sudo systemctl enable sensu-backend

sudo systemctl status sensu-backend

Step 4: Configure the Username and password for the Sensu Web UI

The next step is to generate the admin username and password to access the Sensu web UI

sensuctl-backend init --interactive

Step 5: Access Sensu Dashboard

Now, open your browser and access the Sensu dashboard using the URL


Sensu UI

Setup Sensuctl

A command-line tool called Sensuctl is used to manage resources with Sensu. Sensuctl tool is available for Linux, Windows, and macOS.

For installation add the Sensu repository and install the Sensu go package

curl -s | sudo bash
sudo apt-get install sensu-go-cli

Once installtion completed, configure using the below command

sensuctl configure -n --username 'YOUR_USERNAME' --password 'YOUR_PASSWORD' --namespace default --url ''

Install Sensu agent

In my setup i have installed and configured my Alamlinux server as sensu agent.

Step 6: Add the repository and install sensu agent

curl -s | sudo bash

sudo yum install sensu-go-agent

Step 7: Configure the sensu agent by replacing your ip address in the below template and start the service.

cat <<EOF>> /etc/sensu/agent.yml
namespace : default
  - "ws://ipaddress:8081"

Step 8: Start the Sensu agent service

systemctl start sensu-agent

systemctl enable sensu-agent

Step 9: Verify the agents are communicating or not

Login to the web UI and navigate to the Entities tab to check the server is reflecting or not, if the server is listed, the agent is communicating.

Sensu Entities

Reference : Install Sensu Go


From this tutorial, you have learned how to install Sensu GO Monitoring Tool on Ubuntu

Do let us know your comments and feedback in the comments section below.

If my articles on TipsonUNIX have helped you, kindly consider buying me a coffee as a token of appreciation


Thank You for your support!!

Leave a Comment