Ad Widget

Collapse

Zabbix Proxies on Multiple Hosts with a Single Shared Database?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xibbazxibbaz
    Junior Member
    • Jun 2018
    • 2

    #1

    Zabbix Proxies on Multiple Hosts with a Single Shared Database?

    The general idea being, configure zabbix agents to check two separate zabbix proxies. If one proxy goes down, the other proxy is available. The pgsql instance that zabbix_proxy uses is on a pacemaker cluster.

    Can I point both zabbix proxies at a single zabbix_proxy database? Or, do both zabbix proxies need their own databases so everything works right?
  • kloczek
    Senior Member
    • Jun 2006
    • 1771

    #2
    Originally posted by xibbazxibbaz
    The general idea being, configure zabbix agents to check two separate zabbix proxies. If one proxy goes down, the other proxy is available. The pgsql instance that zabbix_proxy uses is on a pacemaker cluster.

    Can I point both zabbix proxies at a single zabbix_proxy database? Or, do both zabbix proxies need their own databases so everything works right?
    I'll be not working because in zabbix monitored host is identified by own Ip or address + proxy name.
    Simple host cannot be monitored dynamically over proxy A or proxy B. You may try to change those settings dynamically over zabbix API using some external orchestration and it may be even working someow but way easier is to use such orchestration to shutdown one proxy in first physical location and start it in second one with reuse IP/address of first dead already proxy.

    You can point multiple proxies to the same db engine but they must use unique database name.
    If you are going to use always one proxy with the same address running in different physical location of course such proxies can use exactly the same db name and everything from perspective server and agents will be transparent.
    http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
    https://kloczek.wordpress.com/
    zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
    My zabbix templates https://github.com/kloczek/zabbix-templates

    Comment

    • xibbazxibbaz
      Junior Member
      • Jun 2018
      • 2

      #3
      Thank you!

      I did not mention that if one proxy went down, I'd change the proxy information on the affected hosts. It is not very many machines.

      Comment

      • kloczek
        Senior Member
        • Jun 2006
        • 1771

        #4
        Originally posted by xibbazxibbaz
        Thank you!

        I did not mention that if one proxy went down, I'd change the proxy information on the affected hosts. It is not very many machines.
        Generally this is not possible. In case of active prosy agent sends monitoring data and queries proxy for monitoring cfg exact proxy.
        In case passive proxy and active agent you will have contradicting data because one proxy will be signaling that agent does not send any data and may be down and second one will be be signaling that everything is OK.
        If you are trying to build kind of HA you trying to do this wrong way.
        Last edited by kloczek; 22-06-2018, 10:30.
        http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
        https://kloczek.wordpress.com/
        zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
        My zabbix templates https://github.com/kloczek/zabbix-templates

        Comment

        Working...