在CentOS 7.5 搭建最新版zabbix 4.4 監控系統-date201911-13

安裝zabbix前的準備

先了解zabbix架構
在CentOS 7.5 搭建最新版zabbix 4.4 監控系統-date201911-13

先安裝mariaDB , http 即搭建LAMP架構和其它的依賴包 執行以下安裝命令

在CentOS 7.5 搭建最新版zabbix 4.4 監控系統-date201911-13

成功後

下面開始安裝zabbix

在CentOS 7.5 搭建最新版zabbix 4.4 監控系統-date201911-13

這是官網安裝教程,可以作爲參考
https://www.zabbix.com/download?zabbix=4.0&os_distribution=centos&os_version=8&db=mysql

在CentOS 7.5 搭建最新版zabbix 4.4 監控系統-date201911-13

Choose your platform

Install and configure Zabbix server for your platform
a. Install Zabbix repository
documentation
#rpm -Uvh https://repo.zabbix.com/zabbix/4.0/rhel/8/x86_64/zabbix-release-4.0-2.el8.noarch.rpm
#dnf clean all
b. Install Zabbix server, frontend, agent
#dnf -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent
c. Create initial database
documentation
#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

DBPassword=password
e. Configure PHP for Zabbix frontend
Edit file /etc/php-fpm.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 php-fpm
#systemctl enable zabbix-server zabbix-agent httpd php-fpm
Now your Zabbix server is up and running!

Configure Zabbix frontend
Connect to your newly installed Zabbix frontend: http://server_ip_or_name/zabbix
Follow steps described in Zabbix documentation: Installing frontend

Start using Zabbix
Read in documentation: Quickstart guide

默認用戶名Admin

默認密碼zabbix

Watch video guide:
Zabbix Server Installation
Zabbix server installation explained

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章