zabbix(3.2版本)安装过程(含Agent)

Server(3.2版本)

参考链接https://www.zabbix.com/documentation/3.2/manual/installation/install_from_packages/server_installation_with_mysql

[root@server1 ~]# cat /etc/redhat-release 
CentOS Linux release 7.2.1511 (Core) 

安装仓库(Server与Agent都要安装)

# rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm

安装服务端

# yum -y install zabbix-server-mysql zabbix-web-mysql httpd mariadb-server

新建数据库用户

shell> mysql -uroot -p
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by '';
mysql> quit;
# zcat /usr/share/doc/zabbix-server-mysql-3.2.*/create.sql.gz | mysql -uzabbix -p zabbix

查看版本号是否是3.2

[root@zabbix-server ~]# rpm -q zabbix-server-mysql
zabbix-server-mysql-3.2.11-1.el7.x86_64

Configure database for Zabbix server

# vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=

启动服务

# systemctl start zabbix-server
# systemctl enable zabbix-server
# systemctl start httpd.service
# systemctl enable httpd.service

前端配置

# vi /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
# systemctl restart httpd.service

Agent安装

# yum install zabbix-agent

配置文件

[root@localhost ~]# vi /etc/zabbix/zabbix_agentd.conf 
### Option: Server
#       List of comma delimited IP addresses, optionally in CIDR notation, or hostnames of Zabbix servers.
#       Incoming connections will be accepted only from the hosts listed here.
#       If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' are treated equally and '::/0' will allow any IPv4 or IPv6 address.
#       '0.0.0.0/0' can be used to allow any IPv4 address.
#       Example: Server=127.0.0.1,192.168.1.0/24,::1,2001:db8::/32,zabbix.domain
#
# Mandatory: no
# Default:
# Server=

Server=192.168.116.94

### Option: ListenPort
#       Agent will listen on this port for connections from the server.
#
# Mandatory: no
# Range: 1024-32767
# Default:
# ListenPort=10050

启动Agent

# systemctl start zabbix-agent

完成安装

http://192.168.116.94/zabbix/

默认用户名和密码

Admin
zabbix

你可能感兴趣的:(zabbix(3.2版本)安装过程(含Agent))