Zabbix

zabbix Agent 설치

bedbmsguru 2018. 10. 26. 21:41

#####################Windows Agent Install######################

//방화벽OPEN  WIN2012이상만 powershell로 가능
New-NetFirewallRule -DisplayName "Zabbix PORT" -Direction Inbound -LocalPort 10050 -Protocol TCP -Action Allow

//window용 agent
//설치후 서비스에서 시작 필요
c:\zabbix\zabbix_agentd.exe -i -c c:\zabbix\zabbix_agentd.conf





#####################Linux Agent Install######################
--Repositry 설치(Agent버전에 따라 URL이다름)
sudo rpm -Uvh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-agent-4.0.0-.el7.x86_64.rpm
sudo yum install zabbix-agent

--Config파일 수정
sudo vi /etc/zabbix/zabbix_agentd.conf
Server=10.10.10.10
ServerActive=10.10.10.10
Hostname=현재설정 서버호스트
HostMetadataItem=system.uname (호스트네임자동등록위해)


--방화벽오픈
sudo firewall-cmd --permanent --add-port=10050/tcp --zone=public
sudo firewall-cmd --reload

--Agent시작
sudo systemctl start zabbix-agent
sudo systemctl enable zabbix-agent