zabbix使用

     zabbix是一个基于WEB界面的具有采集数据、数据存储、告警系统和展示系统与一身的开源解决方案。下面来学习一下基础的使用方法吧,相信对于初学者很有用。

     首先准备两台虚拟机,一台用做与WEB联系的服务端,一台用做被服务端监控的主机。我这里准备了两台主机,分别命名为server.magedu.com、node1.magedu.com.

server.magedu.com    172.17.160.80

node1.magedu.com    172.17.252.242

步骤:

一、首先对server端进行操作:

1、安装yum源,因为我们要安装zabbix相关软件,所以需要对应的yum源,当然你也可以不安装,但是需要去官网一个一个下载对应的源码包,非常麻烦,这里安装yum源就是解决这个问题了。先去官网把Yum源下载下来。官网地址为:www.zabbix.com,然后根据对应的电脑系统去下载即可。


2、安装yum源

[root@server ~]# rpm -ivh zabbix-release-3.4-1.el7.centos.noarch.rpm 

[root@server ~]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
repo id                                      repo name                                                         status
!base                                        centos                                                               9,363
!epel                                         epel                                                                  11,349
!zabbix/x86_64                         Zabbix Official Repository - x86_64                          80
!zabbix-non-supported/x86_64 Zabbix Official Repository non-supported - x86_64     4
repolist: 20,796

若出现以上,证明已经安装成功。

3、下面安装数据库,并对数据库配置文件进行修改,安装数据库是要对server服务器的数据进行保存。

[root@server ~]# yum install mariadb-server

[root@server ~]# vim /etc/my.cnf.d/server.cnf 

# this is read by the standalone daemon and embedded servers
[server]
skip_name_resolve=ON
innodb_file_per_table=ON
innodb_buffer_pool_size=256M
max_connections=2000
log-bin=master-log

4、启动数据库,并创建一个保存数据的数据库名。

[root@server ~]# systemctl start mariadb

[root@server ~]# mysql

MariaDB [(none)]> create database zabbix;

MariaDB [(none)]> grant all on zabbix.* to 'zbxuser'@'172.17.%.%' identified by 'zbxpass'; 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值