zabbix是一個(gè)基于WEB界面的提供分布式系統(tǒng)監(jiān)視以及網(wǎng)絡(luò)監(jiān)視功能的企業(yè)級(jí)的開源解決方案。監(jiān)視各種網(wǎng)絡(luò)參數(shù),保證服務(wù)器系統(tǒng)的安全運(yùn)營;并提供柔軟的通知機(jī)制以讓系統(tǒng)管理員快速定位/解決存在的各種問題。
紅崗ssl適用于網(wǎng)站、小程序/APP、API接口等需要進(jìn)行數(shù)據(jù)傳輸應(yīng)用場景,ssl證書未來市場廣闊!成為創(chuàng)新互聯(lián)的ssl證書銷售渠道,可以享受市場價(jià)格4-6折優(yōu)惠!如果有意向歡迎電話聯(lián)系或者加微信:18982081108(備注:SSL證書合作)期待與您的合作!
zabbix?由2部分構(gòu)成,zabbix server?與可選組件zabbix agent。
安裝zabbix環(huán)境及準(zhǔn)備工作
linux 系統(tǒng)版本:CentOS 7?
zabbix版本: ?3.4?
MySQL數(shù)據(jù)庫:5.0.3以上
一、服務(wù)端安裝,首先下載yum源
1)zabbix3.4 ?yum源下載
rpm?-ivh?http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm
2)安裝Zabbix-server包和zabbix-agent包
?yum?-y?install?zabbix-server-mysql?zabbix-web-mysql??zabbix-agent
3)下載mysql yum源
rpm?-ivh?https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
4)查看當(dāng)前可用的Mysql安裝源
yum?repolist?enabled?|?grep?"mysql.*-community.*"
mysql-connectors-community/x86_64?MySQL?Connectors?Community??????????????????51mysql-tools-community/x86_64??????MySQL?Tools?Community???????????????????????63mysql57-community/x86_64??????????MySQL?5.7?Community?Server?????????????????267
5)安裝mysql數(shù)據(jù)庫
yum?-y?install?mysql-community-server
6)啟動(dòng)mysql設(shè)置開機(jī)啟動(dòng)
systemctl?start?mysqld?
systemctl?enable?mysqld
7)進(jìn)入mysql并修改密碼
cat?/var/log/mysqld.log?|?grep?password ?# 獲取mysql默認(rèn)密碼
#mysql?-u root?-pRir.*sJUX6M*
?ALTER?USER?USER()?IDENTIFIED?BY?'newpassword';
8)創(chuàng)建數(shù)據(jù)庫和zabbix用戶并授權(quán)
create?database?zabbix?character?set?utf8?collate?utf8_bin;
grant?all?privileges?on?zabbix.*?to?zabbix@localhost?identified?by?'newpassword';
9)導(dǎo)入初始架構(gòu)(Schema)和數(shù)據(jù)
cd?/usr/share/doc/zabbix-server-mysql-3.4.10/ ? # 默認(rèn)yum安裝數(shù)據(jù)結(jié)構(gòu)文件
zcat?create.sql.gz?|?mysql?-uzabbix?-pnewpassword -D?zabbix
10)完成以上步驟,我們就可以修改配置文件,給服務(wù)授權(quán)、啟動(dòng)Zabbix Server服務(wù)
記得先備份 cp?/etc/zabbix/zabbix_server.conf ?/etc/zabbix/zabbix_server.conf.bak?
vim /etc/zabbix/zabbix_server.conf
LogFile=/var/log/zabbix/zabbix_server.logLogFileSize=0PidFile=/var/run/zabbix/zabbix_server.pidSocketDir=/var/run/zabbixDBHost=localhostDBName=zabbixDBUser=zabbixDBPassword=newpasswordSNMPTrapperFile=/var/log/snmptrap/snmptrap.logTimeout=4AlertScriptsPath=/usr/lib/zabbix/alertscriptsExternalScripts=/usr/lib/zabbix/externalscriptsLogSlowQueries=3000
?11)啟動(dòng)zabbix_server 服務(wù)并設(shè)置開機(jī)啟動(dòng)
systemctl?start??zabbix-server
systemctl?enable?zabbix-server
二、編輯Zabbix前端的PHP配置
1)zabbix前端的Apache配置文件位于 /etc/httpd/conf.d/zabbix.conf 。
vim?/etc/httpd/conf.d/zabbix.conf
php_value date.timezone Asia/Shanghai ? ?# 一般情況下大部分配置已經(jīng)完成配置 只需要修改這個(gè)時(shí)區(qū)
2)重啟apache 并設(shè)置開機(jī)啟動(dòng)
systemctl?start?httpd
systemctl?enable??httpd
三、登陸zabbix前段頁面進(jìn)行最后的配置
打開瀏覽器訪問:http://ip地址+端口/zabbix
這里有可能會(huì)報(bào)錯(cuò):chmod? -R 777? /etc/zabbix/web/

不出意外的情況下我們是可以看到zabbix的界面了:

環(huán)境監(jiān)測

初始化數(shù)據(jù)庫

詳細(xì)信息填寫

全部配置的概要

安裝

登陸 ??默認(rèn)用戶:Admin 密碼:zabbix ?登陸后進(jìn)行配置~

登陸后的初始界面

參考:
https://www.cnblogs.com/Dev0ps/p/8378470.html??
網(wǎng)站題目:zabbix3.4的安裝步驟
標(biāo)題路徑:http://www.chinadenli.net/article46/peseeg.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站制作、靜態(tài)網(wǎng)站、企業(yè)建站、網(wǎng)站改版、網(wǎng)頁設(shè)計(jì)公司、品牌網(wǎng)站建設(shè)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)