zabbix agentd 跨網段鏈接 zabbix server注意項

zabbix agentd 跨網段鏈接 zabbix server注意項

 (2018-03-01 18:29:21)html

轉載服務器

標籤: 

zabbix_agent

 

zabbix_server

分類: 服務器

當跨網段時,zabbix_agentd.conf 中 Server的值要填寫全部的遠程zabbix_server主機的ip地址,甚至要把所在的網關寫上去,以半角逗號「,」分開,以下面配置的紅色字體部分。dom

 

ServerActive的值也是填寫遠程zabbix_server的ip地址,EnableRemoteCommands=1 。字體

 

### Option: Serverthis

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

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

#       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.htm

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

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

#

# 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

相關文章
相關標籤/搜索