当前位置:网站首页>deploy zabbix
deploy zabbix
2022-08-01 19:33: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的#number and add the password
启动服务
systemctl enable --now httpd.service php-fpm.service zabbix-
server.service zabbix-agent2.service
去weblogin directip加/zabbix/
配置linux和Windows监控
dnf install -y zabbix-agent2
Go to the client installation that needs to be monitored
rpm -ivh
https://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/8/x86_64/zabbix-release-5.0-
1.el7.noarch.rpm
If the above does not work, install it according to the above deployment method
yum install -y zabbix-agent2
修改/etc/zabbix/zabbix_agent2.confThe following content inside
to the target host
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
到webinterface to create a host
Start the creation in the upper right corner of the host in the configuration
Take the nested template when done
Click into the host and select a template on the top task bar
Update to check after completion
WindowsGo to the official website to pack
Download Zabbix agents
选择msiVersions can be many fewer steps
边栏推荐
猜你喜欢
From ordinary advanced to excellent test/development programmer, all the way through
Website construction process
regular expression
分享一个适用于MCU项目的代码框架
升哲科技携全域数字化方案亮相2022全球数字经济大会
开源视界 | StreamNative 盛宇帆:和浪漫的人一起做最浪漫的事
安全作业7.25
[pyqt5] Custom controls to achieve scaling sub-controls that maintain the aspect ratio
Risc-v Process Attack
Pytorch模型训练实用教程学习笔记:一、数据加载和transforms方法总结
随机推荐
MySQL你到底都加了什么锁?
力扣刷题之求两数之和
使用常见问题解答软件的好处有哪些?
锐捷交换机基础配置
ClassID的计算中,&表示啥意思
MySQL开发技巧——并发控制
ExcelPatternTool: Excel form-database mutual import tool
不要再使用MySQL online DDL了
When installing the GBase 8c database, the error message "Resource: gbase8c already in use" is displayed. How to deal with this?
经验共享|在线文档协作:企业文档处理的最佳选择
如何写一个vim插件?
正则表达式
为你的“架构”安排定期体检吧!
Find the sum of two numbers
重保特辑|拦截99%恶意流量,揭秘WAF攻防演练最佳实践
modbus总线模块DAM-8082
Win11校园网无法连接怎么办?Win11连接不到校园网的解决方法
easyUI中datagrid中的formatter里面向后台发送请求获取数据
Win10, the middle mouse button cannot zoom in and out in proe/creo
常用命令备查