Raspberry Pi 3B
[Raspberry Pi OS] Zabbix Agent 설치 및 호스트 등록
놀자요를레히
2021. 2. 5. 15:53
[Raspberry Pi OS] Zabbix Agent 설치 및 호스트 등록
dianamin329.tistory.com/19?category=977524
Zabbix 를 설치하지 않았다면 위의 게시글을 참고하여 설치를 먼저 하고오자!
Zabbix Agent는 Zabbix를 설치한 서버가 아닌, 모니터를 하고싶은 서버에 설치해줘야한다
Zabbix Agent 설치
# rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm # yum -y install zabbix zabbix-agent
# vi /etc/zabbix/zabbix_agentd.con Server=자빅스 서버 IP ServerActive=자빅스 서버 IP Hostname=Zabbix Agent IP(현재 작업중인 IP)
자빅스 서버 IP란 이전에 Zabbix를 설치했던 서버의 IP를 의미한다



서비스 실행
# systemctl enable zabbix-agent # systemctl start zabbix-agent
방화벽 설정
# firewall-cmd --add-port=10050/tcp --permanent # firewall-cmd --reload
웹 브라우저에 http://ZABBIX 설치 서버 IP/zabbix 입력 후 로그인
(초기ID : Admin, 초기PW : zabbix)
설정 - 호스트 그룹 - (상단우측) - 호스트 그룹 작성 - 이름 입력 - 추가

설정 - 템플릿 - 호스트 그룹 입력 - 템플릿과의 링크에 Template OS Linux by Zabbix agent 입력 후 선택 - 적용

설정 - 호스트 - (상단우측) 호스트 작성 - 작성 후 추가
* 호스트 명 = 상단에 zabbix_agentd.conf 편집할때 Hostname= 뒤에 넣어준 IP 또는 도메인과 동일해야함!
* 그룹 = 위에 설정해준 호스트 그룹명 입력
* Interfaces = Zabbix Agent 설치 서버 IP

추가 후 시간이 조금 지나야 Zabbix에서 인식하고 연결이 되어서 잠시 기다려주면 우측에 ZBX에 초록불이 들어오면서 연결완료를 확인할 수 있다
