一煌寇、zabbix安裝與基本配置
1、配置YUM源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
rpm -ivh https://mirrors.aliyun.com/zabbix/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
Yum clean all
Yum makecache
2窃爷、安裝zabbix、初始化mysql栓票、zabbix數(shù)據(jù)庫
yum install zabbix-server-mysql zabbix-web-mysql mariadb-server zabbix-agent -y
systemctl start mariadb
systemctl enable mariadb
mysql_secure_installation
create database zabbix character set utf8 collate utf8_bin;
grant all privileges on zabbix.* to zabbix@localhost identified by '123456';
zcat /usr/share/doc/zabbix-server-mysql-4.0.4/create.sql.gz|mysql -uzabbix -p123456 zabbix
3衅鹿、配置zabbix
vim /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Asia/Shanghai
systemctl start httpd
systemctl enable httpd
vim /etc/zabbix/zabbix_server.conf
DBPassword=123456
systemctl start zabbix-server
systemctl enable zabbix-server
vim /etc/zabbix/zabbix_agentd.conf
Server=192.168.100.110
ServerActive=192.168.100.110 #主動模式的server IP地址
systemctl start zabbix-agent
systemctl enable zabbix-agent