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<root_password>
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by '<password>';
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=<password>

启动服务

# 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
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 1.写在前面 本文主要介绍的是zabbix的编译安装过程,包含它的基础环境LNMP,虽然zabbix官方一般推荐的...
    天之蓝色阅读 7,290评论 0 16
  • Zabbix简介 Zabbix官方网站Zabbix中文文档 本文系统环境是CentOS7x86_64, Zabbi...
    Zhang21阅读 12,472评论 0 37
  • 先通过lnmp一键安装包吧nginx和数据库、php搞起来!然后:实现:1. 获取zabbix centos:获取...
    老夫刘某阅读 6,844评论 0 3
  • 说起潜水,大家都觉得,哇,需要假期,还去要远赴海边(还得是风景优美的海边),没钱没时间啊! 其实,潜水和滑翔伞,高...
    Moi宣潜水阅读 10,182评论 0 0
  • 在逛闲鱼二手市场的时候,无意中看到一条信息。 一个卖家挂出一个九成新的跑步机,描述中是这样写的。 原价3000多的...
    乖乖猫的毛阅读 10,583评论 33 214