Zabbix에 호스트 서버 연동
1. 호스트 서버에서 Agent 설치
https://www.zabbix.com/download
2. 명령어 입력
zabbix repo설정
# wget https://repo.zabbix.com/zabbix/7.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_7.0-2+ubuntu22.04_all.deb
# dpkg -i zabbix-release_7.0-2+ubuntu22.04_all.deb
# apt update
zabbix 설치
# apt install zabbix-agent
# systemctl restart zabbix-agent
# systemctl enable zabbix-agent
방화벽 설정
# firewall-cmd --permanent --add-port=80/tcp
# firewall-cmd --permanent --add-port=443/tcp
# firewall-cmd --permanent --add-port=10050-10051/tcp
# firewall-cmd --reload
conf 파일 수정
# vi /etc/zabbix/zabbix_agentd.conf
117번 Server=[Zabbix서버 주소]
173번 ServerActive=[Zabbix서버 주소]
184번 Hostname=[agent설치할 서버의 호스트네임]
3. Zabbix 웹사이트에서 호스트 추가
4. 호스트 연동이 잘 되었다면 상태 표시가 초록색으로 뜬다.
'Zabbix > Zabbix 서버 설치 및 Agent 연동' 카테고리의 다른 글
Zabbix 서버 설치 (0) | 2024.09.29 |
---|