Detailed explanation of Linux zabbix agent deployment and configuration methods

Detailed explanation of Linux zabbix agent deployment and configuration methods

1. Install zabbix-agent on web01

Deploy zabbix warehouse

rpm -Uvh https://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm

Change the URL address in the warehouse

sed -i 's#http://repo.zabbix.com#https://mirrors.aliyun.com/zabbix#' /etc/yum.repos.d/zabbix.repo

Install the agent

yum -y install zabbix-agent

Modify the configuration file /etc/zabbix/zabbix_agentd.conf

Server=192.168.1.71

ListenPort=10050

#StartAgents=0

#ServerActive=192.168.1.71

Hostname=web01

illustrate:

  • Server: The IP address of the zabbix-server accessed in passive mode
  • ServerActive: The IP address of the zabbix-server accessed in active mode
  • StartAgents: The number of instances of zabbix_agentd used to handle passive checks. If set to 0, passive mode checks are disabled and the agent no longer listens on any TCP port.

Open ports in firewall

Start the service

systemctl start zabbix-agent systemctl enable zabbix-agent

2. Click Configuration---Host on the zabbix-server web page

Click Create Host in the upper right corner:

Click Template and select Template OS Linux by Zabbix agent

Click Update, and the host list will appear as follows:

Select Monitoring---Host---web01 to start viewing various monitoring data and graphics.

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • How to deploy zabbix_agent in docker
  • Installation and configuration method of Zabbix Agent on Linux platform
  • Zabbix uses PSK shared key to encrypt communication between Server and Agent
  • Install and configure Zabbix Agentd on Windows
  • Installation process of zabbix-agent on Kylin V10

<<:  Implementing simple tabs with js

>>:  Detailed explanation of MySQL InnoDB index extension

Recommend

Document Object Model (DOM) in JavaScript

Table of contents 1. What is DOM 2. Select elemen...

Pure CSS to achieve hover image pop-out pop-up effect example code

Implementation principle The main graphics are co...

CSS navigation bar menu with small triangle implementation code

Many web pages have small triangles in their navi...

MySQL data type selection principles

Table of contents Small but beautiful Keep it sim...

Vue uses vue-quill-editor rich text editor and uploads pictures to the server

Table of contents 1. Preparation 2. Define the gl...

Solution to the problem that mysql local login cannot use port number to log in

Recently, when I was using Linux to log in locall...

CSS shadow animation optimization tips

This technique comes from this article - How to a...

How to insert 10 million records into a MySQL database table in 88 seconds

The database I use is MySQL database version 5.7 ...

How to configure user role permissions in Jenkins

Jenkins configuration of user role permissions re...

Forever+nginx deployment method example of Node site

I recently bought the cheapest Tencent cloud serv...

Navicat imports csv data into mysql

This article shares with you how to use Navicat t...

Detailed explanation of MySQL database isolation level and MVCC

Table of contents 1. Isolation Level READ UNCOMMI...

MySQL derived table (Derived Table) simple usage example analysis

This article uses an example to describe the simp...

Best Practices Guide for MySQL Partitioned Tables

Preface: Partitioning is a table design pattern. ...