前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >zabbix agentd 跨网段连接 zabbix server注意项

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

作者头像
拓荒者
发布2019-03-11 10:50:22
1.4K0
发布2019-03-11 10:50:22
举报
文章被收录于专栏:运维经验分享运维经验分享

标签:  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({});

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2018/10/22 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档