本文主要是介绍zabbix6.4监控centos,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1、关闭防火墙
setenforce 0 #关闭SELinux
sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config #设置永久关闭SELinux
systemctl stop firewalld.service #关闭防火墙
systemctl disable firewalld.service #设置永久关闭防火墙
2、安装agent
rpm -Uvh https://repo.zabbix.com/zabbix/6.4/rhel/8/x86_64/zabbix-release-6.4-1.el8.noarch.rpm #获取zabbix的源
dnf install -y zabbix-agent
3、修改agent参数
vi /etc/zabbix/zabbix_agentd.conf
Server=192.168.34.107 #zabbix-server的ip
ServerActive=192.168.34.107 #zabbix-server的ip
Hostname=192.168.34.109 #本机ip
4、启动agent
systemctl start zabbix-agent
sy
这篇关于zabbix6.4监控centos的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!