zabbix agentd 跨网段连接 zabbix server注意项

2019-03-11 10:50:22 浏览数 (1)

标签:  zabbix_agent   zabbix_server

分类: 服务器

当跨网段时,zabbix_agentd.conf 中 Server的值要填写所有的远程zabbix_server主机的ip地址,甚至要把所在的网关写上去,以半角逗号“,”分开,如下面配置的红色字体部分。

ServerActive的值也是填写远程zabbix_server的ip地址,EnableRemoteCommands=1 。

### Option: Server

#       List of comma delimited IP addresses, optionally in CIDR notation, or hostnames of Zabbix servers.

#       Incoming connections will be accepted only from the hosts listed here.

#       If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' are treated equally and '::/0' will allow any IPv4 or IPv6 address.

#       '0.0.0.0/0' can be used to allow any IPv4 address.

#       Example: Server=127.0.0.1,192.168.1.0/24,::1,2001:db8::/32,zabbix.domain

#

# Mandatory: no

# Default:

# Server=

 Server=192.168.1.8,192.168.2.8,192.168.1.0/24,192.168.2.0/24

Server =192.168.30.171,192.168.1.2

### Option: ServerActive

#       List of comma delimited IP:port (or hostname:port) pairs of Zabbix servers for active checks.

#       If port is not specified, default port is used.

#       IPv6 addresses must be enclosed in square brackets if port for that host is specified.

#       If port is not specified, square brackets for IPv6 addresses are optional.

#       If this parameter is not specified, active checks are disabled.

#       Example: ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1]

#

# Mandatory: no

# Default:

# ServerActive=

ServerActive=192.168.1.8,192.168.2.8

ServerActive=192.168.30.171,192.168.1.2

EnableRemoteCommands=1

(adsbygoogle = window.adsbygoogle || []).push({});

0 人点赞