Zabbix安装

本文详细介绍Zabbix的安装步骤,包括配置Zabbix服务器、前端和代理,创建初始数据库及配置PHP等。同时记录了一些常见问题及其解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

zabbix安装官方文档非常详细:https://www.zabbix.com/download

1、Install and configure Zabbix server、

    a、Install Repository with MySQL database

# rpm -i http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm

      b、Install Zabbix server, frontend, agent

# yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent

      c、Create initial database

# 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;

  Import initial schema and data. You will be prompted to enter your newly created password.

# zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
d. Configure the database for Zabbix server

Edit file /etc/zabbix/zabbix_server.conf

e. Configure PHP for Zabbix frontend
Edit file /etc/httpd/conf.d/zabbix.conf, uncomment and set the right timezone for you.

# php_value date.timezone Europe/Riga
f. Start Zabbix server and agent processes

Start Zabbix server and agent processes and make it start at system boot:

# systemctl restart zabbix-server zabbix-agent httpd
# systemctl enable zabbix-server zabbix-agent httpd

安装过程非常简单,但是过程中遇到一些问题记录一下:

1、httpd之前其他程序安装过,安装过程中配置文件为覆盖,导致前端页面启动不了,删除装即可。

2、zabbix_server启动不了,发现是mysql连接不上,由于自己用的docker mysql,所以在/etc/zabbix/zabbix_server.conf中配置相应的参数即可。

zabbix是一个多语言监控系统,默认使用英文并且也支持中文语言,详见《zabbix汉化方法》,但是近期有人反映说zabbix里面看不到中文语言.请往下看

zabbix不支持中文图

Linux

zabbix中文

开启zabbix对中文的支持

原来zabbix默认把对中文的支持给关闭了,我们需要修改zabbix的php源文件. 修改站点根目录下include/locales.inc.php文件.

zabbix文档地址:https://www.zabbix.com/documentation/3.4/zh/manual/quickstart/login
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值