Ad Widget

Collapse

Upgrade Zabbix 4.4.7 to 5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GKaveH
    Junior Member
    • Jul 2020
    • 6

    #1

    Upgrade Zabbix 4.4.7 to 5

    Hello guys


    I have a situation and I want to get your opinion about my strategy to change to Zabbix version 5
    in the past few weeks, I have a database storage problem and manage it by separating my Zabbix server and my database (MySQL/MariaDB) and after some days pass and I'm ensured all I have done was okay and haven't any problem occurred I was done something stupid and now I can't think why I was doing it, in my Zabbix server I was ran this command

    apt-get remove --purge mysql*

    (easily I could delete MySQL database directory )and yesterday I found my zabbix_server.conf wasn't there in my Zabbix server I have a backup from my zabbix_server.conf and put it on my server back and when I wanted to restart my Zabbix server service I found out there isn't any init script for the Zabbix server so I get a snapshot from my server (it's VM) and use this command to install it again with

    apt install zabbix-server-mysql

    and it's stuck at 97% and after some while I close my ssh session and open a new session and test it by restarting Zabbix server service and all thing went well with that restart and nothing happened and my Zabbix is working now okay, but I don't have a good feeling about it.

    I had the plan to upgrade to new Zabbix version 5 I hade a clone of my primary Zabbix and had planned to test it with that but after this happened I don't know it's better to have a clean install of the Zabbix version 5 and then connect it to present Mysql? if I doing that all my graphs or my actions, screens will be there in the new Zabbix or not?
    or I upgrade the present Zabbix server.
    Last edited by GKaveH; 10-10-2020, 12:14.
  • ZaBeast
    Member
    • Sep 2019
    • 42

    #2
    Don't worry about it as long as the database doesn't have any problems. Zabbix server and fronted can be easily reinstalled if anything goes wrong.
    I recommend this step-by-step guide if you are upgrading your Zabbix to 5.0 version: https://bestmonitoringtools.com/upgr...atest-version/

    Comment

    • GKaveH
      Junior Member
      • Jul 2020
      • 6

      #3
      thanks for your reply it's relief, but for caution, I have a master/slave MySQL database. which one of these ways is safe and the best solution

      1- stop the slave database, and upgrade the current server to Zabbix 5, and when everything is okay start the slave database again
      2- Clean install of Zabbix 5 and stop slave and change it to master and connect Zabbix 5 to it and if everything is okay change the IP of this new server and change old master to be a slave database
      3- Get Clone from the master database and clean install of Zabbix 5 and connect it to that cloned database

      and I'm wondering if I chose 2 or 3 and have a clean install of Zabbix and connect it to the current database do I need to create all screen and manual items we created in past?

      Comment

      • ZaBeast
        Member
        • Sep 2019
        • 42

        #4
        Originally posted by GKaveH
        thanks for your reply it's relief, but for caution, I have a master/slave MySQL database. which one of these ways is safe and the best solution

        1- stop the slave database, and upgrade the current server to Zabbix 5, and when everything is okay start the slave database again
        2- Clean install of Zabbix 5 and stop slave and change it to master and connect Zabbix 5 to it and if everything is okay change the IP of this new server and change old master to be a slave database
        3- Get Clone from the master database and clean install of Zabbix 5 and connect it to that cloned database

        and I'm wondering if I chose 2 or 3 and have a clean install of Zabbix and connect it to the current database do I need to create all screen and manual items we created in past?
        Use 1. option. Database Upgrade process is pretty simple and safe, but make sure to make database backup (just in case).

        Comment

        Working...