<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>sensu go Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/sensu-go/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Thu, 18 Feb 2021 16:41:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Install the Sensu GO agent on Ubuntu 20.04</title>
		<link>https://www.osradar.com/install-the-sensu-go-agent-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/install-the-sensu-go-agent-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 20 Feb 2021 01:40:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[agent]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[sensu]]></category>
		<category><![CDATA[sensu go]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=28487</guid>

					<description><![CDATA[<p>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 [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-the-sensu-go-agent-ubuntu-20-04/">Install the Sensu GO agent on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. We have recently shown you <a href="https://www.osradar.com/install-sensu-go-monitoring-tool-ubuntu/" target="_blank" rel="noreferrer noopener">how to install Sensu GO on Ubuntu 20.04</a> 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.</p>



<p>The <a href="https://docs.sensu.io/sensu-go/latest/observability-pipeline/observe-schedule/agent/" target="_blank" rel="noreferrer noopener">Sensu agent </a>is a lightweight client that runs on the infrastructure components you want to monitor. The Sensu agent is available for Linux, macOS, and Windows</p>



<h2 id="install-sensu-go-agent-on-ubuntu-20.04"><a href="#install-sensu-go-agent-on-ubuntu-20.04" name="install-sensu-go-agent-on-ubuntu-20.04"></a>Install Sensu GO agent on Ubuntu 20.04</h2>



<p>First, make sure you update your distribution:</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt upgrade</pre>



<p>You also need to install some necessary packages:</p>



<pre class="wp-block-preformatted">sudo apt install curl gnupg unzip wget</pre>



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



<pre class="wp-block-preformatted">curl -s https://packagecloud.io/install/repositories/sensu/stable/script.deb.sh | sudo bash</pre>



<p>After that, you can install the agent without problems.</p>



<pre class="wp-block-preformatted">sudo apt install sensu-go-agent</pre>



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



<pre class="wp-block-preformatted">sudo curl -L https://docs.sensu.io/sensu-go/latest/files/agent.yml -o /etc/sensu/agent.yml</pre>



<p>This file needs to be modified, but first, make a backup of it.</p>



<pre class="wp-block-preformatted">sudo cp /etc/sensu/agent.yml /etc/sensu/agent.yml.bak</pre>



<p>And edit it to define the IP address where Sensu Backend is installed.</p>



<pre class="wp-block-preformatted">sudo nano /etc/sensu/agent.yml</pre>



<p>And leave it as shown in the image:</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="948" height="443" src="https://www.osradar.com/wp-content/uploads/2021/02/1-6.png" alt="1.- Configuring the Sensu GO Agent on Ubuntu 20.04" class="wp-image-28577" srcset="https://www.osradar.com/wp-content/uploads/2021/02/1-6.png 948w, https://www.osradar.com/wp-content/uploads/2021/02/1-6-300x140.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/1-6-768x359.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/1-6-696x325.png 696w" sizes="(max-width: 948px) 100vw, 948px" /><figcaption>1.- Configuring the Sensu GO Agent on Ubuntu 20.04</figcaption></figure>



<p>Replace the IP by yours.</p>



<p>Now you can start the Sensu agent service and check its status.</p>



<pre class="wp-block-preformatted">systemctl start sensu-agent
systemctl status sensu-agent</pre>



<p>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.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2021/02/2-4-1024x506.png" alt="2.- Sensu GO agent working" class="wp-image-28578" srcset="https://www.osradar.com/wp-content/uploads/2021/02/2-4-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2021/02/2-4-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/2-4-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/2-4-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2021/02/2-4-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2021/02/2-4.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Sensu GO agent working</figcaption></figure>



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



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>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.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-the-sensu-go-agent-ubuntu-20-04/">Install the Sensu GO agent on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-the-sensu-go-agent-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Sensu GO monitoring tool on Ubuntu 20.04?</title>
		<link>https://www.osradar.com/install-sensu-go-monitoring-tool-ubuntu/</link>
					<comments>https://www.osradar.com/install-sensu-go-monitoring-tool-ubuntu/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 19 Feb 2021 02:46:00 +0000</pubDate>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[sensu]]></category>
		<category><![CDATA[sensu go]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=28571</guid>

					<description><![CDATA[<p>Hello, friends. In this post, you will learn how to install Sensu Go Monitoring Tool on Ubuntu 20.04. With this complete tool you can monitor nodes in your network and at the same time check the health of some applications. Sensu is a complete solution for monitoring and observability at scale. Sensu Go is designed [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-sensu-go-monitoring-tool-ubuntu/">How to install Sensu GO monitoring tool on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. In this post, you will learn how to install Sensu Go Monitoring Tool on Ubuntu 20.04. With this complete tool you can monitor nodes in your network and at the same time check the health of some applications.</p>



<p>Sensu is a complete solution for monitoring and observability at scale. Sensu Go is designed to give you visibility into everything you care about: traditional server closets, containers, applications, the cloud, and more.</p>



<p>The application is composed of three elements:</p>



<ul><li>Backend: which is the server where the monitoring operations are performed.</li><li>Sensuctl: is a command-line tool for managing resources within Sensu.</li><li>Agent: This microprogram is installed on those devices that we want to monitor.</li></ul>



<p>In this post, we will install the first two, and in another post the agent in another one.</p>



<h2 id="install-sensu-go-monitoring-tool-on-ubuntu-20.04"><a href="#install-sensu-go-monitoring-tool-on-ubuntu-20.04" name="install-sensu-go-monitoring-tool-on-ubuntu-20.04"></a>Install Sensu GO Monitoring Tool on Ubuntu 20.04</h2>



<p><strong>Note:There are many ports that we need to open for the tutorial to work. The complete list can be found at <a href="https://docs.sensu.io/sensu-go/latest/operations/deploy-sensu/install-sensu/">this</a> link.</strong></p>



<p>As powerful as the application is, the reality is that installing Sensu Go is quite easy.</p>



<p>First, in a terminal session update Ubuntu 20.04</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt upgrade</pre>



<p>After that, you have to install some necessary packages such as <code>gnupg</code></p>



<pre class="wp-block-preformatted">sudo apt install curl gnupg unzip wget</pre>



<p>Sensu Go provides us with a script that adds its repository to our system in a very convenient way:</p>



<pre class="wp-block-preformatted">curl -s https://packagecloud.io/install/repositories/sensu/stable/script.deb.sh | sudo bash
Detected operating system as Ubuntu/focal.
 Checking for curl…
 Detected curl…
 Checking for gpg…
 Detected gpg…
 Running apt-get update… done.
 Installing apt-transport-https… done.
 Installing /etc/apt/sources.list.d/sensu_stable.list…done.
 Importing packagecloud gpg key… done.
 Running apt-get update… done.
 The repository is setup! You can now install packages.</pre>



<p>Once the repository is successfully added to the system, we can start the installation by running:</p>



<pre class="wp-block-preformatted">sudo apt install sensu-go-backend
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  sensu-go-backend
0 upgraded, 1 newly installed, 0 to remove and 53 not upgraded.
Need to get 15.2 MB of archives.
After this operation, 41.5 MB of additional disk space will be used.</pre>



<p>Once the application has been successfully downloaded, it is necessary to download the default configuration file:</p>



<pre class="wp-block-preformatted">curl -L https://docs.sensu.io./sensu-go/latest/files/backend.yml -o backend.yml</pre>



<p>And now move it to the correct location:</p>



<pre class="wp-block-preformatted">sudo mv backend.yml /etc/sensu/</pre>



<p>After this, you will be able to manage Sensu as a <a href="https://www.osradar.com/the-linux-systemctl-command/" target="_blank" rel="noreferrer noopener">system service</a>. So, start it, enable it and check the status of the service</p>



<pre class="wp-block-preformatted">sudo systemctl start sensu-backend
sudo systemctl enable sensu-backend
sudo systemctl status sensu-backend</pre>



<p>As everything is OK you have to start the Backend by assigning it a username and password.</p>



<pre class="wp-block-preformatted">sensu-backend init --interactive
? Cluster Admin Username: admin
? Cluster Admin Password: ******
? Retype Cluster Admin Password: ******
{"component":"backend.seeds","level":"info","msg":"seeding etcd store with intial data","time":"2021-02-17T17:15:36+01:00"}
{"component":"store","level":"warning","msg":"migrating etcd database to a new version","time":"2021-02-17T17:15:36+01:00"}
{"component":"store","database_version":1,"level":"info","msg":"successfully upgraded database","time":"2021-02-17T17:15:36+01:00"}
{"component":"store","database_version":2,"level":"info","msg":"successfully upgraded database","time":"2021-02-17T17:15:36+01:00"}</pre>



<p>Assign a username and a strong password.</p>



<p>Then you need to install <code>sensuctl</code> by running:</p>



<pre class="wp-block-preformatted">sudo apt install sensu-go-cli</pre>



<p>And then you have to configure it by running:</p>



<pre class="wp-block-preformatted">sensuctl configure
? Authentication method: username/password
? Sensu Backend URL: http://127.0.0.1:8080
? Namespace: default
? Preferred output format: tabular
? Username: admin
? Password: ******</pre>



<p>Leave it as I currently show you. Remember that the username and password must be the same as the one you set in the previous step.</p>



<h2 id="testing-the-installation"><a href="#testing-the-installation" name="testing-the-installation"></a>Testing the installation</h2>



<p>After applying the changes, you can check that the backend is working through the web interface provided by the application.</p>



<p>So, access it from <code>http://your-server:3000</code></p>



<p>And you will see the Login screen</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2021/02/1-5-1024x502.png" alt="1.- Sensu GO login screen" class="wp-image-28572" srcset="https://www.osradar.com/wp-content/uploads/2021/02/1-5-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2021/02/1-5-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/1-5-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/1-5-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2021/02/1-5-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2021/02/1-5.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Sensu GO login screen</figcaption></figure>



<p>Log in with your username and password and you will see the dashboard.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2021/02/2-3-1024x506.png" alt="2.- Sensu Go on Ubuntu 20.04" class="wp-image-28573" srcset="https://www.osradar.com/wp-content/uploads/2021/02/2-3-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2021/02/2-3-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/2-3-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/2-3-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2021/02/2-3-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2021/02/2-3.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Sensu Go on Ubuntu 20.04</figcaption></figure>



<p>Obviously, it’s empty because we haven’t added any nodes. But the backend is ready.</p>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>In this post, you have learned how to install a part of Sensu GO that will allow you to monitor devices on a network. Although it is a very professional application, it is really easy to install.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-sensu-go-monitoring-tool-ubuntu/">How to install Sensu GO monitoring tool on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-sensu-go-monitoring-tool-ubuntu/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
