Centos怎么安装部署最新版Zabbix3.4
导读:本文共3587.5字符,通常情况下阅读需要12分钟。同时您也可以点击右侧朗读,来听本文内容。按键盘←(左) →(右) 方向键可以翻页。
摘要: 一、系统环境cat /etc/redhat-releasecentos linux release 7.3.1611 (core)关闭防火墙及selinuxsystemctlstopfirewalld.servicesystemctldisablefirewalld.servicesed-i's/selinux=enforcing/selinux=d... ...
目录
(为您整理了一些要点),点击可以直达。一、系统环境
cat /etc/redhat-release
centos linux release 7.3.1611 (core)
关闭防火墙及selinux
systemctlstopfirewalld.servicesystemctldisablefirewalld.servicesed-i's/selinux=enforcing/selinux=disabled/'/etc/selinux/configgrepselinux=disabled/etc/selinux/configsetenforce0
二、数据库安装及配置
1、mariadb概述
mariadb数据库管理系统是mysql的一个分支,主要由开源社区在维护,采用gpl授权许可。
开发这个分支的原因是:甲骨文公司收购了mysql后,有将mysql闭源的潜在风险,因此社区采用分支的方式来避开这个风险。
mariadb的目的是完全兼容mysql,包括api和命令行,使之能轻松成为mysql的代替品。
2、安装mariadb
yuminstallmariadb-servermariadb-y
mariadb数据库的相关命令是:
systemctlstartmariadb#启动mariadbsystemctlstopmariadb#停止mariadbsystemctlrestartmariadb#重启mariadbsystemctlenablemariadb#设置开机启动
三、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-ivhhttp://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-1.el7.centos.noarch.rpmyuminstallzabbix-server-mysqlzabbix-web-mysql-y
3、创建数据库
createdatabasezabbixcharactersetutf8collateutf8_bin;grantallprivilegesonzabbix.*tozabbix@localhostidentifiedby'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.conf38:logfile=/var/log/zabbix/zabbix_server.log49:logfilesize=072:pidfile=/var/run/zabbix/zabbix_server.pid99:dbname=zabbix115:dbuser=zabbix123:dbpassword=zabbix314:snmptrapperfile=/var/log/snmptrap/snmptrap.log432:timeout=4474:alertscriptspath=/usr/lib/zabbix/alertscripts484:externalscripts=/usr/lib/zabbix/externalscripts520:logslowqueries=3000
6、启动zabbix server并设置开机启动
systemctlenablezabbix-serversystemctlstartzabbix-server
7、编辑zabbix前端php配置,更改时区
vim/etc/httpd/conf.d/zabbix.confphp_valuedate.timezoneasia/shanghai
8、selinux配置
setsebool-phttpd_can_connect_zabbixonsetsebool-phttpd_can_network_connect_dbon
9、启动httpd并设置开机启动
systemctlstarthttpdsystemctlenablehttpd
四、安装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!youhavesuccessfullyinstalledzabbixfrontend.configurationfile"/etc/zabbix/web/zabbix.conf.php"created.
8、登录最新版zabbix3.4 默认用户admin 默认密码zabbix
五、zabbxi-agent安装及配置
1、安装zabbxi-agent
yuminstallzabbix-agent-y
2、配置zabbxi-agent
grep-n'^'[a-z]/etc/zabbix/zabbix_agentd.conf13:pidfile=/var/run/zabbix/zabbix_agentd.pid32:logfile=/var/log/zabbix/zabbix_agentd.log43:logfilesize=097:server=172.16.8.254138:serveractive=172.16.8.254149:hostname=zabbixserver267:include=/etc/zabbix/zabbix_agentd.d/*.conf
3、启动zabbxi-agent并设置开机启动
systemctlenablezabbix-agent.servicesystemctlrestartzabbix-agent.service
</div> <div class="zixun-tj-product adv-bottom"></div> </div> </div> <div class="prve-next-news">
Centos怎么安装部署最新版Zabbix3.4的详细内容,希望对您有所帮助,信息来源于网络。