1.4. Cấu hình zabbix agent để lấy quét số lượng đĩa cứng trong Server:
vim /etc/zabbix/zabbix_agentd.conf
#IP Zabbix-Server(ở đây là 172.16.69.45)
Server=172.16.69.45
#hostname cua Zabbix agent
Hostname=kvm-hpdl36001
# Dat USerparameter de zabbix agent quet so luong o dia
UserParameter=custom.vfs.dev.discovery, sudo /usr/bin/python /opt/zabbix/linux/hpacucli-status
1.5. Cấu hình cho phep user zabbix thực thi với sudo:
echo "zabbix ALL=NOPASSWD: ALL" >> /etc/sudoers
1.6. Cấu hinh zabbix agent lấy thông tin ổ đĩa
cd /etc/zabbix/zabbix_agentd.conf.d
wget https://github.com/longsube/Zabbix_check_physicaldisks_status/blob/master/HP%20RAID%20Controller/hpa-disk-status.conf
service zabbix-agent restart
2. Trên Zabbix Server
2.1. Tạo Template Template Linux Disk Status để lấy thông tin ổ đĩa
2.2. Tạo Discovery rule cho template
Zabbix Server sẽ dựa vào key custom.vfs.dev.discovery, lọc theo {#DISK} để lấy tên của ổ đĩa (ở đây là vị trí của ổ đĩa), thời gian lấy mẫu là 30s.
2.3. Tạo Item prototype trong Discovery rule vừa tạo để lấy thông tin tình trạng ổ đĩa
Zabbix Server dựa vào key custom.vfs.dev.status[{#DISK}], thời gian lấy mẫu là 50s, loại thông tin là character
2.4. Tạo Item prototype trong Discovery rule vừa tạo để lấy thông tin nhiệt độ ổ đĩa
Zabbix Server dựa vào key custom.vfs.dev.temperature[{#DISK}], thời gian lấy mẫu là 30s, loại thông tin là numeric
2.5. Thêm host cần giám sát
Đưa template Template Linux Disk Status giám sát đisk vào host
Giám sát máy chủ IIS với ZBX-WINDOWS-IIS
ZBX-WINDOWS-IIS
This template use Zabbix agent to discover and manage IIS server.
Items
ASP.Net Total errors
ASP.Net Worker process restarts
ASP.Net Number of current requests
ASP.Net Application restarts
ASP.Net Requests…Read More
0 comments:
Post a Comment