zabbix监控,Zabbix4.0安装配置,Linux监控
Posted binleelinux
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了zabbix监控,Zabbix4.0安装配置,Linux监控相关的知识,希望对你有一定的参考价值。
zabbix4.0发布了,安装操作基本和3.x一样,一下为步骤简要!
1、安装zabbix仓库
[[email protected] ~]# rpm -i https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
2、安装zabbix
[[email protected] ~]# yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent mariadb-server -y
3、创建zabbix数据库
[[email protected] ~]# systemctl start mariadb.service
[[email protected] ~]# mysql -uroot -p
MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;
MariaDB [(none)]> grant all privileges on zabbix.* to [email protected] identified by ‘11111111‘;
MariaDB [(none)]> flush privileges;
MariaDB [(none)]> quit;
4、初始化数据库
[[email protected] ~]# zcat /usr/share/doc/zabbix-server-mysql-4.0.0/create.sql.gz |mysql -uzabbix -p zabbix
5、配置zabbix服务器的数据库连接密码
[[email protected] ~]# vim /etc/zabbix/zabbix_server.conf
DBPassword=11111111
6、更改zabbix服务器时区
[[email protected] ~]# vim /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Asia/Shanghai
7、启动zabbix相关所有服务
systemctl start httpd.service zabbix-server.service zabbix-agent.service mariadb.service
systemctl enable httpd.service zabbix-server.service zabbix-agent.service mariadb.service
8、web界面安装zabbix
http://server_ip_or_name/zabbix
9、中文乱码字体
上传微软雅黑字体并替换DejaVuSans.ttf
/usr/share/fonts/dejavu/DejaVuSans.ttf
10、使用ip地址直接访问 (http DocumentRoot)
[[email protected] ~]# vim /etc/httpd/conf/httpd.conf
DocumentRoot "/usr/share/zabbix"
systemctl restart httpd.service
以上是关于zabbix监控,Zabbix4.0安装配置,Linux监控的主要内容,如果未能解决你的问题,请参考以下文章