Monitoring
[RHEL8] Zabbix Client (Agent) Install
HK Jeon.
2021. 7. 5. 13:29
728x90
반응형
1. Install zabbix-agent
(RHEL8)
rpm -ivh http://repo.zabbix.com/zabbix/5.0/rhel/8/x86_64/zabbix-agent-5.0.10-1.el8.x86_64.rpm
(RHEL7)
rpm -ivh http://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-agent-5.0.10-1.el7.x86_64.rpm
2. Configure config file
vi /etc/zabbix/zabbix_agentd.conf
Server=20.20.20.250 (zabbix server IP)
StartAgents=1
ServerActive=20.20.20.250
if you configed /etc/hosts/ file for domain
Hostname=hk-k8s-master1
# If no, please config below config value.
Hostname=100.100.100.11
3. zabbix-agent enable and server start
systemctl enable zabbix-agent --now
4. Configure the firewall rules for zabbix-agent
sudo firewall-cmd --permanent --add-port=10050/tcp
sudo firewall-cmd --permanent --add-port=10051/tcp
sudo firewall-cmd --permanent --add-port=80/tcp
sudo firewall-cmd --reload
--------------------------------------------
iptables -I INPUT -p tcp --dport 10050 -j ACCEPT
728x90
반응형