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

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

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

sg_trans.gif转载

标签: 

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

转载于:https://my.oschina.net/u/3367404/blog/2250681

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值