当前位置:网站首页>部署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版本可以少很多步骤
边栏推荐
- Redis的内存淘汰策略和过期删除策略的区别是什么
- Find the sum of two numbers
- 通配符 SSL/TLS 证书
- 明日盛会|ApacheCon Asia 2022 Pulsar 技术议题一览
- CMake教程——Leeds_Garden
- MySQL你到底都加了什么锁?
- Multi-Party Threshold Private Set Intersection with Sublinear Communication-2021:解读
- 重保特辑|拦截99%恶意流量,揭秘WAF攻防演练最佳实践
- Pytorch模型训练实用教程学习笔记:一、数据加载和transforms方法总结
- Tencent Cloud Hosting Security x Lightweight Application Server | Powerful Joint Hosting Security Pratt & Whitney Version Released
猜你喜欢
随机推荐
What are the application advantages of SaaS management system?How to efficiently improve the digital and intelligent development level of food manufacturing industry?
硬件大熊原创合集(2022/07更新)
有点奇怪!访问目的网址,主机能容器却不行
LeetCode 1374. Generate an odd number of each character string
How to query database configuration parameters in GBase 8c, such as datestyle.What function or syntax to use?
MLX90640 Infrared Thermal Imager Temperature Measurement Module Development Notes (Complete)
Prometheus's Recording rules practice
在表格数据上,为什么基于树的模型仍然优于深度学习?
483-82 (23, 239, 450, 113)
LeetCode 0151. Reverse a string of words
mysql解压版简洁式本地配置方式
CMake教程——Leeds_Garden
面试必问的HashCode技术内幕
安徽建筑大学&杭州电子科技大学|基于机器学习方法的建筑可再生能源优化控制
1个小时!从零制作一个! AI图片识别WEB应用!
modbus bus module DAM-8082
重保特辑|筑牢第一道防线,云防火墙攻防演练最佳实践
Website construction process
Map by value
Hardware Bear Original Collection (Updated 2022/07)








