本篇內(nèi)容介紹了“Centos怎么安裝部署新版Zabbix3.4”的有關(guān)知識,在實際案例的操作過程中,不少人都會遇到這樣的困境,接下來就讓小編帶領(lǐng)大家學(xué)習(xí)一下如何處理這些情況吧!希望大家仔細(xì)閱讀,能夠?qū)W有所成!
創(chuàng)新互聯(lián)長期為上1000+客戶提供的網(wǎng)站建設(shè)服務(wù),團隊從業(yè)經(jīng)驗10年,關(guān)注不同地域、不同群體,并針對不同對象提供差異化的產(chǎn)品和服務(wù);打造開放共贏平臺,與合作伙伴共同營造健康的互聯(lián)網(wǎng)生態(tài)環(huán)境。為佳木斯企業(yè)提供專業(yè)的網(wǎng)站設(shè)計、網(wǎng)站建設(shè),佳木斯網(wǎng)站改版等技術(shù)服務(wù)。擁有十余年豐富建站經(jīng)驗和眾多成功案例,為您定制開發(fā)。一、系統(tǒng)環(huán)境
cat /etc/redhat-release
centos linux release 7.3.1611 (core)
關(guān)閉防火墻及selinux
systemctl stop firewalld.service systemctl disable firewalld.service sed -i 's/selinux=enforcing/selinux=disabled/' /etc/selinux/config grep selinux=disabled /etc/selinux/config setenforce 0
二、數(shù)據(jù)庫安裝及配置
1、mariadb概述
mariadb數(shù)據(jù)庫管理系統(tǒng)是mysql的一個分支,主要由開源社區(qū)在維護,采用gpl授權(quán)許可。
開發(fā)這個分支的原因是:甲骨文公司收購了mysql后,有將mysql閉源的潛在風(fēng)險,因此社區(qū)采用分支的方式來避開這個風(fēng)險。
mariadb的目的是完全兼容mysql,包括api和命令行,使之能輕松成為mysql的代替品。
2、安裝mariadb
yum install mariadb-server mariadb -y
mariadb數(shù)據(jù)庫的相關(guān)命令是:
systemctl start mariadb #啟動mariadb systemctl stop mariadb #停止mariadb systemctl restart mariadb #重啟mariadb systemctl enable mariadb #設(shè)置開機啟動
三、zabbix3.4安裝及配置
1、zabbix3.4新功能概述
remote command support through proxies
parallel processing of alerts
being notified on problem acknowledgement
item value preprocessing
new preprocessing options
configurable jmx endpoints
jmx low-level discovery
pcre library for regular expressions
url-encoding support in web monitoring
automatic url-encoding
flexible url-encoding for variables
unicode support in domain names
support of macros and time suffixes in time periods
host macro support in event tags
frontend improvements
dropping ie9 and ie10 support
full cloning of screens and maps
unified style for radio buttons and checkboxes
applying same permissions to nested host groups
increased field sizes
miscellaneous
daemon improvements
ipmi polling
configuration parameters
more information on agent metric thread crashes
item changes/improvements
low-level discovery
return code check for scripts and commands
zabbixe中文文檔
2、zabbix3.4安裝
rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-1.el7.centos.noarch.rpm yum install zabbix-server-mysql zabbix-web-mysql -y
3、創(chuàng)建數(shù)據(jù)庫
create database zabbix character set utf8 collate utf8_bin; grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
4、導(dǎo)入數(shù)據(jù)
復(fù)制代碼 代碼如下:
zcat /usr/share/doc/zabbix-server-mysql-3.4.0/create.sql.gz | mysql -uzabbix -pzabbix zabbix
5、配置數(shù)據(jù)庫用戶及密碼
grep -n '^'[a-z] /etc/zabbix/zabbix_server.conf 38:logfile=/var/log/zabbix/zabbix_server.log 49:logfilesize=0 72:pidfile=/var/run/zabbix/zabbix_server.pid 99:dbname=zabbix 115:dbuser=zabbix 123:dbpassword=zabbix 314:snmptrapperfile=/var/log/snmptrap/snmptrap.log 432:timeout=4 474:alertscriptspath=/usr/lib/zabbix/alertscripts 484:externalscripts=/usr/lib/zabbix/externalscripts 520:logslowqueries=3000
6、啟動zabbix server并設(shè)置開機啟動
systemctl enable zabbix-server systemctl start zabbix-server
7、編輯zabbix前端php配置,更改時區(qū)
vim /etc/httpd/conf.d/zabbix.conf php_value date.timezone asia/shanghai
8、selinux配置
setsebool -p httpd_can_connect_zabbix on setsebool -p httpd_can_network_connect_db on
9、啟動httpd并設(shè)置開機啟動
systemctl start httpd systemctl enable httpd
四、安裝zabbix web
1、瀏覽器訪問,并進行安裝http://172.16.8.254/zabbix/
2、點擊next會出現(xiàn)檢查狀態(tài)
3、檢查系統(tǒng)環(huán)境設(shè)置,必須全部都為ok,才能繼續(xù)
4、輸入連接到數(shù)據(jù)庫詳細(xì)信息。zabbix數(shù)據(jù)庫必須已經(jīng)創(chuàng)建好
5、連接zabbix服務(wù)細(xì)節(jié),如果沒有改變可選擇默認(rèn)
7、完成安裝,會將在/etc/zabbix/web/zabbix.conf.php生成配置文件
congratulations! you have successfully installed zabbix frontend. configuration file "/etc/zabbix/web/zabbix.conf.php" created.
8、登錄新版zabbix3.4 默認(rèn)用戶admin 默認(rèn)密碼zabbix
五、zabbxi-agent安裝及配置
1、安裝zabbxi-agent
yum install zabbix-agent -y
2、配置zabbxi-agent
grep -n '^'[a-z] /etc/zabbix/zabbix_agentd.conf 13:pidfile=/var/run/zabbix/zabbix_agentd.pid 32:logfile=/var/log/zabbix/zabbix_agentd.log 43:logfilesize=0 97:server=172.16.8.254 138:serveractive=172.16.8.254 149:hostname=zabbix server 267:include=/etc/zabbix/zabbix_agentd.d/*.conf
3、啟動zabbxi-agent并設(shè)置開機啟動
systemctl enable zabbix-agent.service systemctl restart zabbix-agent.service
“Centos怎么安裝部署新版Zabbix3.4”的內(nèi)容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業(yè)相關(guān)的知識可以關(guān)注創(chuàng)新互聯(lián)網(wǎng)站,小編將為大家輸出更多高質(zhì)量的實用文章!
名稱欄目:Centos怎么安裝部署新版Zabbix3.4-創(chuàng)新互聯(lián)
分享地址:http://m.rwnh.cn/article8/cechop.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站改版、網(wǎng)站導(dǎo)航、營銷型網(wǎng)站建設(shè)、Google、軟件開發(fā)、ChatGPT
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容