Ad Widget

Collapse

migrate zabbix server, hosts, templates, actions, media etc... to new server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sk3pp3r
    Junior Member
    • Nov 2015
    • 18

    #1

    migrate zabbix server, hosts, templates, actions, media etc... to new server

    Hi folks,


    i have old zabbix server version Zabbix 3.0.31
    install on ubuntu 14.04
    mysql Ver 14.14 Distrib 5.5.62

    server is going to die!

    I have a new server :

    CentOS 8
    with fresh install of Zabbix 5.0.5
    mysql Ver 15.1 Distrib 10.3.17-MariaDB


    is there any way to migrate all setting, tools, scripts, media, discovery etc... FROM legacy server TO the new server?
  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #2
    As you probably know, Zabbix server knows how to perform automatic database upgrade. In your case I'd do the following:

    - back up your existing database
    - make sure your old database is accessed from new CentOS server
    - configure zabbix server on CentOS pointing it to the old datbase host/old database (configuration parameters DBHost and DBName)
    - start zabbix-server on CentOS
    - when new zabbix server starts it will detect that the database is old and start automatic database upgrade
    - watch this process by viewing zabbix-server log file
    - if all goes well at the end of the process it'll say something like "automatic database upgrade is complete"
    - stop zabbix-server on CentOS 8
    - dump the data of old (now upgraded) database and import it to the new MySQL
    - point zabbix-server configuration to the new database
    - start zabbix-server and watch the log file
    Last edited by dimir; 03-11-2020, 16:48.

    Comment


    • sk3pp3r
      sk3pp3r commented
      Editing a comment
      Thanks.

      My challenge is not the DB and his history.

      is the DB "hold" the templates, media type, Discovery action, Autoregistration actions, Trigger actions and more ?
  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #3
    Yes, everything is in the DB.

    Comment


    • sk3pp3r
      sk3pp3r commented
      Editing a comment
      may I need to install the same version of Zabbix-server, zabbix-fronend ?
  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #4
    That's right.

    Comment

    • salai
      Junior Member
      • Nov 2020
      • 27

      #5
      Hi,

      I have Zabbix 5.0 running on RHEL7. I am planning to upgrade to zabbix 5.4.1 on RHEL8.


      May I set up a new 5.4.1 on RHEL8 and copy the database from RHEL7 to RHEL8 and hook up the old database with the new 5.4.1 setup? Will it automatically upgrade the database?

      Cheers
      Salai

      Comment

      Working...