Enable Zabbix Module
apt install zabbix-agent
ceph mgr module enable zabbix
ceph zabbix config-set zabbix_host {Zabbix Server HostIP}
ceph zabbix config-set identifier ceph-{fsid}
ceph zabbix config-show
Edit "/etc/zabbix/zabbix_agentd.conf"
vi /etc/zabbix/zabbix_agentd.conf
Server: {Zabbix Server HostIP}
ServerActive: {Zabbix Server HostIP}
Hostname: {Ceph-fsid}
systemctl restart zabbix-agent.service
Add "zabbix_template.xml" to Zabbix Dashboard
"아래 링크를 통해서 템플릿 다운로드" > Data conllection > Templates -> Import > 파일선택 > "다운로드한 템플릿 파일"
curl https://raw.githubusercontent.com/ceph/ceph/master/src/pybind/mgr/zabbix/zabbix_template.xml -o zabbix_template.xml
Add Ceph Cluster to Zabbix Dashboard
Monitoring > Host > Create Host > "아래 그림 참고" > Add
Install Zabbix-Sender in Ceph MGR Container
docker exec -it {ceph-mgr containerID} /bin/bash
rpm -Uvh https://repo.zabbix.com/zabbix/6.4/rhel/8/x86_64/zabbix-release-6.4-1.el8.noarch.rpm
dnf clean all
dnf install -y zabbix-sender
Set "ceph health logger"
/var/log/ceph_health.log 파일에 log가 쌓이는지 확인
git clone https://github.com/tmax-cloud/hypersds-wiki.git
cd hypersds-wiki/zabbix
chmod a+x ceph_health_logger.sh
cp ceph_health_logger.sh /usr/sbin/
cp ceph_health /etc/logrotate.d/
cp ceph-health-logger.service /usr/lib/systemd/system/
systemctl daemon-reload
systemctl enable ceph-health-logger.service
systemctl start ceph-health-logger.service
Check Zabbix Metric Send
ceph zabbix discovery
ceph zabbix send
'DevOps > CEPH' 카테고리의 다른 글
[CEPH] Local Disk (root) Full(사용 가능 공간 5%미만) 상태로 인한 Error (0) | 2023.12.05 |
---|---|
[CEPH] Building a Ceph Cluster environment in CentOS 8 Stream - woodev.co (0) | 2023.12.05 |