<?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>agent Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/agent/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 Zabbix server 4 on CentOS 7?</title>
		<link>https://www.osradar.com/how-to-install-zabbix-server-4-on-centos-7/</link>
					<comments>https://www.osradar.com/how-to-install-zabbix-server-4-on-centos-7/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 02 Feb 2019 03:00:13 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[agent]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[zabbix]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=10461</guid>

					<description><![CDATA[<p>The monitoring of a series of services is something fundamental for an organization. That&#8217;s why there are many stellar applications that help us with the same thing. Zabbix is one of them and recently saw the release of version 4 of this fantastic application. With this in mind, today I will show you how to [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-zabbix-server-4-on-centos-7/">How to install Zabbix server 4 on CentOS 7?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>The monitoring of a series of services is something fundamental for an organization. That&#8217;s why there are many stellar applications that help us with the same thing. <a href="https://www.zabbix.com/" rel="noopener">Zabbix</a> is one of them and recently saw <a href="https://www.zabbix.com/rn/rn4.0.0" rel="noopener">the release of version 4</a> of this fantastic application. With this in mind, today I will show you how to install Zabbix Server 4 on CentOS 7.</p>
<p>In this site, we have already talked about <a href="https://www.osradar.com/zabbix-a-network-monitor-installation-in-ubuntu-server-18-04/" rel="noopener">Zabbix</a>, this fantastic application that serves to monitor various services within a network. However, it is not only limited to services but also to specific nodes. So, it is open source with all the advantages we can have over it and also has agents available for various systems.</p>
<p>So, let us start to install Zabbix server 4.</p>
<h2>1. Install Apache web server and PHP</h2>
<p>Zabbix Server has a quite nice web interface that can be accessed from the clients. This interface requires a web server and <a href="https://www.osradar.com/how-to-install-php-7-on-centos-7-in-an-easy-way/" rel="noopener">PHP</a>. Therefore, the first step in this guide is to install them both. Open a terminal and run:</p>
<pre class="">:~$ su
:~# yum install httpd php php-mysql php php-mysql php-curl php-json php-cgi php-xml php-mbstring php-bcmath</pre>
<p><figure id="attachment_10463" aria-describedby="caption-attachment-10463" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10463" src="https://www.osradar.com/wp-content/uploads/2019/02/1.png" alt="1.- Install php" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/02/1.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/1-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/1-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/1-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/1-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/1-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/1-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10463" class="wp-caption-text">1.- Install PHP</figcaption></figure></p>
<p>Next, create a new file for test PHP.</p>
<pre class="">:~# nano /var/www/html/test.php</pre>
<p>And add the following:</p>
<pre class="">&lt;?php
phpinfo();
?&gt;</pre>
<p><figure id="attachment_10464" aria-describedby="caption-attachment-10464" style="width: 923px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10464" src="https://www.osradar.com/wp-content/uploads/2019/02/2.png" alt="2.- PHP info" width="923" height="212" srcset="https://www.osradar.com/wp-content/uploads/2019/02/2.png 923w, https://www.osradar.com/wp-content/uploads/2019/02/2-300x69.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/2-768x176.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/2-696x160.png 696w" sizes="(max-width: 923px) 100vw, 923px" /><figcaption id="caption-attachment-10464" class="wp-caption-text">2.- PHP info</figcaption></figure></p>
<p>Then, it is necessary to add the rules to the firewall to allow Apache and PHP access.</p>
<pre class="">:~# firewall-cmd --permanent --add-service=http
:~# firewall-cmd --reload</pre>
<p><figure id="attachment_10465" aria-describedby="caption-attachment-10465" style="width: 823px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10465" src="https://www.osradar.com/wp-content/uploads/2019/02/3.png" alt="3.- Set the firewall rule" width="823" height="189" srcset="https://www.osradar.com/wp-content/uploads/2019/02/3.png 823w, https://www.osradar.com/wp-content/uploads/2019/02/3-300x69.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/3-768x176.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/3-696x160.png 696w" sizes="(max-width: 823px) 100vw, 823px" /><figcaption id="caption-attachment-10465" class="wp-caption-text">3.- Set the firewall rule</figcaption></figure></p>
<p>After that, start and enable the service.</p>
<pre class="">:~# systemctl enable httpd
:~# systemctl start httpd</pre>
<p><figure id="attachment_10466" aria-describedby="caption-attachment-10466" style="width: 975px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10466" src="https://www.osradar.com/wp-content/uploads/2019/02/4.png" alt="4.- Start apache web server" width="975" height="139" srcset="https://www.osradar.com/wp-content/uploads/2019/02/4.png 975w, https://www.osradar.com/wp-content/uploads/2019/02/4-300x43.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/4-768x109.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/4-696x99.png 696w" sizes="(max-width: 975px) 100vw, 975px" /><figcaption id="caption-attachment-10466" class="wp-caption-text">4.- Start the Apache web server</figcaption></figure></p>
<p>Finally, open your web browser and go to <code>http://SERVER_IP/test.php</code>.</p>
<p><figure id="attachment_10467" aria-describedby="caption-attachment-10467" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10467" src="https://www.osradar.com/wp-content/uploads/2019/02/5.png" alt="5.- PHP info" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2019/02/5.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/5-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/5-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/5-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/5-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/02/5-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/5-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/5-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10467" class="wp-caption-text">5.- PHP info</figcaption></figure></p>
<p>Now, Apache and PHP are correctly installed.</p>
<h2>2. Install and configure MariaDB</h2>
<p>The way Zabbix manages data efficiently is thanks to a robust and reliable database handler. Zabbix allows the use of MySQL, <a href="https://www.osradar.com/optimize-mysql-mariadb-on-linux/" rel="noopener">MariaDB</a>, and <a href="https://www.osradar.com/how-to-install-postgresql-11-centos-7/" rel="noopener">PostgreSQL</a>. For now, I will use MariaDB. So, the next step is to install and configure it.</p>
<pre class="">:~# yum install mariadb-server</pre>
<p><figure id="attachment_10468" aria-describedby="caption-attachment-10468" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10468" src="https://www.osradar.com/wp-content/uploads/2019/02/6.png" alt="6.- Install MariaDB" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/02/6.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/6-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/6-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/6-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/6-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/6-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/6-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10468" class="wp-caption-text">6.- Install MariaDB</figcaption></figure></p>
<p>After that, star and enable the MariaDB service:</p>
<pre class="">:~# systemctl enable mariadb
:~# systemctl start mariadb</pre>
<p>Now, set a root the password using the <code>mysql_secure_installation</code> script.</p>
<pre class="">:~# mysql_secure_installation</pre>
<p><figure id="attachment_10469" aria-describedby="caption-attachment-10469" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10469" src="https://www.osradar.com/wp-content/uploads/2019/02/7.png" alt="7.- mysql_secure_installation script" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/02/7.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/7-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/7-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/7-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/7-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/7-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/7-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10469" class="wp-caption-text">7.- mysql_secure_installation script</figcaption></figure></p>
<p>As you can see, there are several parameters that you can configure. In the case of this tutorial, you can answer as you want because it does not affect anything. However, I recommend you read them carefully and make the best decision. In my case, I have answered Y, N, Y, Y.</p>
<p>After that, it is necessary to create a database and user for Zabbix.</p>
<pre class="">:~# mysql -u root -p
CREATE DATABASE zabbixdb;
GRANT ALL PRIVILEGES ON zabbixdb.* TO 'zabbixuser'@'localhost' IDENTIFIED BY 'zabbixpss';
FLUSH PRIVILEGES;
exit;</pre>
<p><figure id="attachment_10470" aria-describedby="caption-attachment-10470" style="width: 888px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10470" src="https://www.osradar.com/wp-content/uploads/2019/02/8.png" alt="8.- Creating the database for zabbix" width="888" height="452" srcset="https://www.osradar.com/wp-content/uploads/2019/02/8.png 888w, https://www.osradar.com/wp-content/uploads/2019/02/8-300x153.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/8-768x391.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/8-696x354.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/8-825x420.png 825w" sizes="(max-width: 888px) 100vw, 888px" /><figcaption id="caption-attachment-10470" class="wp-caption-text">8.- Creating the database for Zabbix</figcaption></figure></p>
<h2>3. Install Zabbix Server 4</h2>
<p>There is a fairly simple way to install Zabbix server 4. It is to do it through an external repository and then use yum. So let us go for it.</p>
<pre class="">:~# rpm --import http://repo.zabbix.com/RPM-GPG-KEY-ZABBIX
:~# rpm -ivh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm</pre>
<p><figure id="attachment_10471" aria-describedby="caption-attachment-10471" style="width: 1011px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10471" src="https://www.osradar.com/wp-content/uploads/2019/02/9.png" alt="9.- Add the zabbix repository" width="1011" height="213" srcset="https://www.osradar.com/wp-content/uploads/2019/02/9.png 1011w, https://www.osradar.com/wp-content/uploads/2019/02/9-300x63.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/9-768x162.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/9-696x147.png 696w" sizes="(max-width: 1011px) 100vw, 1011px" /><figcaption id="caption-attachment-10471" class="wp-caption-text">9.- Add the Zabbix repository</figcaption></figure></p>
<p>Next, install Zabbix 4 agent and others required packages.</p>
<pre class="">:~# yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-get zabbix-sender zabbix-java-gateway
</pre>
<p><figure id="attachment_10472" aria-describedby="caption-attachment-10472" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10472" src="https://www.osradar.com/wp-content/uploads/2019/02/10.png" alt="10.- Install Zabbix server 4" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/02/10.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/10-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/10-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/10-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/10-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/10-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/10-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10472" class="wp-caption-text">10.- Install Zabbix server 4</figcaption></figure></p>
<p>Now, edit the PHP timezone on the Zabbix configuration file.</p>
<pre class="">:~# nano /etc/httpd/conf.d/zabbix.conf</pre>
<p>And uncomment the “date.timezone” setting and replace it with your timezone:</p>
<pre class="">php_value date.timezone YOURTIMEZONE</pre>
<p><figure id="attachment_10473" aria-describedby="caption-attachment-10473" style="width: 582px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10473" src="https://www.osradar.com/wp-content/uploads/2019/02/11.png" alt="11.- Set the timezone" width="582" height="505" srcset="https://www.osradar.com/wp-content/uploads/2019/02/11.png 582w, https://www.osradar.com/wp-content/uploads/2019/02/11-300x260.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/11-534x462.png 534w, https://www.osradar.com/wp-content/uploads/2019/02/11-484x420.png 484w" sizes="(max-width: 582px) 100vw, 582px" /><figcaption id="caption-attachment-10473" class="wp-caption-text">11.- Set the timezone</figcaption></figure></p>
<p>Next, import the initial database for Zabbix.</p>
<pre class="">:~# zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -u zabbixuser -p zabbixdb</pre>
<p><figure id="attachment_10474" aria-describedby="caption-attachment-10474" style="width: 912px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10474" src="https://www.osradar.com/wp-content/uploads/2019/02/12.png" alt="12.- set the initial database for zabbix" width="912" height="155" srcset="https://www.osradar.com/wp-content/uploads/2019/02/12.png 912w, https://www.osradar.com/wp-content/uploads/2019/02/12-300x51.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/12-768x131.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/12-696x118.png 696w" sizes="(max-width: 912px) 100vw, 912px" /><figcaption id="caption-attachment-10474" class="wp-caption-text">12.- set the initial database for Zabbix</figcaption></figure></p>
<p>After that, you have to specify the databases parameters on the Zabbix configuration.</p>
<pre class="">:~# nano /etc/zabbix/zabbix_server.conf</pre>
<pre class="">DBHost=localhost
DBName=zabbixdb
DBUser=zabbixuser
DBPassword=YOUR_PASSWORD</pre>
<p><figure id="attachment_10475" aria-describedby="caption-attachment-10475" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10475" src="https://www.osradar.com/wp-content/uploads/2019/02/13.png" alt="13.- configure Zabbix" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/02/13.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/13-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/13-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/13-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/13-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/13-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/13-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10475" class="wp-caption-text">13.- configure Zabbix</figcaption></figure></p>
<p>Next, set the firewall rule for Zabbix.</p>
<pre class="">:~# firewall-cmd --permanent --zone=public --add-port=10051/tcp
:~# firewall-cmd --permanent --zone=public --add-port=10050/tcp
:~# firewall-cmd --reload</pre>
<p><figure id="attachment_10476" aria-describedby="caption-attachment-10476" style="width: 836px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10476" src="https://www.osradar.com/wp-content/uploads/2019/02/14.png" alt="14.- Set the firewall rule for zabbix" width="836" height="181" srcset="https://www.osradar.com/wp-content/uploads/2019/02/14.png 836w, https://www.osradar.com/wp-content/uploads/2019/02/14-300x65.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/14-768x166.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/14-696x151.png 696w" sizes="(max-width: 836px) 100vw, 836px" /><figcaption id="caption-attachment-10476" class="wp-caption-text">14.- Set the firewall rule for Zabbix</figcaption></figure></p>
<p>Finally, enable and start the Zabbix services.</p>
<pre class="">:~# systemctl enable zabbix-server
:~# systemctl start zabbix-server
:~# systemctl enable zabbix-server 
:~# systemctl start zabbix-server
:~# systemctl restart httpd</pre>
<p><figure id="attachment_10477" aria-describedby="caption-attachment-10477" style="width: 1111px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10477" src="https://www.osradar.com/wp-content/uploads/2019/02/15.png" alt="15.- Working with the zabbix services" width="1111" height="177" srcset="https://www.osradar.com/wp-content/uploads/2019/02/15.png 1111w, https://www.osradar.com/wp-content/uploads/2019/02/15-300x48.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/15-768x122.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/15-1024x163.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/15-696x111.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/15-1068x170.png 1068w" sizes="(max-width: 1111px) 100vw, 1111px" /><figcaption id="caption-attachment-10477" class="wp-caption-text">15.- Working with the Zabbix services</figcaption></figure></p>
<p><figure id="attachment_10478" aria-describedby="caption-attachment-10478" style="width: 853px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10478" src="https://www.osradar.com/wp-content/uploads/2019/02/16.png" alt="16.- Restart apache" width="853" height="104" srcset="https://www.osradar.com/wp-content/uploads/2019/02/16.png 853w, https://www.osradar.com/wp-content/uploads/2019/02/16-300x37.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/16-768x94.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/16-696x85.png 696w" sizes="(max-width: 853px) 100vw, 853px" /><figcaption id="caption-attachment-10478" class="wp-caption-text">16.- Restart apache</figcaption></figure></p>
<p>After that, complete the installation.</p>
<h2>4. Complete the installation</h2>
<p>Now, open your web browser and go to http://SERVER_IP/zabbix and you will see this.</p>
<p><figure id="attachment_10479" aria-describedby="caption-attachment-10479" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10479" src="https://www.osradar.com/wp-content/uploads/2019/02/17.png" alt="17.- Complete the installation" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2019/02/17.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/17-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/17-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/17-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/17-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/02/17-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/17-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/17-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10479" class="wp-caption-text">17.- Complete the installation</figcaption></figure></p>
<p>So, let us start.</p>
<p>First, the wizard will check the prerequisites. Click on next.</p>
<p><figure id="attachment_10480" aria-describedby="caption-attachment-10480" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10480" src="https://www.osradar.com/wp-content/uploads/2019/02/18.png" alt="18.- prerequisites" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2019/02/18.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/18-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/18-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/18-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/18-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/02/18-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/18-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/18-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10480" class="wp-caption-text">18.- prerequisites</figcaption></figure></p>
<p>Next, configure the database connection. You have to type your credentials.</p>
<p><figure id="attachment_10481" aria-describedby="caption-attachment-10481" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10481" src="https://www.osradar.com/wp-content/uploads/2019/02/19.png" alt="19.- Configure the database connection" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2019/02/19.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/19-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/19-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/19-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/19-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/02/19-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/19-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/19-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10481" class="wp-caption-text">19.- Configure the database connection</figcaption></figure></p>
<p>Next, configure the server details.</p>
<p><figure id="attachment_10482" aria-describedby="caption-attachment-10482" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10482" src="https://www.osradar.com/wp-content/uploads/2019/02/20.png" alt="20.- Server details" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2019/02/20.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/20-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/20-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/20-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/20-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/02/20-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/20-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/20-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10482" class="wp-caption-text">20.- Server details</figcaption></figure></p>
<p>After that, you will see the installation summary.</p>
<p><figure id="attachment_10483" aria-describedby="caption-attachment-10483" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10483" src="https://www.osradar.com/wp-content/uploads/2019/02/21.png" alt="21.- Summary" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2019/02/21.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/21-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/21-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/21-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/21-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/02/21-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/21-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/21-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10483" class="wp-caption-text">21.- Summary</figcaption></figure></p>
<p>You have successfully installed Zabbix.</p>
<p><figure id="attachment_10484" aria-describedby="caption-attachment-10484" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10484" src="https://www.osradar.com/wp-content/uploads/2019/02/22.png" alt="22.- Everything is OK" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2019/02/22.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/22-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/22-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/22-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/22-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/02/22-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/22-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/22-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10484" class="wp-caption-text">22.- Everything is OK</figcaption></figure></p>
<p>Now, login into the main screen. The user is admin y and the password is Zabbix.</p>
<p><figure id="attachment_10485" aria-describedby="caption-attachment-10485" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10485" src="https://www.osradar.com/wp-content/uploads/2019/02/23.png" alt="23.- Log in screen" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2019/02/23.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/23-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/23-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/23-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/23-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/02/23-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/23-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/23-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10485" class="wp-caption-text">23.- Login screen</figcaption></figure></p>
<p>And you will see the dashboard.</p>
<p><figure id="attachment_10486" aria-describedby="caption-attachment-10486" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-10486" src="https://www.osradar.com/wp-content/uploads/2019/02/24.png" alt="24.- Dashboard" width="1366" height="626" srcset="https://www.osradar.com/wp-content/uploads/2019/02/24.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/24-300x137.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/24-768x352.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/24-1024x469.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/24-696x319.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/24-1068x489.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/24-916x420.png 916w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-10486" class="wp-caption-text">24.- Dashboard</figcaption></figure></p>
<p>So, that&#8217;s it.</p>
<h2>Conclusion</h2>
<p>With this Zabbix is installed. This wonderful monitoring program, what remains is to install the agent in each of the nodes you want to visualize.</p>
<p>Its installation is quite simple and only requires a little time and knowledge.</p>
<p>Please share this article with your friends.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-zabbix-server-4-on-centos-7/">How to install Zabbix server 4 on CentOS 7?</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/how-to-install-zabbix-server-4-on-centos-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
