[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 部署配置的更多相关文章

  1. 编译安装zabbix 3.0及分开部署配置详解

    实验系统:CentOS 6.6_x86_64 实验前提:提前准备好编译环境,防火墙和selinux都关闭 实验说明:本实验共有4台主机,IP及角色分配如拓扑 下载地址:试验中用到mariadb软件的下 ...

  2. zabbix server3.4 使用mailx配置邮件报警

    软件具体配置如下: 操作系统:Centos7.5 zabbix server版本:zabbix server3.4 zabbix agent版本:zabbix agent3.0 现在开始配置zabbi ...

  3. zabbix agent安装与配置篇

     Zabbix监控windows部署安装 Zabbix agent 在windows上安装部署 (1)手工安装zabbix agent客户端 1.  下载与解压 地址: http://www.zabb ...

  4. Zabbix监控windows部署安装

    Zabbix agent 在windows上安装部署 1.  下载与解压 地址: http://www.zabbix.com/downloads/2.4.0/zabbix_agents_2.4.0.w ...

  5. Centos/Rhel7部署Zabbix监控(部署篇之服务器篇)

    Zabbix是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案. Zabbix能监视各种网络参数,保证服务器系统的安全运营:并提供灵活的通知机制以让系统管理员快速定位/解决 ...

  6. Zabbix3.0基础教程之一:系统监控,zabbix安装与基本配置

    一.安装环境: 系统环境: 系统版本:CentOS Linux release 7.4.1708 (Core) 内核版本:3.10.0-693.el7.x86_64 关闭Firewall与SELinu ...

  7. zabbix分布式监控部署--技术流ken

    前言 zabbix proxy可以代替zabbix server检索客户端的数据,然后把数据汇报给zabbix server,并且在一定程度上分担了zabbix server的压力.zabbix pr ...

  8. centos7下zabbix安装与部署

    1.Zabbix介绍 zabbix是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案. zabbix能监视各种网络参数,保证服务器系统的安全运营:并提供灵活的通知机制以让系 ...

  9. zabbix的安装部署及自定义监控的实现

    此篇感谢我的小师傅. 1. Zabbix主要功能和优劣势说明 1. Zabbix主要功能和优劣势说明 1.1 Zabbix主要功能: 1)Application monitoring 应用监控 数据库 ...

随机推荐

  1. Vue 学习笔记 — 无法避免的dom操作

    简书 使用Vue了一段时间,感觉确实不错,"数据驱动视图"非常好用,大部分情况下都不需要关心dom,但是凡事都有例外,总有一些时候我们必须要直接对dom进行操作,比如下面这个例子: ...

  2. [SQL]LeetCode178. 分数排名 | Rank Scores

    Write a SQL query to rank scores. If there is a tie between two scores, both should have the same ra ...

  3. [Swift]LeetCode207. 课程表 | Course Schedule

    There are a total of n courses you have to take, labeled from 0 to n-1. Some courses may have prereq ...

  4. [Swift]LeetCode504. 七进制数 | Base 7

    Given an integer, return its base 7 string representation. Example 1: Input: 100 Output: "202&q ...

  5. Vue.js 动画

    transition 动画: 当插入或删除包含在 transition 组件中的元素时,Vue将会做以下处理:     1.自动嗅探目标元素是否应用了css过滤或动画,如果是,在恰当的时机添加/删除c ...

  6. vue实例属性的方法

    1.$mount()   手动设置挂载点  eg:vm.$mount("#app") 2.$destroy()  销毁   eg:vm.$destroy(); 3.$forceUp ...

  7. Java破解图片防盗链

    前言 今天想下载几张好看的壁纸,然后发现了一张是自己比较喜欢的额.然后点进去看看,WOW!好多好看的壁纸呀,于是我就起了贪念.哈哈!想把他们这一组图片打包下载,小白的方法就是一张一张下载,那样对于我们 ...

  8. 死磕 java集合之TreeMap源码分析(二)- 内含红黑树分析全过程

    欢迎关注我的公众号"彤哥读源码",查看更多源码系列文章, 与彤哥一起畅游源码的海洋. 插入元素 插入元素,如果元素在树中存在,则替换value:如果元素不存在,则插入到对应的位置, ...

  9. solr之环境配置二

    安装配置Tomcat 下载Tomcat压缩包 我下载的是7.0.55版本. 1.Tomcat 7.0 的免安装版的配置(假如将Tomcat 解压到C:\Program Files目录,目录结构为:C: ...

  10. C++版 - Leetcode 400. Nth Digit解题报告

    leetcode 400. Nth Digit 在线提交网址: https://leetcode.com/problems/nth-digit/ Total Accepted: 4356 Total ...