您好,登錄后才能下訂單哦!
這篇文章主要介紹Centos7.3如何安裝部署最新版Zabbix3.4,文中介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們一定要看完!
一、系統環境
cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
關閉防火墻及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
二、數據庫安裝及配置
1、MariaDB概述
MariaDB數據庫管理系統是MySQL的一個分支,主要由開源社區在維護,采用GPL授權許可。
開發這個分支的原因是:甲骨文公司收購了MySQL后,有將MySQL閉源的潛在風險,因此社區采用分支的方式來避開這個風險。
MariaDB的目的是完全兼容MySQL,包括API和命令行,使之能輕松成為MySQL的代替品。
2、安裝mariadb
yum install mariadb-server mariadb -y
mariadb數據庫的相關命令是:
systemctl start mariadb #啟動MariaDB systemctl stop mariadb #停止MariaDB systemctl restart mariadb #重啟MariaDB systemctl enable mariadb #設置開機啟動
三、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中文文檔 https://www.zabbix.com/documentation/3.4/zh/manual
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、創建數據庫
create database zabbix character set utf8 collate utf8_bin; grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
4、導入數據
復制代碼 代碼如下:
zcat /usr/share/doc/zabbix-server-mysql-3.4.0/create.sql.gz | mysql -uzabbix -pzabbix zabbix
5、配置數據庫用戶及密碼
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并設置開機啟動
systemctl enable zabbix-server systemctl start zabbix-server
7、編輯Zabbix前端PHP配置,更改時區
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并設置開機啟動
systemctl start httpd systemctl enable httpd
四、安裝Zabbix Web
1、瀏覽器訪問,并進行安裝http://172.16.8.254/zabbix/
2、點擊next會出現檢查狀態
3、檢查系統環境設置,必須全部都為ok,才能繼續
4、輸入連接到數據庫詳細信息。Zabbix數據庫必須已經創建好
5、連接Zabbix服務細節,如果沒有改變可選擇默認
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 默認用戶Admin 默認密碼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并設置開機啟動
systemctl enable zabbix-agent.service systemctl restart zabbix-agent.service
以上是“Centos7.3如何安裝部署最新版Zabbix3.4”這篇文章的所有內容,感謝各位的閱讀!希望分享的內容對大家有幫助,更多相關知識,歡迎關注億速云行業資訊頻道!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。