1. 程式人生 > >Zabbix監控服務器硬盤狀態

Zabbix監控服務器硬盤狀態

ces ive div mon oca zabbix監控 local 監控 smart

安裝Iptables服務:

[[email protected] /]# yum install iptables-services
[[email protected] /]# vim /etc/sysconfig/iptables
[[email protected] /]# systemctl enable iptables
[[email protected] /]# systemctl start iptables

安裝SmartMonTools程序:

[[email protected] /]# yum -y install smartmontools
[[email protected]
/* */ /]# chmod u+s /usr/sbin/smartctl

安裝Zabbix服務:

[[email protected] /]# yum -y install http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-agent-3.0.3-1.el7.x86_64.rpm
[[email protected] /]# vim /etc/zabbix/zabbix_agentd.conf
Server=172.16.1.186
ServerActive=172.16.1.186
Hostname=L-172.16.1.207

UserParameter=connection.tcp,ss -nat | grep ESTA | wc -l
UserParameter=smart.health.sda,smartctl -H /dev/sda | grep PASSED | wc -l
UserParameter=smart.health.sdb,smartctl -H /dev/sdb | grep PASSED | wc -l
[[email protected] /]# systemctl enable zabbix-agent
[[email protected] /]# systemctl start zabbix-agent

[THE END]






Zabbix監控服務器硬盤狀態