zabbix监控的配置以及如何使用api接口
zabbix产品手册.
IT运维Zabbix等常用监控软件对比.
zabbix简介及安装配置
zabbix介绍
zabbix功能
ZABBIX 概述
zabbix安装的要求.
zabbix安装配置
添加 Zabbix 软件仓库
[root@server1 yum.repos.d]# rpm -ivh http://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
[root@server1 yum.repos.d]# vim zabbix.repo
[zabbix]
name=Zabbix Official Repository - $basearch
baseurl=https://mirrors.aliyun.com/zabbix/zabbix/4.0/rhel/7/x86_64/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
[zabbix-non-supported]
name=Zabbix Official Repository non-supported - $basearch
baseurl=https://mirrors.aliyun.com/zabbix/non-supported/rhel/7/$basearch/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
gpgcheck=0
[root@server1 yum.repos.d]# yum repolist
安装 Server/proxy/前端
[root@server1 yum.repos.d]# yum install -y zabbix-server
[root@server1 yum.repos.d]# yum install -y mariadb-server
创建数据库
[root@server1 yum.repos.d]# systemctl enable --now mariadb.service
[root@server1 yum.repos.d]# mysql
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> create user 'zabbix'@'localhost' identified by 'westos';
mysql> grant all privileges on zabbix.* to 'zabbix'@'localhost';
当建立用户或数据库的时候出现错误,操作如下:清空:关闭数据库 rm -fr /var/lib/mysql里面的数据
导入数据
[root@server1 zabbix-server-mysql-4.0.27]# pwd
/usr/share/doc/zabbix-server-mysql-4.0.27
[root@server1 zabbix-server-mysql-4.0.27]# zcat create.sql.gz | wc -l
14476
将数据导入到zabbix库中
[root@server1 zabbix-server-mysql-4.0.27]# zcat create.sql.gz | mysql -uzabbix -pwestos zabbix
[root@server1 zabbix-server-mysql-4.0.27]# mysql
MariaDB [(none)]> use zabbix
MariaDB [zabbix]> show tables;
为 Zabbix server/proxy 配置数据库,启动 Zabbix server 进程
[root@server1 ~]# cd /etc/zabbix/
[root@server1 zabbix]# ls
zabbix_server.conf
[root@server1 zabbix]# vim zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser