安装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]
原文:http://www.cnblogs.com/configure/p/7199830.html