설정

  1. 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
  1. install zabbix agent
apt install zabbix-agent
  1. 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를 기입해줘야함
  1. restart agent
systemctl restart zabbix-agent
systemctl enable zabbix-agent
  1. zabbix-server 접속
http://"server ip"/zabbix

------
이때 server ip는 ifconifg으로 나온 ip 기입
** 위 conf 파일의 ip와 다름 **
  1. 호스트 생성
데이터 수집 -> 호스트 -> 호스트 생성

image.png

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

image.png