安裝zabbix監(jiān)控
倘若出錯了,就執(zhí)行這些步驟粱胜。柄驻。。
yum -y install mariadb mariadb-devel mariadb-server
systemctl start mariadb
systemctl enable mariadb
a. 安裝 數(shù)據(jù)庫
[root@m01 ~]# rpm -Uvh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
[root@m01 ~]# yum clean all
b. 安裝Zabbix server焙压,Web前端鸿脓,agent
yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent
c. 創(chuàng)建初始數(shù)據(jù)庫
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;
導(dǎo)入初始架構(gòu)和數(shù)據(jù),系統(tǒng)將提示您輸入新創(chuàng)建的密碼涯曲。
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
d. 為Zabbix server配置數(shù)據(jù)庫
編輯配置文件 /etc/zabbix/zabbix_server.conf
DBPassword=password
e. 為Zabbix前端配置PHP
編輯配置文件 /etc/httpd/conf.d/zabbix.conf, uncomment and set the right timezone for you.
php_value date.timezone Europe/Riga
f. 啟動Zabbix server和agent進程
啟動Zabbix server和agent進程野哭,并為它們設(shè)置開機自啟:
systemctl restart zabbix-server zabbix-agent httpd
systemctl enable zabbix-server zabbix-agent httpd
現(xiàn)在您的Zabbix server已經(jīng)安裝完成并開始運行
配置Zabbix前端
連接到新安裝的Zabbix前端: http://server_ip_or_name/zabbix
根據(jù)Zabbix文件里步驟操作: 安裝前端