当前位置:网站首页>部署zabbix
部署zabbix
2022-08-01 19:23:00 【nightingaleV】
准备环境
新建虚拟机,配置dns服务,安装必要软件包
nmcli connection modify ens33 autoconnect yes ipv4.dns 223.5.5.5
dnf install lrzsz wget vim net-tools tree psmisc bash-completion dos2unix -y
dnf install chrony
vim /etc/chrony.conf
vim /etc/chrony.conf
systemctl restart chronyd
systemctl enable chronyd
配置安装yum源
安装zabbix sever
安装zabbix agent
安装zabbix web
安装数据库
配置数据库
配置数据库内容
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';"
导入sql数据
zcat /usr/share/doc/zabbix-sql-scripts/mysql/create.sql.gz | mysql -uzabbix -pzabbix zabbix
mysql -uzabbix -pzabbix zabbix < double.sql
配置zabbix数据库
vim /etc/zabbix/zabbix_server.conf
去掉里面DBpassword的#号并加上密码
启动服务
systemctl enable --now httpd.service php-fpm.service zabbix-
server.service zabbix-agent2.service
去web登录直接的ip加/zabbix/


配置linux和Windows监控
dnf install -y zabbix-agent2
去需要监控的客户机安装
rpm -ivh
https://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/8/x86_64/zabbix-release-5.0-
1.el7.noarch.rpm
上面的行不通就照着上面部署的办法安装
yum install -y zabbix-agent2
修改/etc/zabbix/zabbix_agent2.conf里面的下列内容
改为目标主机的
Server=192.168.2.175
ServerActive=192.168.2.175
Hostname=linux-server1
起服务
systemctl enable zabbix-agent2.service --now
服务端测试
zabbix_get -s 192.168.2.175 -k system.uptime
到web界面创建主机
配置里面的主机里面在右上角开始创建
完成后取嵌套模板
点进主机里面然后在上面任务栏选择模板
完成后更新去查看
Windows就去官网装包
Download Zabbix agents
选择msi版本可以少很多步骤
边栏推荐
- [National Programming] "Software Programming - Lecture Video" [Zero Basic Introduction to Practical Application]
- Multi-Party Threshold Private Set Intersection with Sublinear Communication-2021: Interpretation
- ClassID的计算中,&表示啥意思
- How to install voice pack in Win11?Win11 Voice Pack Installation Tutorial
- 不要再使用MySQL online DDL了
- LeetCode 1374. Generate an odd number of each character string
- 重保特辑|拦截99%恶意流量,揭秘WAF攻防演练最佳实践
- Library website construction source code sharing
- A simple Flask PIN
- MySQL开发技巧——存储过程
猜你喜欢
随机推荐
重保特辑|拦截99%恶意流量,揭秘WAF攻防演练最佳实践
Goldfish Brother RHCA Memoirs: CL210 manages OPENSTACK network -- network configuration options
Pytorch模型训练实用教程学习笔记:一、数据加载和transforms方法总结
Heavy cover special | intercept 99% malicious traffic, reveal WAF offensive and defensive drills best practices
[Server data recovery] Data recovery case of offline multiple disks in mdisk group of server Raid5 array
ExcelPatternTool: Excel表格-数据库互导工具
【1374. 生成每种字符都是奇数个的字符串】
Tencent Cloud Hosting Security x Lightweight Application Server | Powerful Joint Hosting Security Pratt & Whitney Version Released
安全作业7.25
vtk体绘制代码报错的解决办法(代码在vtk7,8,9中都能运行),以及VTK数据集网站
从普通进阶成优秀的测试/开发程序员,一路过关斩将
Become a Contributor in 30 minutes | How to participate in OpenHarmony's open source contributions in multiple ways?
八百客、销售易、纷享销客各行其道
#yyds dry goods inventory# Interview must brush TOP101: the last k nodes in the linked list
首篇 NLP 领域图神经网络综述:127 页,从图构建到实际应用面面观
Prometheus's Recording rules practice
把 Oracle 数据库从 RAC 集群迁移到单机环境
不恰当Equatable协议==方法的实现对SwiftUI中@State修饰属性的影响
SaaS管理系统的应用优势在哪里?如何高效提升食品制造业数智化发展水平?
【Redis】缓存雪崩、缓存穿透、缓存预热、缓存更新、缓存击穿、缓存降级









