Ad Widget

Collapse

Which one table master are related to hostid and itemid ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • arovah
    Member
    • Nov 2020
    • 43

    #1

    Which one table master are related to hostid and itemid ?

    Dear Colleagues,

    We have 2 environment zabbix, they are blue and green environment.
    Blue environment description :
    • Zabbix Proxy 4.0.2
    • Zabbix Server 4.0.2
    • Zabbix FE 4.0.2
    • Database Postgress vers. 9.6 for Zabbix Server
    Green environment description :
    • Zabbix Proxy 6.0
    • Zabbix Server 6.0
    • Zabbix FE 6.0
    • Database Postgress vers. 14 for Zabbix Server

    Currently we are migrating hosts in Zabbix Blue environment moving to Zabbix Green environment.
    Can we move all of hosts in Zabbix Blue environment to Zabbix Green environment (New Zabbix) but with condition itemid and hostid should be same?
    Due to before we already backup and restore from Zabbix Blue to Zabbix Green Database and we need rest of host in Zabbix Blue Database migrated.
    Can you tell me which one table master are related to hostid and itemid (we will migrate only table master not transaction) ?

    Really appreciated for any answer. Thank you.
    Last edited by arovah; 21-07-2023, 03:36.
  • arovah
    Member
    • Nov 2020
    • 43

    #2
    Up .... up ....

    Comment

    • arovah
      Member
      • Nov 2020
      • 43

      #3
      is any one can help me?

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4807

        #4
        Originally posted by arovah
        Can we move all of hosts in Zabbix Blue environment to Zabbix Green environment (New Zabbix) but with condition itemid and hostid should be same?
        yes, if you copy your old DB to new platform and let your new server do the upgrade tasks...
        Originally posted by arovah
        Due to before we already backup and restore from Zabbix Blue to Zabbix Green Database and we need rest of host in Zabbix Blue Database migrated.
        Can you tell me which one table master are related to hostid and itemid (we will migrate only table master not transaction) ?
        So how you only have part of hosts migrated, if you already copied old db to new platform?

        There is no master table... there are different tables.. ~170 of them... there's hosts, hosts_groups, hstgrp, items etc..

        If you don't care about data, but want only config, skip history and trends, take rest of it and let your server do all necessary upgrade tasks... It will be easier and less painful for everyone...

        Comment

        • arovah
          Member
          • Nov 2020
          • 43

          #5
          hello cyber,

          Thank you for your response, may i know what are table's name can we skip for migration ?

          Comment

          • cyber
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • Dec 2006
            • 4807

            #6
            As said "skip history and trends, if you don't care about data"... you still need to create tables, but you can skip contents..

            Comment

            • arovah
              Member
              • Nov 2020
              • 43

              #7
              hi cyber,

              We already define data exclude migrate to new server, could you help me to make sure again for proper migration database zabbix. From database below is it ok or no?
              --exclude-table-data='trend*'\
              --exclude-table-data='problem*'\
              --exclude-table-data='history*'\
              --exclude-table-data='auditlog*'\
              --exclude-table-data='alerts'\
              --exclude-table-data='sessions'\
              --exclude-table-data='event*'\
              --exclude-table-data='acknowledges'\
              --exclude-table-data='trigger*'\
              --exclude-table-data='functions'\
              --exclude-table-data='sysmap_element_trigger'\
              --exclude-table-data='sysmaps_link_triggers'\​

              Comment

              • arovah
                Member
                • Nov 2020
                • 43

                #8
                do we exclude data table : problem,problem_tag, alerts, events, event_tag, event_recovery , event_suppress too?

                Comment

                • cyber
                  Senior Member
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • Dec 2006
                  • 4807

                  #9
                  I would only ignore
                  Code:
                  --exclude-table-data='trend*'\
                  --exclude-table-data='history*'\
                  Other tables should not be that big, that they would cause too much delay in transfer and converting...​

                  Comment

                  • arovah
                    Member
                    • Nov 2020
                    • 43

                    #10
                    Dear Cyber,

                    Thank you so much for your support, we already migration to new zabbix environment succesfully

                    regards

                    Comment

                    Working...