{"id":1949,"date":"2020-11-19T17:06:05","date_gmt":"2020-11-19T17:06:05","guid":{"rendered":"https:\/\/linuxways.net\/?p=1949"},"modified":"2020-11-20T14:32:08","modified_gmt":"2020-11-20T14:32:08","slug":"how-to-install-and-configure-zabbix-monitoring-server-on-linux","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-install-and-configure-zabbix-monitoring-server-on-linux\/","title":{"rendered":"How to install and configure Zabbix monitoring server on Linux"},"content":{"rendered":"<p>Zabbix is an open-source utility for monitoring servers, network devices, network services, and applications. It helps to keep an eye on the network infrastructure and detect issues with hardware or software programs. Zabbix tools gather information from the devices being monitored and send it to a central authority.<\/p>\n<p>Zabbix has two major components: <strong>Zabbix server<\/strong> and <strong>Zabbix agent<\/strong>. <strong>Zabbix server<\/strong> is the main component that receives the collected data from the monitored devices. <strong>Zabbix agent<\/strong> collects data from the devices you want to monitor and forward it to the Zabbix server.<\/p>\n<p><strong>In this post, we will be explaining how to install and configure Zabbix on Linux to monitor servers health. We will be using two Linux machines; one as a monitoring server on which we will install and configure the Zabbix server and the other as a client that we want to monitor. On the client machine, we will install the Zabbix agent that will collect data and report to the Zabbix server. We will also install the Zabbix agent on the Zabbix monitoring server so that it can also monitor itself.<\/strong><\/p>\n<p><strong>Note: <\/strong>We will be using the <strong>Ubuntu 20.04 LTS (Focal Fossa)<\/strong> for both the Zabbix server and client machine. For both machines, we will require Sudo privileges.<\/p>\n<h2>Step 1: Installing Pre-requisites<\/h2>\n<p>Zabbix uses MySQL as a backend database for storing the collected information while it uses Apache and PHP as the frontend for serving the web interface. On the machine that you want to configure as Zabbix monitoring server, you will need to install:<\/p>\n<ol>\n<li>Apache 1.3.12 or later<\/li>\n<li>PHP 7.2.5 or later<\/li>\n<li>MySQL<em>: <\/em>5.5 or 8.0.x<\/li>\n<\/ol>\n<h3>Installing Apache Web Server<\/h3>\n<p>Apache web server will be used to serve the Zabbix web interface. Issue the below commands in Terminal to install it:<\/p>\n<pre>$ sudo apt update\n\n$ sudo apt install apache2<\/pre>\n<p>You can also visit our post on <a href=\"https:\/\/linuxways.net\/de\/ubuntu\/how-to-install-apache-web-server-on-linux\/\">How to install Apache web server on Linux<\/a>.<\/p>\n<p>To verify if Apache service is enabled and running. Issue the below command:<\/p>\n<pre>$ sudo systemctl status apache2<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"896\" height=\"205\" class=\"wp-image-1950\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-555.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-555.png 896w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-555-300x69.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-555-768x176.png 768w\" sizes=\"auto, (max-width: 896px) 100vw, 896px\" \/><\/p>\n<p>If the service is not enabled or running, you can manually enable and start is using the below commands:<\/p>\n<pre>$ sudo systemctl enable apache2\n\n$ sudo systemctl start apache2<\/pre>\n<p>Now if a firewall is running on your system, allow the Apache through it:<\/p>\n<pre>$ sudo ufw allow \u2018Apache\u2019<\/pre>\n<h3>Installing and Configuring PHP Packages<\/h3>\n<p>Now we will install PHP along with few dependencies. Issue the following command in Terminal to do this:<\/p>\n<pre>$ sudo apt install php-cli php-common php-dev php-pear php-gd php-mbstring php-mysql php-xml php-bcmath libapache2-mod-php<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"933\" height=\"431\" class=\"wp-image-1951\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-556.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-556.png 933w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-556-300x139.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-556-768x355.png 768w\" sizes=\"auto, (max-width: 933px) 100vw, 933px\" \/><\/p>\n<p>After the installation of PHP packages is completed, we will need to do a little configuration. Edit the &#8220;<strong>php.ini<\/strong>&#8221; configuration file for <strong>Apache2<\/strong>:<\/p>\n<pre>$ sudo nano \/etc\/php\/7.4\/apache2\/php.ini<\/pre>\n<p>Make the following changes in the file. Remove the semicolon (<strong>;<\/strong>) from the <strong>date.timezone <\/strong>line.<\/p>\n<pre>date.timezone = &lt;Your_Time_Zone&gt;\nmax_execution_time = 600 \nmax_input_time = 600 \nmemory_limit = 256M \npost_max_size = 32M \nupload_max_filesize = 16M<\/pre>\n<p>Replace <strong>&lt;Your_Time_Zone&gt;<\/strong> with the time zone of your server&#8217;s location.<\/p>\n<p>Now edit the &#8220;<strong>php.ini<\/strong>&#8221; configuration file for <strong>PHP cli<\/strong>:<\/p>\n<pre>$ sudo nano \/etc\/php\/7.4\/cli\/php.ini<\/pre>\n<p>Make the same above changes in this file, then save, and close it.<\/p>\n<h3>Installing and Configuring MySQL Server<\/h3>\n<p>Now in this step, we will install and configure MySQL server to store the data collected by the Zabbix server from the agents. The version of MySQL currently available on Ubuntu 20.04 LTS repositories is <strong>8.0<\/strong>. You can also follow our guide on <a href=\"https:\/\/linuxways.net\/de\/ubuntu\/how-to-setup-latest-mysql-on-ubuntu-20-04-lts\/\">Installing MySQL server<\/a>.<\/p>\n<p>Issue the below command in Terminal to install MySQL server:<\/p>\n<pre>$ sudo apt install mysql-server<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"880\" height=\"501\" class=\"wp-image-1952\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-557.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-557.png 880w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-557-300x171.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-557-768x437.png 768w\" sizes=\"auto, (max-width: 880px) 100vw, 880px\" \/><\/p>\n<p>Once the installation is completed, issue the below command to secure the SQL server. It will set the <strong>root password<\/strong> for the MySQL server along with some other security options.<\/p>\n<pre>$ sudo mysql_secure_installation<\/pre>\n<p>Hit <strong>y<\/strong> for all of the prompts. When asked to set the root password, enter the password twice.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"835\" height=\"618\" class=\"wp-image-1953\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-558.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-558.png 835w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-558-300x222.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-558-768x568.png 768w\" sizes=\"auto, (max-width: 835px) 100vw, 835px\" \/><\/p>\n<h2>Step 2: Installing and Configuring Zabbix<\/h2>\n<p>Now we will install and configure Zabbix on the same machine where we have installed all the prerequisites (Apache, MySQL, and PHP).<\/p>\n<h3>1. Install Zabbix Repository<\/h3>\n<p>First, we will need to download and install the Zabbix official repository to our system. Issue the below commands in Terminal to do so:<\/p>\n<pre>$ wget https:\/\/repo.zabbix.com\/zabbix\/5.2\/ubuntu\/pool\/main\/z\/zabbix-release\/zabbix-release_5.2-1+ubuntu20.04_all.deb\n$ sudo dpkg -i zabbix-release_5.2-1+ubuntu20.04_all.deb<\/pre>\n<p>Now update the local repository to include the Zabbix repository:<\/p>\n<pre>$ sudo apt update<\/pre>\n<p>Once the repository is updated, you can install Zabbix using the below command:<\/p>\n<pre><strong>$ <\/strong>sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agent<\/pre>\n<p>It will also install the<strong> Zabbix agent<\/strong> that will let the Zabbix server to monitor itself.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"999\" height=\"505\" class=\"wp-image-1954\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-559.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-559.png 999w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-559-300x152.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-559-768x388.png 768w\" sizes=\"auto, (max-width: 999px) 100vw, 999px\" \/> 2. Import Zabbix Schema<\/p>\n<p>Now we will need to import the Zabbix initial schema to the newly created \u201cZabbix\u201d database.<\/p>\n<pre>$ zcat \/usr\/share\/doc\/zabbix-server-mysql*\/create.sql.gz | mysql -uzabbix -p zabbix<\/pre>\n<p>Provide the password for the MySQL user \u201cZabbix\u201d you created during the Zabbix database creation.<\/p>\n<h3>3. Configuring the Database for Zabbix Server<\/h3>\n<p>Now we will create a new database on MySQL and configure it for Zabbix server.<\/p>\n<h3>Create the Database<\/h3>\n<p>Login to MYSQL console as a root user. Issue the below command to do so:<\/p>\n<pre>$ sudo mysql -u root -p<\/pre>\n<p>Now to create a database, issue the following command:<\/p>\n<pre>create database zabbix character set utf8 collate utf8_bin;<\/pre>\n<p>Then create a user along with a password and grant it privileges to access the database:<\/p>\n<pre>grant all privileges on zabbix.* to zabbix@'localhost' identified by 'PASSWORD';<\/pre>\n<p>Now issue the below command to apply the changes:<\/p>\n<pre>flush privileges;<\/pre>\n<p>Then exit the console:<\/p>\n<pre>exit<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"874\" height=\"665\" class=\"wp-image-1955\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-560.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-560.png 874w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-560-300x228.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-560-768x584.png 768w\" sizes=\"auto, (max-width: 874px) 100vw, 874px\" \/><\/p>\n<p>Now the database and the user have been created for the Zabbix server.<\/p>\n<h3>Configure the Database<\/h3>\n<p>In order to point the Zabbix server to the database, edit the Zabbix configuration file <strong>zabbix_server.conf<\/strong> using the below command:<\/p>\n<pre>$ sudo nano \/etc\/Zabbix\/ zabbix_server.conf<\/pre>\n<p>Look for the following line:<\/p>\n<pre># DBPassword=<\/pre>\n<p>Uncomment this line and set its value to the password for the MySQL user \u201cZabbix\u201d you created during the <strong>Zabbix database creation<\/strong> in the previous step.<\/p>\n<h2><img loading=\"lazy\" decoding=\"async\" width=\"775\" height=\"277\" class=\"wp-image-1956\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-561.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-561.png 775w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-561-300x107.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-561-768x274.png 768w\" sizes=\"auto, (max-width: 775px) 100vw, 775px\" \/><\/h2>\n<p>Then save and close the <strong>zabbix_server.conf<\/strong> file.<\/p>\n<p>Once you are done with the Zabbix configuration, restart the Apache server:<\/p>\n<pre>$ sudo systemctl restart apache2.service<\/pre>\n<p>Then start and enable the Zabbix server:<\/p>\n<pre>$ systemctl start zabbix-server\n\n$ systemctl enable zabbix-server<\/pre>\n<p>Also verify if the Zabbix server is active and running properly:<\/p>\n<pre>$ systemctl status zabbix-server<\/pre>\n<h3>Step 3: Configuring Zabbix Frontend<\/h3>\n<p>Now let&#8217;s configure the browser-based Zabbix frontend. Open any web browser and go to the following address:<\/p>\n<pre><a href=\"http:\/\/zabbix-server-hostname-or-IP\/zabbix\">http:\/\/zabbix-server-hostname-or-IP\/zabbix<\/a><\/pre>\n<p>A wizard with the following welcome screen will appear. Click <strong>Next step<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1094\" height=\"517\" class=\"wp-image-1957\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-562.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-562.png 1094w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-562-300x142.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-562-1024x484.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-562-768x363.png 768w\" sizes=\"auto, (max-width: 1094px) 100vw, 1094px\" \/><\/p>\n<p>Next, the wizard will check for all the <strong>pre-requisites<\/strong>. Make sure all the values for the pre-requisites are <strong>OK <\/strong>and then click<strong> Next step<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"999\" height=\"593\" class=\"wp-image-1958\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-563.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-563.png 999w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-563-300x178.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-563-768x456.png 768w\" sizes=\"auto, (max-width: 999px) 100vw, 999px\" \/><\/p>\n<p>When the following screen shows up, enter the password for &#8220;<strong>Zabbix&#8221; <\/strong>user you configured earlier and then click <strong>Next step<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"993\" height=\"571\" class=\"wp-image-1959\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-564.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-564.png 993w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-564-300x173.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-564-768x442.png 768w\" sizes=\"auto, (max-width: 993px) 100vw, 993px\" \/><\/p>\n<p>Now, you will be asked to enter the <strong>Zabbix server details<\/strong>. Provide the <strong>Zabbix server hostname or IP address <\/strong>or you can also leave the details as defaults. Then click <strong>Next step<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"992\" height=\"556\" class=\"wp-image-1960\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-565.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-565.png 992w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-565-300x168.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-565-768x430.png 768w\" sizes=\"auto, (max-width: 992px) 100vw, 992px\" \/><\/p>\n<p>Then select your <strong>time zone<\/strong> and <strong>theme<\/strong> for the web interface. Then click <strong>Next step<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"895\" height=\"526\" class=\"wp-image-1961\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-566.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-566.png 895w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-566-300x176.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-566-768x451.png 768w\" sizes=\"auto, (max-width: 895px) 100vw, 895px\" \/><\/p>\n<p>Now, you will see the <strong>Pre-installation summary<\/strong> for review. If you are ok with everything, click <strong>Next step<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"961\" height=\"540\" class=\"wp-image-1962\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-567.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-567.png 961w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-567-300x169.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-567-768x432.png 768w\" sizes=\"auto, (max-width: 961px) 100vw, 961px\" \/><\/p>\n<p>Next, you will be informed that the installation of the Zabbix frontend has been completed. Click <strong>Finish<\/strong> to close the installation wizard. Then login to the Zabbix server using the following default credentials:<\/p>\n<pre><strong>Username: Admin<\/strong>\n\n<strong>Password: zabbix<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"962\" height=\"529\" class=\"wp-image-1963\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-568.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-568.png 962w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-568-300x165.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-568-768x422.png 768w\" sizes=\"auto, (max-width: 962px) 100vw, 962px\" \/><\/p>\n<p>After logging in, you will see the following Dashboard with one host available in it which is the Zabbix server itself as we have also installed the agent on it. Now the Zabbix server will start monitoring itself.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1436\" height=\"715\" class=\"wp-image-1964\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-569.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-569.png 1436w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-569-300x149.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-569-1024x510.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-569-768x382.png 768w\" sizes=\"auto, (max-width: 1436px) 100vw, 1436px\" \/><\/p>\n<h2>Step 4: Installing and Configuring Zabbix Agent on Client<\/h2>\n<p>Now on the client machine, we will install agent and connect it to the Zabbix server.<\/p>\n<h3>Install and Configure Agent<\/h3>\n<p>1. Issue the below commands in Terminal to install Zabbix repository:<\/p>\n<pre>$ wget https:\/\/repo.zabbix.com\/zabbix\/5.2\/ubuntu\/pool\/main\/z\/zabbix-release\/zabbix-release_5.2-1+ubuntu20.04_all.deb\n$ sudo dpkg -i zabbix-release_5.2-1+ubuntu20.04_all.deb<\/pre>\n<p>Then install the agent:<\/p>\n<pre>$ sudo apt install zabbix-agent<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"783\" height=\"223\" class=\"wp-image-1965\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-570.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-570.png 783w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-570-300x85.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-570-768x219.png 768w\" sizes=\"auto, (max-width: 783px) 100vw, 783px\" \/><\/p>\n<p>3. Edit the Zabbix agent configuration file:<\/p>\n<pre>$\u00a0sudo\u00a0nano\u00a0\/etc\/zabbix\/zabbix_agentd.conf<\/pre>\n<p>Search the below entry in the file:<\/p>\n<pre>Server=127.0.0.1<\/pre>\n<p>Replace it with the Zabbix server&#8217;s IP address which in our case would be:<\/p>\n<pre>Server=192.168.72.157<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"675\" height=\"216\" class=\"wp-image-1966\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-571.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-571.png 675w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-571-300x96.png 300w\" sizes=\"auto, (max-width: 675px) 100vw, 675px\" \/><\/p>\n<p>Then save and close the Zabbix agent configuration file.<\/p>\n<p>4. Start and enable the Zabbix service:<\/p>\n<pre>$\u00a0sudo\u00a0systemctl\u00a0start\u00a0zabbix-agent\n\n$\u00a0sudo\u00a0systemctl\u00a0enable\u00a0zabbix-agent<\/pre>\n<p>Then verify whether the Zabbix agent is active and running properly.<\/p>\n<pre>$\u00a0sudo\u00a0systemctl\u00a0status\u00a0zabbix-agent<\/pre>\n<p>5. Also, allow port 10050 through the firewall:<\/p>\n<pre>$ sudo ufw allow 10050\/tcp<\/pre>\n<h3>Add Host to the Zabbix Server<\/h3>\n<p>In the previous section, we installed the agent on the client machine. Now, we will add this machine in the Zabbix server.<\/p>\n<p>1. Login to the Zabbix server web interface by visiting:<\/p>\n<pre><a href=\"http:\/\/zabbix-server-hostname-or-IP\/zabbix\">http:\/\/zabbix-server-hostname-or-IP\/zabbix<\/a>.<\/pre>\n<p>2. Go to <strong>Configuration &gt; Hosts<\/strong> from the left navigation bar. Then click <strong>Create host <\/strong>as marked by the arrow in the following screenshot.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1323\" height=\"633\" class=\"wp-image-1967\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-572.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-572.png 1323w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-572-300x144.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-572-1024x490.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-572-768x367.png 768w\" sizes=\"auto, (max-width: 1323px) 100vw, 1323px\" \/><\/p>\n<p>3. Type the <strong>hostname<\/strong> of the Zabbix agent machine and then add it to the<strong> Linux servers<\/strong> group.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1054\" height=\"592\" class=\"wp-image-1968\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-573.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-573.png 1054w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-573-300x169.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-573-1024x575.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-573-768x431.png 768w\" sizes=\"auto, (max-width: 1054px) 100vw, 1054px\" \/><\/p>\n<p>4. Type the <strong>IP address<\/strong> of the Zabbix agent machine.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1100\" height=\"444\" class=\"wp-image-1969\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-574.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-574.png 1100w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-574-300x121.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-574-1024x413.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-574-768x310.png 768w\" sizes=\"auto, (max-width: 1100px) 100vw, 1100px\" \/><\/p>\n<p>5. Then go to the <strong>Templates<\/strong> tab, select <strong>Templates\/Operating systems.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"954\" height=\"510\" class=\"wp-image-1970\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-575.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-575.png 954w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-575-300x160.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-575-768x411.png 768w\" sizes=\"auto, (max-width: 954px) 100vw, 954px\" \/><\/p>\n<p>From the list, select <strong>Linux by Zabbix agent <\/strong>and then click <strong>Select<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"962\" height=\"525\" class=\"wp-image-1971\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-576.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-576.png 962w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-576-300x164.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-576-768x419.png 768w\" sizes=\"auto, (max-width: 962px) 100vw, 962px\" \/><\/p>\n<p>Then click the <strong>Add<\/strong> button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"996\" height=\"367\" class=\"wp-image-1972\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-577.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-577.png 996w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-577-300x111.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-577-768x283.png 768w\" sizes=\"auto, (max-width: 996px) 100vw, 996px\" \/><\/p>\n<p>Now click the <strong>Add<\/strong> button at the bottom of the web interface to add this host to the Zabbix server. Once added, you will be notified with the <strong>Host added<\/strong> notification at the top of window.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1324\" height=\"689\" class=\"wp-image-1973\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-578.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-578.png 1324w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-578-300x156.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-578-1024x533.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-578-768x400.png 768w\" sizes=\"auto, (max-width: 1324px) 100vw, 1324px\" \/><\/p>\n<p>If you head over to Dashboard, you will see two hosts added to your Zabbix server; one is the Zabbix server itself and the other is the client machine.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1168\" height=\"461\" class=\"wp-image-1974\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-579.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-579.png 1168w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-579-300x118.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-579-1024x404.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-579-768x303.png 768w\" sizes=\"auto, (max-width: 1168px) 100vw, 1168px\" \/><\/p>\n<p>In this post, you have learned how to install and configure the Zabbix server on Linux. You have also learned how to install and configure the Zabbix agent on the Zabbix server and the client machines. Now you can easily keep track of the servers and monitor their health.<\/p>","protected":false},"excerpt":{"rendered":"<p>Zabbix is an open-source utility for monitoring servers, network devices, network services, and applications. It helps to keep an eye on the network infrastructure and detect issues with&hellip;<\/p>","protected":false},"author":4,"featured_media":1978,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[35,82],"class_list":["post-1949","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-linux","tag-zabbix-monitoring-server"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/1949","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=1949"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/1949\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/1978"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=1949"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=1949"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=1949"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}