I would like to ask if it's possible to actively connect a Zabbix agent with private IP (or dynamic IP) to a Zabbix proxy which are outside the firewall. I checked out the website, and it seemed to be only containing information that shows the proxy inside the same firewall.
Ad Widget
Collapse
How to connect a Zabbix agent with private IP only?
Collapse
X
-
Tags: None
-
This is a case of only active checks - the agent connects to proxy via firewall (with NAT), obtains a list of active checks and starts sending data.
In zabbix_agentd.conf configure 'ServerActive=' parameter with proxy's IP or DNS name and port.
Optionally agent listener processes can be disabled by setting 'StartAgents=0' - you have no use for them as proxy will not be able to connect to agent (unless you want to use 'zabbix_get' for troubleshooting).
In frontend you will need to create an agent interface for this host (the interface is required, but will be not used in this situation, can put a dummy 127.0.0.1 there).
And - all host items to be collected from agent should be of type "Zabbix agent (active)".
Then you can test it with 'DebugLevel=4' in zabbix_agentd.conf. -
Comment
-
You can write anything there and the change these parameters in zabbix_agentd.conf fileHow will i enter the Zabbix server IP/DNS while installation of Zabbix agent on windows machine. Because we are not using any Zabbix server at this time. So please help us that what should we enter here?
Code:### Option: Hostname # List of comma delimited unique, case sensitive hostnames. # Required for active checks and must match hostnames as configured on the server. # Value is acquired from HostnameItem if undefined. # # Mandatory: no # Default: # Hostname= #Hostname=ZBX-5CD1479M2G Hostname=YOURHOSTNAME ### Option: Server # List of comma delimited IP addresses, optionally in CIDR notation, or DNS names of Zabbix servers and Zabbix proxies. # 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: yes, if StartAgents is not explicitly set to 0 # Default: Server= YOURSERVER ##### Active checks related ### Option: ServerActive # List of comma delimited IP addresses or DNS names (address:port) pairs or clusters (address:port;address2:port) of Zabbix servers and Zabbix proxies for active checks. # If port is not specified, default port is used. # Cluster nodes need be separated by semicolon. # 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 for multiple servers: # ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1] # Example for HA: # ServerActive=zabbix.cluster.node1;zabbix.cluster.n ode2:20051;zabbix.cluster.node3 # Example for HA with two clusters and one server: # ServerActive=zabbix.cluster.node1;zabbix.cluster.n ode2:20051,zabbix.cluster2.node1;zabbix.cluster2.n ode2,zabbix.domain # # Mandatory: no # Default: ServerActive=YOURSERVER
Comment
Comment