Install and Configure Zabbix Agents for Windows and Linux Hosts

Zabbix agent is deployed on a monitoring target to actively monitor local resources and applications (hard drives, memory, processor statistics, etc.).

The agent gathers operational information locally and reports data to Zabbix server for further processing. In case of failures (such as a hard disk running full or a crashed service process), Zabbix server can actively alert the administrators of the particular machine that reported the failure.

Zabbix agents are highly efficient because of the use of native system calls for gathering statistical information.

Passive and active checks

 

Zabbix agents can perform passive and active checks:
  • Passive checks - Zabbix agent responds to a request from Zabbix server (or proxy). For example, the server requests data (e.g., CPU load), and the agent returns the result.
  • Active checks - Zabbix agent collects and sends data without waiting for a request from Zabbix server (or proxy). First, it retrieves a list of monitoring items from server (CPU load, available memory, etc.), then collects the required data and periodically sends new values back to it.

The agent check type is configured by selecting the respective monitoring item type. Zabbix agent processes items of type "Zabbix agent" or "Zabbix agent (active)".

https://www.zabbix.com/documentation/current/en/manual/concepts/agent
 

Install Zabbix Agent on Windows

1 Download agent from https://www.zabbix.com/download_agents

2 Choose Zabbix Agent 2

3 install it on local server

4 Check Service

5  Create Windows host

Install Zabbix Agent on Linux

1 install package on Linux (Ubuntu, CentOS, Debian) directly without downloading

Install Zabbix repository First

# wget https://repo.zabbix.com/zabbix/7.4/release/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.4+ubuntu24.04_all.deb
# dpkg -i zabbix-release_latest_7.4+ubuntu24.04_all.deb
# apt update

apt update -y

apt install zabbix-agent

yum -y install zabbix-agent
You might need to install missing dependencies, such as

  • apt install libmodbus5

2 Configure Zabbix Agent to connect to server

vim /etc/zabbix/zabbix_agentd.conf
Server=34.67.224.10 ServerActive=34.67.224.10 Hostname=Ubuntu-24-1

Systemctl restart zabbix-agent

3 Create host from Data Collection menu - Hosts

Select proper templates for your host. You can have multiple templates for your host.

4 Check Availability from Hosts page

Videos

 

版权声明:
作者:zhangchen
链接:https://www.techfm.club/p/226067.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>