Ad Widget

Collapse

could i set VIP as zabbix server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • daixiang
    Junior Member
    • Jul 2018
    • 9

    #1

    could i set VIP as zabbix server

    I want to use keepalived virtual IP as zabbix server, and db in nfs, so that zabbix can be in HA mode.

    I change Server setting in agent.conf, but not work, log said:

    PHP Code:
    failed to accept an incoming connectionconnection from "192.168.60.45" rejectedallowed hosts"192.168.60.100" 
    192.168.60.100 is VIP, 192.168.60.45 is real ip.

    Could i set VIP as zabbix server?

    If so, how i set?
  • Colttt
    Senior Member
    Zabbix Certified Specialist
    • Mar 2009
    • 878

    #2
    Hi,

    you must set SourceIP in the zabbix_server.conf.

    Also read this here: https://www.zabbix.com/documentation.../zabbix_server
    Debian-User

    Sorry for my bad english

    Comment


    • daixiang
      daixiang commented
      Editing a comment
      Do you mean SourceIP and Server both setting as VIP? or set SourceIP is real ip?

      I test both, but still same failure.
  • Colttt
    Senior Member
    Zabbix Certified Specialist
    • Mar 2009
    • 878

    #3
    Hi you must set the SourceIP to you VIP like
    SourceIP = 192.168.60.100
    after that you need to restart the zabbix-server service
    Debian-User

    Sorry for my bad english

    Comment

    • daixiang
      Junior Member
      • Jul 2018
      • 9

      #4
      Originally posted by Colttt
      Hi you must set the SourceIP to you VIP like
      SourceIP = 192.168.60.100
      after that you need to restart the zabbix-server service
      In server.conf:

      HTML Code:
      SourceIP=192.168.60.100
      In agent.conf:

      HTML Code:
      Server=192.168.60.100
      And restart agent and server, but still failed:

      HTML Code:
      1406623:20180809:100219.450 failed to accept an incoming connection: connection from "192.168.60.45" rejected, allowed hosts: "192.168.60.100"
      I also find SouceIP in agent.conf, then i add and test, same error log.

      Comment

      • daixiang
        Junior Member
        • Jul 2018
        • 9

        #5
        BTW, I use zabbix 3.0.14

        Comment

        • Colttt
          Senior Member
          Zabbix Certified Specialist
          • Mar 2009
          • 878

          #6
          Hmm good question, I would create a bugreport for this
          Debian-User

          Sorry for my bad english

          Comment

          Working...