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          #设置永久关闭防火墙
zabbix6.4监控centos_第1张图片

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

zabbix6.4监控centos_第2张图片

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

sys

你可能感兴趣的:(Centos8.5,Debian12,Rocky9.2,麒麟,系统安全漏洞及K8S高可用集群,centos,linux,运维)