Ad Widget

Collapse

Question about Zabbix instance migration and stats

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ZFPuhi
    Junior Member
    • Oct 2019
    • 10

    #1

    Question about Zabbix instance migration and stats

    Hello to all,

    First post here, so please do not trow rocks if some information is lacking but will be added upon requested.

    I am currently set upon a task that I am not sure if possible and how exactly things can be performed without any hiccups, the task is to migrate one instance including the stats of all the projects inside to another instance which has projects. Basically from 2 to combine them into 1 and keep the current stats without any loss if possible which is why I wanted to get some feedback from people that have little more experience with Zabbix and similar migration procedures and processes.

    Thank you all for the time that you have spend reading my post, have a lovely day.
  • 1berto
    Senior Member
    • Sep 2018
    • 182

    #2
    If i understand your question ...
    You have 1 instance of zabbix running and want to copy all data from it
    After it's copied can you delete the initial instance?
    What type of monitoring strategy are you using? Zabbix agents? SNMP?
    In the simplest scenario, if you just monitor SNMP. You just need to stop the zabbix server, copy the database (you can use mysqldump or a similar tool), install zabbix in a new machine and configure it to use the newly created database, all your previous information will be availabe in this new structure.
    If you have zabbix agent monitoring you will need also to change the destination in zabbix agent configuration, or change the DNS if you are using server names (and prefer to don't change the agent's configuration file)...



    Comment

    • ZFPuhi
      Junior Member
      • Oct 2019
      • 10

      #3
      Hello,

      In this case I have 2 instances of Zabbix, running on different machines and the project is to Combine both of the data(statistics) + triggers and information in 1 instance and since my knowledge of Zabbix is currently limited I was wondering if it's possible while I continue to read upon Zabbix.

      Comment

      • ZFPuhi
        Junior Member
        • Oct 2019
        • 10

        #4
        splitek exactly, which is why I was trying to figure a way to do such a migration / combine 2 in 1 without encountering that issue.

        Comment

        • 1berto
          Senior Member
          • Sep 2018
          • 182

          #5
          Probably the best strategy would be:
          1) Stop your zabbix server / web /database
          2) Create a 'empty' dabatabase cluster
          3) Dump all existing data and import it to the cluster.
          4) Install a new instance pointing to the cluster
          5) Reconfigure previous existing instance to use the database cluster.


          Comment

          Working...