Zabbix配置管理
安装zabbix的yum源
rpm -ivh http://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
yum-config-manager --enable rhel-7-server-optional-rpms
服务器配置:
yum install -y mariadb zabbix-server zabbix-server-mysql zabbix-get zabbix-web zabbix-web-mysq
vim /etc/zabbix/zabbix_server.conf
StartPollers=100
StartTrappers=200
cp /usr/share/zabbix/* /var/www/html/ -a
tail -fn 100 /var/log/zabbix/zabbix_server.log
被监控服务器配置:
yum install -y zabbix-agent zabbix-sender
vim /etc/zabbix/zabbix_agentd.conf
Server=192.168.1.120
ServerActive=192.168.1.120
Hostname=192.168.1.121#被监控本机地址
tail -fn 100 /var/log/zabbix/zabbix_agentd.log
systemctl start mariadb
systemctl start zabbix-server.service
systemctl start zabbix-agent.service
systemctl start httpd