I have a zabbix server that monitors both privately and publicly ip addressed servers.
e.g.
server 1: 10.10.10.10 (private network)
server 2: 8.8.8.8 (public network)
However, my zabbix server has multiple public and private ip addresses.
zabbix internal 1: 10.0.0.1 (domain mapping - "internal-zabbix"
zabbix internal 2: 10.0.0.2
zabbix public 1: 8.8.8.1 (domain mapping - "external-zabbix"
zabbix public 2: 8.8.8.2
In my agent configurations for my internal hosts, I've specified the following line:
Server=internal-zabbix,127.0.0.1
my agents that are accessed through the public network are config'ed like this:
Server=external-zabbix,127.0.0.1
Unfortunately, sometimes the connection from the agent appears from the clients other ip address which the agent then rejects.
I could specify all the ips on the server line, but I really want the agent to be configured with a domain so I don't have to reedit the configuration file of the agents on hundreds of machines if my server ip address ever changes.
Question: Is there a way I can force the server to use one particular private ip address when connecting to the internal addresses, and to use one particular public address when connecting to the public addresses?
I tried having a domain with multiple A records, but that didn't appear to work (it kept rejecting the connections from the second ips)
Thoughts?
e.g.
server 1: 10.10.10.10 (private network)
server 2: 8.8.8.8 (public network)
However, my zabbix server has multiple public and private ip addresses.
zabbix internal 1: 10.0.0.1 (domain mapping - "internal-zabbix"
zabbix internal 2: 10.0.0.2
zabbix public 1: 8.8.8.1 (domain mapping - "external-zabbix"
zabbix public 2: 8.8.8.2
In my agent configurations for my internal hosts, I've specified the following line:
Server=internal-zabbix,127.0.0.1
my agents that are accessed through the public network are config'ed like this:
Server=external-zabbix,127.0.0.1
Unfortunately, sometimes the connection from the agent appears from the clients other ip address which the agent then rejects.
I could specify all the ips on the server line, but I really want the agent to be configured with a domain so I don't have to reedit the configuration file of the agents on hundreds of machines if my server ip address ever changes.
Question: Is there a way I can force the server to use one particular private ip address when connecting to the internal addresses, and to use one particular public address when connecting to the public addresses?
I tried having a domain with multiple A records, but that didn't appear to work (it kept rejecting the connections from the second ips)
Thoughts?
Comment