1.安装服务器端包
1.1 #rpm -ivhhttp://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/
zabbix-release-3.0-1.el7.noarch.rpm
1.2 #yum clean all
1.3 #yum install zabbix-server-mysql zabbix-web-mysql
1.4 #yum -y install mariadb-server
2.启动mariadb
2.1 #systemctl start mariadb.service
2.2 #systemctl enable mariadb.service
3.创建zabbix数据库
3.1 #cd /usr/share/doc/zabbix-server-mysql-3.0.5/
3.2 #gunzip create.sql.gz
3.3 #mysql -uroot -p
3.4 mysql> create database zabbix character set utf8 collate utf8_bin;
3.5 mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbixpwd';
3.6 mysql> quit;
3.7 #mysql -uzabbix -pzabbixpwd zabbix < create.sql
4.修改zabbix配置文件
4.1 #vim /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbixpwd
4.2 #systemctl start zabbix-server
4.3 #systemctl enable zabbix-server
5.关闭Selinux和防火墙
5.1 #setenforce 0
5.2 #systemctl stop firewalld
6.修改http配置文件
6.1 #vim /etc/httpd/conf.d/zabbix.conf
php_value max_execution_time 300
php_value memory_limit 128M
php_value post_max_size 16M
php_value upload_max_filesize 2M
php_value max_input_time 300
php_value always_populate_raw_post_data -1
php_value date.timezone Asia/Shanghai
6.2 #systemctl enable httpd
6.3 #systemctl start httpd
7.安装和配置客户端
7.1 #rpm -ivhhttp://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/
zabbix-release-3.0-1.el7.noarch.rpm
7.2 #yum -y install zabbix-agent
7.3 #vi /etc/zabbix/zabbix_agentd.conf
Server=(服务端ip)
7.4 #setenforce 0
#systemctl stop firewalld
7.5 #systemctl enable zabbix-agent
7.6 #systemctl start zabbix-agent
8.登陆zabbix
网友评论