centos7.4安装zabbix3.4.1
来源:互联网 发布:网络机房都有什么设备 编辑:程序博客网 时间:2024/05/22 14:47
:先检查网卡
ifconfig
2:网卡的配置文件
vi /etc/sysconfig/network-scripts/ifcfg-ens32
3:重启网卡
/etc/init.d/network restart
4:检查网络通没通
ping baidu.com
5:连接Xshell
6:查主机名字
hostname
7:修改主机名字
vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=zabbix
GATEWAY=172.19.16.2
vi /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
172.19.16.228 zabbix
改名成功
[root@localhost ~]# hostname zabbix
[root@localhost ~]# hostname
zabbix
一、系统环境cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core) 关闭防火墙及selinuxsystemctl stop firewalld.servicesystemctl disable firewalld.servicesed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/configgrep SELINUX=disabled /etc/selinux/configsetenforce 0二、数据库安装及配置1、MariaDB概述MariaDB数据库管理系统是MySQL的一个分支,主要由开源社区在维护,采用GPL授权许可。开发这个分支的原因是:甲骨文公司收购了MySQL后,有将MySQL闭源的潜在风险,因此社区采用分支的方式来避开这个风险。MariaDB的目的是完全兼容MySQL,包括API和命令行,使之能轻松成为MySQL的代替品。2、安装mariadbyum install mariadb-server mariadb -ymariadb数据库的相关命令是:systemctl start mariadb #启动MariaDBsystemctl stop mariadb #停止MariaDBsystemctl restart mariadb #重启MariaDBsystemctl enable mariadb #设置开机启动三、Zabbix3.4安装及配置1、Zabbix3.4新功能概述More newly developed and improved features of Zabbix 3.4 are now availabe for you!Have a closer look at What's New in Zabbix 3.4:
Have a closer look at What's New in Zabbix 3.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.rpmyum install zabbix-server-mysql zabbix-web-mysql -y3、创建数据库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 zabbix5、配置数据库用户及密码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=30006、启动zabbix server并设置开机启动systemctl enable zabbix-serversystemctl start zabbix-server7、编辑Zabbix前端PHP配置,更改时区vim /etc/httpd/conf.d/zabbix.confphp_value date.timezone Asia/Shanghai8、SELinux配置setsebool -P httpd_can_connect_zabbix onsetsebool -P httpd_can_network_connect_db on9、启动httpd并设置开机启动systemctl start httpdsystemctl enable httpd
四、安装Zabbix Web1、浏览器访问,并进行安装http://172.16.8.254/zabbix/
2、点击next会出现检查状态3、检查系统环境设置,必须全部都为ok,才能继续4、输入连接到数据库详细信息。Zabbix数据库必须已经创建好5、连接Zabbix服务细节,如果没有改变可选择默认6、完成安装,会将在/etc/zabbix/web/zabbix.conf.php生成配置文件Congratulations! You have successfully installed Zabbix frontend.Configuration file "/etc/zabbix/web/zabbix.conf.php" created.7、登录最新版Zabbix3.4 默认用户Admin 默认密码zabbix五、zabbxi-agent安装及配置1、安装zabbxi-agentyum install zabbix-agent -y2、配置zabbxi-agentgrep -n '^'[a-Z] /etc/zabbix/zabbix_agentd.conf 13: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=Zabbix server267:Include=/etc/zabbix/zabbix_agentd.d/*.conf3、启动zabbxi-agent并设置开机启动systemctl enable zabbix-agent.servicesystemctl restart zabbix-agent.service
阅读全文
0 0
- centos7.4安装zabbix3.4.1
- centos7安装zabbix3.4
- Centos7安装Zabbix3.4
- centos7.3安装zabbix3.4.1
- Centos7.3安装部署最新版Zabbix3.4
- CentOS7 下 Zabbix3.4 源码安装
- Centos7 ZABBIX3.0安装
- CentOS7安装zabbix3.2
- centos7 安装Zabbix3.0
- centos7 zabbix3.0安装
- Centos7.2 zabbix3.0安装
- Centos7.2 安装zabbix3.X
- centos7.3安装Zabbix3.2
- CentOS7 yum安装zabbix3.2.6
- Centos7.2安装zabbix3.0
- centos7 下安装zabbix3.0
- CentOS7+LNMP 安装Zabbix3.0 安装笔记
- 在Centos7下安装部署Zabbix3.2
- 20171029D-吃货的烦恼
- 一个简单的程序
- Count and Say--LeetCode
- 数据分析之前奏
- app启动时禁用返回键以防闪屏处理
- centos7.4安装zabbix3.4.1
- 策略模式
- 有一个字符数组的内容为:"student a am i",请你将数组的内容改为"i am a student". 要求: 不能使用库函数。只能开辟有限个空间(空间个数和字符串的长度无关)。
- myfirstgame背景音乐设置
- atom安装插件
- SSH spring Struts hibernate 整合 xml
- vue.js常见功能插件罗列
- Xfermode初探
- 安卓最简单的文件下载, 基于OkHttp,包含下载进度、断点续传