1.rsync安装
zabbix-server01和zabbix-server02上执行:
[root@@localhost ~]# yum -y install rsync
2.rsync配置
zabbix-server01配置如下:
[root@@localhost ~]# cd /etc && ll|grep rsync
注意pwd文件的权限为600
rsyncd.conf内容
[root@localhost ~]# more /etc/rsyncd.conf
uid=root
gid=root
max connections=100
use chroot=true
log file=/var/log/rsyncd.log
motd file = /etc/rsyncd.motd
transfer logging = true
hosts allow=192.168.153.134(根据自己的ip修改)
[zabbix]
path=/etc/zabbix/
exclude = web
comment = etc zabbix
read only = no
list = yes
auth users = root
secrets file=/etc/rsyncd.pwd
[web1]
path=/etc/httpd/conf/
comment = httpd conf
read only = no
list = yes
auth