Zabbix6.0
版本说明
本文适用于6.0以上zabbix。理论上同时适用CentOS和OracleLinux及RedHat
如果使用3.x可使用此文↓↓↓
使用Orabbix在Ubuntu的Zabbix上监控Oracle_凯神做开发-CSDN博客
如果使用5.4以上版本可使用此文↓↓↓
在Zabbix5.4上使用ODBC监控Oracle数据库_凯神做开发-CSDN博客
服务器配置-关闭防火墙和selinux
systemctl stop firewalld.service
systemctl disable firewalld.service
setenforce 0
sed -i 's#SELINUX=enforcing#SELINUX=disabled#' /etc/selinux/config
MySQL安装
wget https://repo.mysql.com//mysql80-community-release-el8-4.noarch.rpm
yum -y install mysql80-community-release-el8-4.noarch.rpm
yum module disable mysql
yum -y install mysql-community-server
systemctl start mysqld.service
systemctl enable mysqld.service
查看数据库默认root密码
cat /var/log/mysqld.log | grep password
2022-07-27T07:49:10.795608Z 6 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: _PuPMzc:7otu
mysql -uroot -p
alter user 'root'@'localhost' identified by 'SQL.0727';
Zabbix安装
rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/8/x86_64/zabbix-release-6.0-2.el8.noarch.rpm
dnf clean all
dnf install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent mysql -uroot -p
Zabbix数据库和账号创建
create database zabbix character set utf8mb4