当前位置:网站首页>zabbix部署和简单使用
zabbix部署和简单使用
2022-08-01 16:33:00 【闲语WoW】
1.配置源
阿里源
rpm -Uvh https://mirrors.aliyun.com/zabbix/zabbix/5.4/rhel/7/x86_64/zabbix-release-5.4-1.el7.noarch.rpm
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
2.安装相应软件
dnf install -y zabbix-server-mysql
dnf install -y zabbix-agent2
dnf install -y zabbix-web-mysql httpd zabbix-apache-conf
dnf install -y mariadb-server
dnf install zabbix-sql-scripts.noarch
3.配置数据库
systemctl enable --now mariadb
mysql -e "create database zabbix character set utf8 collate utf8_bin;"
mysql -e "create user 'zabbix'@'localhost' identified by 'zabbix';"
mysql -e "grant all privileges on zabbix.* to 'zabbix'@'localhost';"
zcat /usr/share/doc/zabbix-server-mysql/create.sql.gz | mysql -uzabbix -pzabbix zabbix
4.配置文件
/etc/zabbix/zabbix_server.conf
文件中将DBPassword=zabbix启用并设置密码

/etc/php-fpm.d/zabbix.conf
文件中修改时区

启动服务
systemctl enable --now httpd.service php-fpm.service zabbix-server.service zabbix-agent2.service
5.web配置
如图的网址

检查环境

填写数据库信息

填写名字

检查最后配置
完成

这里就可已经行登录了

用户/密码:Admin/zabbix

修改为中文

6.安装zabbix- agent监控linux
安装客户端
yum install https://repo.huaweicloud.com/zabbix/zabbix/5.0/rhel/8/x86_64/zabbix-agent2-5.0.4-1.el8.x86_64.rpm
修改ip为服务端,hostname改为本地主机名


创建主机

依次填写 ,群组选择linux servers ,然后点击模板
选择一个模板进行监控,然后点击添加即可


可以点击监测-主机-node1-图形,进行查看监控项

也可以去最新数据那边看
边栏推荐
- IronOS, an open source system for portable soldering irons, supports a variety of portable DC, QC, PD powered soldering irons, and supports all standard functions of smart soldering irons
- C#的路径帮助类
- Good guy, the company server just crashed!
- 金仓数据库KingbaseES安全指南--6.4. RADIUS身份验证
- 在码云拉取代码后,调整了seata版本1.5.2。出现如下异常。是因为数据库表缺少字段导致的吗?
- DevExpress的GridControl帮助类
- AntDB数据库亮相24届高速展,助力智慧高速创新应用
- ESP8266-Arduino编程实例-MLX90614红外测温传感器驱动
- 70后夫妻给苹果华为做“雨衣”,三年进账7.91亿
- Synchronized原理
猜你喜欢
随机推荐
【Unity,C#】哨兵射线触发器模板代码
ESP8266-Arduino编程实例-74HC595位移寄存驱动
显示为弹出窗口是什么意思(电脑总是弹出广告)
nodejs安装淘宝镜像(配置淘宝镜像)
5年测试,只会功能要求17K,功能测试都敢要求这么高薪资了?
canvas粒子雨动画js特效
MLX90640 红外热成像仪测温模块开发笔记(完整版)
90后的焦虑,被菜市场治好了
GridControl helper class for DevExpress
时序数据库在船舶风险管理领域的应用
京东软件测试面试题,仅30题就已经拯救了50%的人
Ant discloses the open source layout of core basic software technology for the first time
OneFlow源码解析:Op、Kernel与解释器
ODrive开发 #1 ODrive固件开发指南[通俗易懂]
The site is not found after the website is filed. You have not bound this domain name or IP to the corresponding site! The configuration file does not take effect!
AI艺术‘美丑’不可控?试试 AI 美学评分器~
月薪12K,蝶变向新勇往直前,我通过转行软件测试实现月薪翻倍...
Vulnhub target drone: HARRYPOTTER_ NAGINI
请问nacos 连接mysql失败后会重新连接吗?
SQL函数 TIMESTAMPDIFF








