Zabbix 是一个基于 WEB 界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案。
访问https://www.zabbix.com/download有官方文档php
搭建lamp步骤,选择系统版本及zabbix版本mysql
Install and configure Zabbix server for your platform
a. Install Zabbix repository
# rpm -Uvh https://repo.zabbix.com/zabbix/4.4/rhel/8/x86_64/zabbix-release-4.4-1.el8.noarch.rpm
# dnf clean allweb
b. Install Zabbix server, frontend, agent
# dnf -y install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-agentsql
注apache
因为mysql收费,故frontend
yum -y install mariadbide
yum -y install mariadb-server
启动
systemctl start mariadb
查看状态
systemctl status mariadb
c. Create initial database
# mysql -uroot
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;
php-fpm
Import initial schema and data. You will be prompted to enter your newly created password.flex
# zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbixui
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] = Asia/Shanghai
f. Start Zabbix server and agent processes
g. Configure Zabbix frontend
# systemctl restart zabbix-server zabbix-agent httpd php-fpm
# systemctl enable zabbix-server zabbix-agent httpd php-fpm
systemctl stop firewalld
setenforce 0
g. Configure Zabbix frontend
访问 http://192.168.1.111/zabbix
来源:https://www.shangmayuan.com/a/d5c7a909d9134306a14c18ce.html
网友评论