설정
- 환경
- AWS EC2
- 보안
- ec2인 경우 10050/tcp Open
- os내에서는 firewall, ufw enable 혹은 10050 Open
- install zabbix repo
# wget <https://repo.zabbix.com/zabbix/7.4/release/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.4+ubuntu24.04_all.deb>
# dpkg -i zabbix-release_latest_7.4+ubuntu24.04_all.deb
# apt update
- install zabbix agent
apt install zabbix-agent
- edit file
vim /etc/zabbix/zabbix_agentd.conf
수정
Server="server ip"
ServerActivate="server io"
Hostname="host 추가 시 hostname"
----
******* 중요 *******
* server ip 확인 법
curl -s ifconfig.me
를 server에 입력 한 값이 실제 접속 출발지 IP여서
해당 IP를 기입해줘야함
- restart agent
systemctl restart zabbix-agent
systemctl enable zabbix-agent
- zabbix-server 접속
http://"server ip"/zabbix
------
이때 server ip는 ifconifg으로 나온 ip 기입
** 위 conf 파일의 ip와 다름 **
- 호스트 생성
데이터 수집 -> 호스트 -> 호스트 생성

호스트 명 : agent의 conf에 적은 hostname
템플릿 : Linux by Zabbix agent
호스트 그룹 : Linux servers - 따로 생성 해줘도 됌
인터페이스 : hostIP(agent)주소
- 결과
