监控工具之zabbix server3.4 部署配置
[root@localhost src]# cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
[root@localhost src]# pwd
/usr/local/src
配置zabbix的yum源
[root@localhost src]# rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm
安装zabbix程序包,安装mysql、zabbxi-agent
[root@localhost src]# yum install -y zabbix-server-mysql zabbix-web-mysql zabbix-agent mariadb-server
这个时候有可能会报报错:“zabbix-web-3.4.15-1.el7.noarch: [Errno 256] No more mirrors to try”
解决办法:更换yum源,具体步骤如下:
[root@localhost src]# wget http://mirrors.163.com/.help/CentOS7-Base-163.repo -P /etc/yum.repos.d/
[root@localhost src]# yum clean all
[root@localhost src]# yum makecache
启动mariadb并设置开机启动,创建数据库实例,授权
[root@localhost src]# systemctl start mariadb
[root@localhost src]# systemctl enable mariadb
登陆mysql
[root@localhost src]# mysql
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 5.5.60-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin; #创建数据库实例
MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@'%' identified by 'zabbix'; #授权所有主机访问数据库实例zabbix,用户名/密码:zabbix/Zabbix
MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix'; #授权localhost主机名访问数据库实例zabbix,用户名/密码:zabbix/Zabbix
MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@localhost.localdomain identified by 'zabbix'; #授权localhost.localdomain主机访问数据库实例zabbix,用户名/密码:zabbix/Zabbix
导入初始模式和数据
进入create.sql.gz所在目录:
[root@localhost src]# cd /usr/share/doc/zabbix-server-mysql-3.4.15/
导入初始模式:
[root@localhost zabbix-server-mysql-3.4.15]# zcat create.sql.gz |mysql -uroot zabbix
启动zabbix-server服务
配置zabbix-server的配置文件zabbix_server.conf:
[root@localhost zabbix-server-mysql-3.4.15]# grep -n "^DB" /etc/zabbix/zabbix_server.conf
91:DBHost=localhost
98:DBName=zabbix
113:DBUser=zabbix
122:DBPassword=zabbix
启动zabbix-server服务:
[root@localhost zabbix-server-mysql-3.4.15]# systemctl start zabbix-server
[root@localhost zabbix-server-mysql-3.4.15]# systemctl enable zabbix-server
编辑Apache的配置文件,消注释设置正确的时区
[root@localhost zabbix-server-mysql-3.4.15]# grep -n "date.timezone" /etc/httpd/conf.d/zabbix.conf
20: php_value date.timezone Asia/Shanghai
启动httpd服务 ,设置开机启动httpd服务
[root@localhost zabbix-server-mysql-3.4.15]# systemctl start httpd
[root@localhost zabbix-server-mysql-3.4.15]# systemctl enable httpd
启动zabbix-agent并设置开机自启动
[root@localhost zabbix-server-mysql-3.4.15]# systemctl start zabbix-agent
[root@localhost zabbix-server-mysql-3.4.15]# systemctl enable zabbix-agent
Zabbix Web网页安装
在浏览器输入地址http://服务器ip/zabbix/setup.php,出现欢迎界面,点击下一步
出现必要条件检测界面,正常都是OK,点击下一步
配置DB连接,与zabbix_server.conf文件中主机、数据库名称、用户名、密码保持一致,点击下一步
zabbix服务器详细信息,点击下一步
安装前汇总,检查信息无误,点击下一步安装
安装成功会出现提示成功的界面。
然后点击“Finish“按钮。结束安装。
zabbix网页登录
在浏览器输入http://zabbix服务器ip/zabbix/index.php,输入管理员用户名Admin(区分大小写),默认密码zabbix,点击登入即可。
接下来就是开启各种监控配置研究了!!!
监控工具之zabbix server3.4 部署配置的更多相关文章
- 编译安装zabbix 3.0及分开部署配置详解
实验系统:CentOS 6.6_x86_64 实验前提:提前准备好编译环境,防火墙和selinux都关闭 实验说明:本实验共有4台主机,IP及角色分配如拓扑 下载地址:试验中用到mariadb软件的下 ...
- zabbix server3.4 使用mailx配置邮件报警
软件具体配置如下: 操作系统:Centos7.5 zabbix server版本:zabbix server3.4 zabbix agent版本:zabbix agent3.0 现在开始配置zabbi ...
- zabbix agent安装与配置篇
Zabbix监控windows部署安装 Zabbix agent 在windows上安装部署 (1)手工安装zabbix agent客户端 1. 下载与解压 地址: http://www.zabb ...
- Zabbix监控windows部署安装
Zabbix agent 在windows上安装部署 1. 下载与解压 地址: http://www.zabbix.com/downloads/2.4.0/zabbix_agents_2.4.0.w ...
- Centos/Rhel7部署Zabbix监控(部署篇之服务器篇)
Zabbix是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案. Zabbix能监视各种网络参数,保证服务器系统的安全运营:并提供灵活的通知机制以让系统管理员快速定位/解决 ...
- Zabbix3.0基础教程之一:系统监控,zabbix安装与基本配置
一.安装环境: 系统环境: 系统版本:CentOS Linux release 7.4.1708 (Core) 内核版本:3.10.0-693.el7.x86_64 关闭Firewall与SELinu ...
- zabbix分布式监控部署--技术流ken
前言 zabbix proxy可以代替zabbix server检索客户端的数据,然后把数据汇报给zabbix server,并且在一定程度上分担了zabbix server的压力.zabbix pr ...
- centos7下zabbix安装与部署
1.Zabbix介绍 zabbix是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案. zabbix能监视各种网络参数,保证服务器系统的安全运营:并提供灵活的通知机制以让系 ...
- zabbix的安装部署及自定义监控的实现
此篇感谢我的小师傅. 1. Zabbix主要功能和优劣势说明 1. Zabbix主要功能和优劣势说明 1.1 Zabbix主要功能: 1)Application monitoring 应用监控 数据库 ...
随机推荐
- ansible基础-加密
一 简介 注:本文demo使用ansible2.7稳定版 众所周知,ansible是很火的一个自动化部署工具,在ansible控制节点内,存放着当前环境服务的所有服务的配置信息,其中自然也包括一些敏感 ...
- [Swift]LeetCode239. 滑动窗口最大值 | Sliding Window Maximum
Given an array nums, there is a sliding window of size k which is moving from the very left of the a ...
- [Swift]LeetCode252.会议室 $ Meeting Rooms
Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],...] (si ...
- [Swift]LeetCode381. O(1) 时间插入、删除和获取随机元素 - 允许重复 | Insert Delete GetRandom O(1) - Duplicates allowed
Design a data structure that supports all following operations in averageO(1) time. Note: Duplicate ...
- [Swift]LeetCode856. 括号的分数 | Score of Parentheses
Given a balanced parentheses string S, compute the score of the string based on the following rule: ...
- 专访 | 新浪架构师:0-5年Java工程师的职业规划如何做?
经历了2018年末的阵痛,大家都积攒着一股暗劲蠢蠢欲动. 3月初即将迎来2019年互联网行业换工作的大潮,技术工程师的升级换位对于一家互联网公司来说无疑是命脉般的存在——技术强则公司强! 如何做一个抢 ...
- djang-异步——定时操作
django本身是一个同步框架,flask也是,所以要把它变成异步操作的话还得专门设置一下 我的这个系统呢是windows系统,python3.7的 所以有的库是不可以兼容的 ,然后到时候会稍微修改一 ...
- Tomcat相关面试题,看这篇就够了!保证能让面试官颤抖!
Tomcat相关的面试题出场的几率并不高,正式因为如此,很多人忽略了对Tomcat相关技能的掌握. 这次整理了Tomcat相关的系统架构,介绍了Server.Service.Connector.Con ...
- 分享几个 SpringBoot 实用的小技巧
前言 最近分享的一些源码.框架设计的东西.我发现大家热情不是特别高,想想大多数应该还是正儿八经写代码的居多:这次就分享一点接地气的: SpringBoot 使用中的一些小技巧. 算不上多高大上的东西, ...
- 【从零开始自制CPU之学习篇05】总线
总线定义:总线(Bus)是计算机各种功能部件之间传送信息的公共通信干线,它是由导线组成的传输线束, 按照计算机所传输的信息种类,计算机的总线可以划分为数据总线.地址总线和控制总线,分别用来传输数据.数 ...