29 C
Senior Writer and partner

Install the Sensu GO agent on Ubuntu 20.04

Hello, friends. We have recently shown you how to install Sensu GO on Ubuntu 20.04 but it is necessary to add a node and this is done by installing a program. In this post, you will learn how to install the Sensu GO agent on Ubuntu 20.04 and configure it so that it can be monitored by the backend.

The Sensu agent is a lightweight client that runs on the infrastructure components you want to monitor. The Sensu agent is available for Linux, macOS, and Windows

Install Sensu GO agent on Ubuntu 20.04

First, make sure you update your distribution:

sudo apt update
sudo apt upgrade
- Advertisement -

You also need to install some necessary packages:

sudo apt install curl gnupg unzip wget

Then, you should add the Sensu repository so that we can install the agent without problems.

curl -s https://packagecloud.io/install/repositories/sensu/stable/script.deb.sh | sudo bash

After that, you can install the agent without problems.

sudo apt install sensu-go-agent

Similarly, we have to download the initial configuration file of the agent and copy it to the appropriate path.

sudo curl -L https://docs.sensu.io/sensu-go/latest/files/agent.yml -o /etc/sensu/agent.yml

This file needs to be modified, but first, make a backup of it.

sudo cp /etc/sensu/agent.yml /etc/sensu/agent.yml.bak

And edit it to define the IP address where Sensu Backend is installed.

sudo nano /etc/sensu/agent.yml

And leave it as shown in the image:

1.- Configuring the Sensu GO Agent on Ubuntu 20.04
1.- Configuring the Sensu GO Agent on Ubuntu 20.04

Replace the IP by yours.

Now you can start the Sensu agent service and check its status.

systemctl start sensu-agent
systemctl status sensu-agent

There are many configurations available for the agent file at this link. Every time you modify the configuration file you have to restart the service to apply the changes.

2.- Sensu GO agent working
2.- Sensu GO agent working

It should now be visible from the backend. If not, you will probably need to restart the service.


Sensu Go is a very good tool that allows us to monitor services and nodes. This makes it interesting at a professional level. That is why it is recommended to take a look at it.

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
"The best Linux newsletter on the web"


Please enter your comment!
Please enter your name here

Latest article