Build Zabbix Server
- System environmen
| Hostname | System OS | CPU | Mem | IP |
| Mster | Centos8.3 | 2h | 2G | 1.1.1.10 |
| node | Centos8.3 | 2h | 2G | 1.1.1.11 |
- Install zabbix server
a. Install Zabbix repository
dnf -y install https://repo.zabbix.com/zabbix/5.2/rhel/8/x86_64/zabbix-release-5.2-1.el8.noarch.rpm
dnf clean all
b. Install zabbix server and web and agent
dnf install -y zabbix-server-mysql zabbix-web-mysql zabbix-nginx-conf zabbix-agent
c. Install Mariadb initialization password
dnf install -y mariadb *
mysqladmin -uroot password Pass_123
d. Make sure you have database server up and running.
# mysql -uroot -pPass_123
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> create user zabbix@localhost identified by 'Pass_123';
mysql> grant all privileges on zabbix.* to zabbix@localhost;
mysql> quit;
e. 导入初始架构和数据
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -pPass_123 zabbix
d. 为 Zabbix server 配置数据库
echo 'DBPassword=Pass_123' >> /etc/zabbix/zabbix_server.conf
e. 为Zabbix前端配置PHP
vim /etc/nginx/conf.d/zabbix.conf //取消以下注释, 更改server_name
# listen 80;
# server_name example.com;
>>
listen 80;
server_name zabbix.source.com; //改为自己域名 或者 IP
f. start zabbix server and zabbix agent 并且设置为开机自启
systemctl restart zabbix-server zabbix-agent nginx php-fpm
systemctl enable zabbix-server zabbix-agent nginx php-fpm
g. 配置Zabbix前端
连接到新安装的Zabbix前端: http://server_ip_or_name
根据Zabbix文件里步骤操作: Installing frontend
User: Admin
Pass: zabbix
- 开始使用zabbix
https://www.zabbix.com/documentation/5.2/manual/quickstart/login
f
I really like the design and contents of your web page Tansy Halsey Jo-Anne
Hey there. I found your web site by means of Google at the same time as searching for a comparable matter, your website got here up. It appears to be good. I have bookmarked it in my google bookmarks to come back then. Charlena Morse Pippy
Incredible points. Great arguments. Keep up the amazing work. Shellie Esme Hube
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Jessi Adriano Persons