1. 选择Zabbix server 安装平台

2.安装和配置 Zabbix server
a. 使用MySQL数据库安装存储库
wget https://repo.zabbix.com/zabbix/4.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.0-2+bionic_all.deb
dpkg -i zabbix-release_4.0-2+bionic_all.deb
apt update
b. 安装Zabbix服务器,前端,代理
apt install zabbix-server-mysql zabbix-frontend-php zabbix-agent
c. 创建初始数据库
mysql -uroot -p
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*/create.sql.gz | mysql -uzabbix -p zabbix
d. 为Zabbix服务器配置数据库
编辑文件 /etc/zabbix/zabbix_server.conf
DBPassword=password
e. 配置 zabbix 时区
编辑文件 /etc/zabbix/apache.conf,取消注释,设置你想要的时区
php_value date.timezone Europe/Riga

f. 启动zabbix服务进程
配置服务开启自启动
systemctl restart zabbix-server zabbix-agent apache2
systemctl enable zabbix-server zabbix-agent apache2
3. 配置 Zabbix 前端
连接安装的前端地址: http://server_ip_or_name/zabbix
遵循Zabbix文档中描述的步骤: Installing frontend






登陆zabbix,默认用户名:Admin,密码:zabbix

4. Start using Zabbix
See Quickstart guide
网友评论