Ad Widget

Collapse

how to create duplicate zabix server?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chiru
    Junior Member
    • Jun 2014
    • 2

    #1

    how to create duplicate zabix server?

    Hi,

    I would like to monitor 100 servers in two different zabbix servers. I have configured zabbix 1.8 on one server and added all the hosts with items, triggers and graphs to monitor manually. It is working fine. I configured another server with same version(Zabbix 1.8). I would like to know that how to copy the same hosts to another zabbix server.

    Example :- zabbix1.monitor.com is already monitoring 100 servers with hundreads of items, triggers and graphs. I configured zabbix2.monitor.com with same version. I need to add all the hosts with all items, triggers and graphs of zabbix1.monitor.com to zabbix2.monitor.com.

    What is the simplest way to copy all the hosts, items, triggers and graphs to the zabbix2.monitor.com from zabbix1.monitor.com.


    Thanks in advance.
  • Colttt
    Senior Member
    Zabbix Certified Specialist
    • Mar 2009
    • 878

    #2
    hello!

    why do you use the old version 1.8?! the best way is you are use the 2.2

    the easiest way ist to copy the database or create a dump from the specific tables (hosts/items/etc)
    Debian-User

    Sorry for my bad english

    Comment

    • aib
      Senior Member
      • Jan 2014
      • 1615

      #3
      Yes, the simplest way is to export database - copy dump to second server - import database

      The database contains all settings, hosts, items, graphs, etc. and only one thing which you have to do manually is change the keyword "Server=" in all Zabbix agent configuration files to allow the requests from both zabbix servers to each agent.
      Sincerely yours,
      Aleksey

      Comment

      • ingus.vilnis
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Mar 2014
        • 908

        #4
        Completely agreed with the previous two posts, but you can also entertain yourself by building a high availability cluster with two servers.

        Join the friendly and open Zabbix community on our forums and social media platforms.


        Best Regards,
        Ingus

        Comment

        • chiru
          Junior Member
          • Jun 2014
          • 2

          #5
          Error during importing

          I followed some steps as below

          I logged into zabbix1.monitor.com
          navigated to configuration -> Hosts
          selected a server from the list of servers
          clicked on Export Selected
          an .xml file is created in my local system.

          I logged into zabbix2.monitor.com
          navigated to configuration -> Hosts
          Clicked on import Host button
          Browsed the .xml file from local system
          Clicked on Import
          "Then encountered the below error"

          ERROR: Import failed
          No permission for Template [Template_Puppet]



          Please let me know what exactly the solution for the above problem.........

          Comment

          • coreychristian
            Senior Member
            Zabbix Certified Specialist
            • Jun 2012
            • 159

            #6
            Does the template exist on the new server?

            I would export your templates first, then do servers if your going to do it that way.

            But as mentioned the easier way to do this would be to just copy your database to the new instance, or go with a true HA solution.

            Comment

            • aib
              Senior Member
              • Jan 2014
              • 1615

              #7
              Well, use this article Moving Zabbix MySQL DB to new hardware

              Don't do it from frontend.
              Stop the Zabbix server & work with MySQL from commandline.
              Sincerely yours,
              Aleksey

              Comment

              Working...