Ad Widget

Collapse

multiple SourceIP values allowed?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pdwalker
    Senior Member
    • Dec 2005
    • 166

    #1

    multiple SourceIP values allowed?

    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?
  • pbergdolt
    Junior Member
    • May 2009
    • 10

    #2
    hello, i had the same problem: zabbix server monitoring servers on two differents lan.
    I solved it by using ipfilter to nat outgoing source ip addess for zabbix connexion on second lan.
    Hope it helps.
    Regards

    Comment

    • Hrobocop
      Junior Member
      • Oct 2012
      • 22

      #3
      Our solution was setting server parametr this way:
      SourceIP=0.0.0.0

      Comment

      Working...