zabbix agent 설치

..·2023년 5월 2일
0

https://www.zabbix.com/download 이동

Zabbix 저장소 설치

# rpm -Uvh https://repo.zabbix.com/zabbix/6.4/rhel/8/x86_64/zabbix-release-6.4-1.el8.noarch.rpm
# dnf clean all

Zabbix 에이전트 2 설치

# dnf -y install zabbix-agent2 zabbix-agent2-plugin-*

Zabbix 에이전트 설정

#bash shell에서 변수 선언
Zabbix_Server=192.168.0.100    #서버 IP
#2대 예시 : Zabbix_Server=192.168.0.100,192.168.0.101
sed -i "s/Hostname=Zabbix server/Hostname=`hostname`/g" /etc/zabbix/zabbix_agent2.conf
sed -i "s/Server=127.0.0.1/Server=$Zabbix_Server/g" /etc/zabbix/zabbix_agent2.conf
#액티브 서버 미설정시에는 주석처리
#설정시에는 zabbix서버의 호스트와 에이전트의 Hostname=의 이름이 같아야함
sed -i "s/ServerActive=127.0.0.1/ServerActive=$Zabbix_Server/g" /etc/zabbix/zabbix_agent2.conf

Zabbix agent2 프로세스 시작

# systemctl enable --now zabbix-agent2
profile
...

0개의 댓글