Ad Widget

Collapse

Migration to new zabbix server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • konvert
    Junior Member
    • May 2014
    • 6

    #1

    Migration to new zabbix server

    Hello i want to migrate my zabbix server to a new server.

    Old server is Centos 6 with zabbix 2.2.7
    New server is Centos 7 and i already installed zabbix 3.0.1 and made the database. Server is running now.

    How can i migrate all my hosts, settings, templates, triggers, ...
  • Linwood
    Senior Member
    • Dec 2013
    • 398

    #2
    I was hoping someone would jump in with a more complete answer than I have.

    When I do an install, I try to track all the customizations that are not inside the database, for example alert scripts, external scripts, config files, associated product customizations (snmp* stuff for example), users and groups, and database customization files. It's a lot of stuff to track, but it's the only way I can figure out to include these in a new install.

    Then backup the database and restore it on the new server (along with the above), and with a bit of luck and proper configuration, if you run setup there it will upgrade the database to the new version. If not, it may actually make sense to install the older version and get it running on the new server then upgrade zabbix in place.

    I really wish that zabbix was a bit more aware (sort of an inventory of) changes and scripts and such, to facilitate moving. It's even harder to move a customized zabbix setup to another server WITHOUT hosts and site specific stuff; some things can export and import, many cannot (though that got better with 3.x).

    Comment

    • pdaemon
      Junior Member
      • Apr 2016
      • 4

      #3
      Hi,

      In my environment I previously had Zabbix installed on RHEL6 and running version 2.4.5. I wanted to migrate to RHEL7 and go to Zabbix 3.0, so did the following steps:

      1. Build new RHEL7 server
      2. Install Zabbix 2.4.5 on new server
      3. Stop Zabbix on current server...dump DB and restore to new Server on version 2.4.5
      4. Check that Zabbix 2.4.5 on RHEL7 is working...Yes.
      5. Upgrade to Zabbix 3.0...all good.

      Regards Philipp

      Comment

      • bbrendon
        Senior Member
        • Sep 2005
        • 870

        #4
        Originally posted by konvert
        Hello i want to migrate my zabbix server to a new server.

        Old server is Centos 6 with zabbix 2.2.7
        New server is Centos 7 and i already installed zabbix 3.0.1 and made the database. Server is running now.

        How can i migrate all my hosts, settings, templates, triggers, ...
        1. Install zbx 3 on new server
        2. Delete the zbx database on new server
        3. Copy the database from old server to new server
        4. point zabbix 3 to old database (that is now on new server)
        5. start zabbix server.

        When you start the zabbix server process it will auto-detect the old database and perform the upgrade.
        Unofficial Zabbix Expert
        Blog, Corporate Site

        Comment

        Working...