There are two types of checks between Zabbix Server and Client.
- Passive Check – Zabbix Agent sent data to server on their request.
- Active Check – Zabbix Agent sends data periodically to server.
In this lab post, we are focusing on Active Check type. Here is the diagram we are talking about
Notes:
1. for passive items, zabbix server must be able to connect on port 10050 on agent ip, as configured in the host properties;
2. for active items, zabbix agents must be able to connect to the zabbix server on port 10051 and their Hostname directive in their config file must match host name on the zabbix server (not ip, not dns - host name). (Including upper/lower case letters)
3. If you make changes in the agent conf file, you must restart the agent.
1. Install Zabbix Agent 4.0
Before installing Zabbix Agent first configure Zabbix yum repository using following commands as per your required version and operating system.2. Zabbix Agent Configuration
vim /etc/zabbix/zabbix_agentd.conf
Start Zabbix-Agent service:systemctl enable zabbix-agent.service systemctl start zabbix-agent.service
3. Add Linux host into Zabbix Web GUI
3.1 Create host groupYou can create your own group to accommodate your linux servers. It is at Configuration -> Host groups -> Create host group.
3.2 Create a new templateÂ
From Configuration -> Templates ->Create template button, you can create your own template if it is needed. Make sure it has been linked it to existing template to have all items.
3.3 Create a host and link it to the group and template
Note: Please make sure the interface ip is 127.0.0.1 and port number is 10050.
Search your new created template and add it into Linked templates.
4. Verification
From Agent machine:YouTube Video:
No comments:
Post a Comment