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

Explanation of the precautions for Mysql master-slave replication

1. Error error connecting to master 'x@xxxx:x...

Explanation of several ways to run Tomcat under Linux

Starting and shutting down Tomcat under Linux In ...

Three ways to align div horizontal layout on both sides

This article mainly introduces three methods of i...

A brief discussion on the principle of shallow entry and deep exit of MySQL

Table of contents 1. Overview of the page 2. Infi...

Summary of front-end knowledge in the Gokudō game

background In the early stages of learning Japane...

How to use native JS to implement touch sliding monitoring events

Preface I wrote a small demo today. There is a pa...

CSS -webkit-box-orient: vertical property lost after compilation

1. Cause The requirement is to display two lines,...

Detailed explanation of Vue's props configuration

<template> <div class="demo"&g...

Detailed explanation of how to view the current number of MySQL connections

1. View the detailed information of all current c...

How to write DROP TABLE in different databases

How to write DROP TABLE in different databases 1....

Modify the boot time of grub in ubuntu

The online search to modify the grub startup time...

Detailed explanation of how MySQL solves phantom reads

1. What is phantom reading? In a transaction, aft...