Ad Widget

Collapse

Zabbix server Cluster

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bdo
    Junior Member
    • Oct 2005
    • 15

    #1

    Zabbix server Cluster

    Hi,

    I would like to kwown what is the best way to physically secure Zabbix server ?


    The goal is to have 2 Zabbix Servers , physically installed in 2 differents Sites. In case of crash or disaster, I want to have a second server ready to start.

    I think the first step is to secure Zabbix Database by setting online replication.

    Can we do it with Mysql ? What about performance ?

    Feed back would be appreciated !!!

    Thanks

    Bertrand
  • James Wells
    Senior Member
    • Jun 2005
    • 664

    #2
    Greetings,

    Yes, MySQL database supports replication, however, please note that if you are replicating all data, the performance hit will be significant as MySQL does double writes when you enable replication.

    My suggestion would be to enable replication, but make sure you are not replicating history or trends tables.

    Additionally, you could use the patch that I created to support multiple Zabbix servers using a single database. What you would do is create the replication and the second server, as you planned, however, you would have the capability then to switch between the two Zabbix servers simultaneously and even a hot / cold swap system.
    Unofficial Zabbix Developer

    Comment

    • selin
      Junior Member
      • Aug 2005
      • 26

      #3
      Zabbix Server Cluster

      Using heartbeat and DBRD, I have Zabbix clustered. Heartbeat fails over the IP and DBRD updates the LVM device for MySQL. DBRD has stated on their website that it is possible to run the replication over a long-distance pipe by increasing the timeout values (basically, setting latency).

      If you are interested in the config, let me know.


      Originally posted by bdo
      Hi,

      I would like to kwown what is the best way to physically secure Zabbix server ?


      The goal is to have 2 Zabbix Servers , physically installed in 2 differents Sites. In case of crash or disaster, I want to have a second server ready to start.

      I think the first step is to secure Zabbix Database by setting online replication.

      Can we do it with Mysql ? What about performance ?

      Feed back would be appreciated !!!

      Thanks

      Bertrand

      Comment

      • bluelinq
        Member
        • Feb 2008
        • 44

        #4
        Selin, I would love to have the configuration or documentation on how to do it.

        I am trying to setup zabbix on two separate sites that replicate to one another and each site has a T1 connected to the internet and a VPN establishes the traffic between the two systems.

        One question though, when you setup and agents on the servers, to which zabbix server do you point and how does the agent handle the failover to the other server?

        Regards,

        Paul

        Comment

        • nelsonab
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • Sep 2006
          • 1233

          #5
          Check the wiki for ideas, I started to document the Failover cluster I made but didn't complete, it gives you ideas to get there. The biggest piece missing in the Linux HA configuration.
          RHCE, author of zbxapi
          Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
          Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

          Comment

          Working...