How to install & Configure Zabbix Agent?


How to install Zabbix Agent 6 in Centos7?


$ yum update
$ yum install wget -y
$ wget https://repo.zabbix.com/zabbix/6.0/rhel/7/x86_64/zabbix-agent-6.0.0-1.el7.x86_64.rpm --no-check-certificate
$ rpm -ivh zabbix-agent-6.0.0-1.el7.x86_64.rpm
$ yum install pcre2-devel.x86_64
$ yum update
$ yum install zabbix-agent

# Modify zabbix_agentd.conf with zabbix server hostname or IP
$ vi /etc/zabbix/zabbix_agentd.conf

$ service zabbix-agent start
$ systemctl enable zabbix-agent
$ service zabbix-agent restart

Zabbix Agent LogFile - /var/log/zabbix/zabbix_agentd.log
Agent Config file - /etc/zabbix/zabbix_agentd.conf


How to install Zabbix Agent 6 in Ubuntu 20?


$ wget https://repo.zabbix.com/zabbix/6.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.0-1+ubuntu20.04_all.deb
dpkg -i zabbix-release_6.0-1+ubuntu20.04_all.deb
$ apt update && sudo apt upgrade
$ apt install zabbix-agent 
$ vi /etc/zabbix/zabbix_agentd.conf
$ systemctl restart zabbix-agent 
$ systemctl enable zabbix-agent 

Zabbix Agent LogFile - /var/log/zabbix/zabbix_agentd.log
Agent Config file - /etc/zabbix/zabbix_agentd.conf

This image has an empty alt attribute; its file name is image-71-1024x516.png

How to install Zabbix Agent 6 in Windows 2019?


Step 1 – Disable “IE enahanced Security Configuration” in Local server so you can download file easily

Step 2 – Download a MSI file from https://www.zabbix.com/download_agents

URL for Zabbix Agent Version 6 – https://cdn.zabbix.com/zabbix/binaries/stable/6.0/6.0.1/zabbix_agent-6.0.1-windows-amd64-openssl.msi

Step 3 – Install zabbix_agent-6.0.1-windows-amd64-openssl.msi with below configuration

Step 4 – Check a Zabbix Agent Services is running or not


Zabbix Agent 2 Installation in Windows

Version - Zabbix agent 2 v6.0.1
Download - https://cdn.zabbix.com/zabbix/binaries/stable/6.0/6.0.1/zabbix_agent2-6.0.1-windows-amd64-openssl.msi

Zabbix Agent 2 Installation in Ubuntu Linux


Version - Zabbix agent 2 v6.0.1
$ apt install zabbix-agent2

# # Modify zabbix_agent2.conf with zabbix server hostname or IP
$ vi /etc/zabbix/zabbix_agent2.conf

$ systemctl restart zabbix-agent2

Zabbix Agent 2 Installation in Centos/RHEL Linux


$ yum update
$ yum install pcre2-devel.x86_64 
$ yum install pcre.x86_64

$ rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/7/x86_64/zabbix-agent2-6.0.2-1.el7.x86_64.rpm
& yum update
$ yum install install zabbix-agent2

# Modify zabbix_agent2.conf with zabbix server hostname or IP
$ vi /etc/zabbix/zabbix_agent2.conf

$ service zabbix-agent start
$ systemctl enable zabbix-agent2
$ service zabbix-agent2 restart

How to add new host (zabbix agent) at Zabbix Server


Step 1 – Configuration ==> Hosts ==> Create Host

Step 2 – Enter Follwing

- Host name - 
- Templates - Linux by Zabbix Agent OR Windows by Zabbix agent
- Groups - Virtual Machine
- Interfaces - Agent

Note - Use Public IP address of Agent

Step 3 – Wait for 60 seconds and verify as below;

The Availability column contains indicators of host availability per each interface. We have defined a Zabbix agent interface, so we can use the agent availability icon (with ‘ZBX’ on it) to understand host availability:

  • icon_zbx_gray.png – host status has not been established; no metric check has happened yet
  • icon_zbx_green.png – host is available, a metric check has been successful
  • icon_zbx_red.png – host is unavailable, a metric check has failed (move your mouse cursor over the icon to see the error message). There might be some error with communication, possibly caused by incorrect interface credentials. Check that Zabbix server is running, and try refreshing the page later as well.

How to configure and deploy Zabbix passive and active agents:

  1. Install the Zabbix repository and the Zabbix Agent on your host
  2. Open the zabbix_agentd.conf configuration file
  3. Specify your Zabbix Server address in the Server and ServerActive parameters
  4. Define the name of your host in the Hostname parameter
  5. Restart the Zabbix Agent
  6. Navigate to Configuration â†’  Hosts
  7. Create two hosts in Zabbix frontend – one for passive and one for active checks
  8. For passive Agent host – define an Agent interface containing the address of your Zabbix Server
  9. The active agent Host name should match the Hostname parameter value in the Agent configuration file
  10. Apply the corresponding Linux by Zabbix Agent/Linux by Zabbix Agent active template
  11. Navigate to Monitoring â†’  Latest data and check if you have received metrics from the hosts

Rajesh Kumar
Follow me
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x