Ad Widget

Collapse

I want import some templates from existing zabbix server to another new zabbix server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ankushssgb
    Junior Member
    • Jun 2018
    • 11

    #1

    I want import some templates from existing zabbix server to another new zabbix server

    I have one server having zabbix-server with version 2.2.6(OS version CentOS6) and now I install zabbix on another server having OS CentOS7 with zabbix version 2.2.22, Now I want import some templates, application, Items, triggers from existing zabbix server to another new zabbix server without importing whole databse dump.

    So, can any one help me here how I can do this. Since my existing zabbix DB size is near about 80 GB.

    Regards,
    Ankush
  • kernbug
    Senior Member
    • Feb 2013
    • 330

    #2
    Originally posted by ankushssgb
    I have one server having zabbix-server with version 2.2.6(OS version CentOS6) and now I install zabbix on another server having OS CentOS7 with zabbix version 2.2.22, Now I want import some templates, application, Items, triggers from existing zabbix server to another new zabbix server without importing whole databse dump.

    So, can any one help me here how I can do this. Since my existing zabbix DB size is near about 80 GB.

    Regards,
    Ankush
    Hello

    You can use export/import for templates and other settings:

    Comment

    • ankushssgb
      Junior Member
      • Jun 2018
      • 11

      #3
      Thanks for your reply..

      I am unable to import one template from old zabbix-server to new zabbix-server.

      While importing that template I am getting below error message:

      ERROR: Import failed
      • Created: Application "CPU" on "Template NetApp".
      • Created: Application "File Serving" on "Template NetApp".
      • Created: Application "Lun" on "Template NetApp".
      • Created: Application "System" on "Template NetApp".
      • Created: Application "Volume" on "Template NetApp".
      • Cannot find value map "netapp.fsOverallStatus" used for item "File System overall status" on "Template NetApp".
      I have also attached exported NetApp template xml file for your reference.

      It will be great, If someone can help here.



      Regards,
      Ankush
      Attached Files

      Comment

      • ankushssgb
        Junior Member
        • Jun 2018
        • 11

        #4
        Hi,

        Just one more difference I observed with my old zabbix-server and new zabbix server is as below:

        On old zabbix-server (version 2.2.6), when we are creating new "Item", For that item "show value" field showing extra values like "netapp.fsOverallStatus" and "netapp.miscGlobalStatus" as compare t my new zabbix-server (version 2.2.22)

        Please let me know, How can I import attached template (which I attached in my previous update ) with items in my new zabbix server.

        Comment

        • kernbug
          Senior Member
          • Feb 2013
          • 330

          #5
          Originally posted by ankushssgb
          Hi,

          Just one more difference I observed with my old zabbix-server and new zabbix server is as below:

          On old zabbix-server (version 2.2.6), when we are creating new "Item", For that item "show value" field showing extra values like "netapp.fsOverallStatus" and "netapp.miscGlobalStatus" as compare t my new zabbix-server (version 2.2.22)

          Please let me know, How can I import attached template (which I attached in my previous update ) with items in my new zabbix server.
          Hi

          You need to transfer "Value Mapping" named "netapp.fsOverallStatus" from old server «Administration -> General -> Value Mapping» to the new Zabbix server. Unfortunately this can be done only manually or using DB sql query.

          Comment

          • ankushssgb
            Junior Member
            • Jun 2018
            • 11

            #6
            Hi,

            Thanks for your valuable suggestion, Its work for me. But, again I am getting different error while importing templates from old zabbix server to new zabbix server.

            Below are the error details for your reference:
            • Cannot implode expression "{Template NetApp:LunSnapStatus[{#SNMPVALUE}].avg(0)}#2". Incorrect trigger function "avg(0)" provided in expression. Invalid first parameter.

            Comment

            • kernbug
              Senior Member
              • Feb 2013
              • 330

              #7
              Originally posted by ankushssgb
              Hi,

              Thanks for your valuable suggestion, Its work for me. But, again I am getting different error while importing templates from old zabbix server to new zabbix server.

              Below are the error details for your reference:
              • Cannot implode expression "{Template NetApp:LunSnapStatus[{#SNMPVALUE}].avg(0)}#2". Incorrect trigger function "avg(0)" provided in expression. Invalid first parameter.
              Average needs to be of more than 0 readings (avg seems pointless if less than 2 readings - might as well use last, which should require less processing). Edit your template and change avg(0)->avg(#5).

              Comment

              • ankushssgb
                Junior Member
                • Jun 2018
                • 11

                #8
                Hi,

                Thanks for your reply. Currently I am getting below error, while importing host list:
                • Two items ("Device name" and "Host name") cannot populate one host inventory field "Name", this would lead to a conflict.

                Regards,
                Ankush

                Comment

                • kernbug
                  Senior Member
                  • Feb 2013
                  • 330

                  #9
                  Originally posted by ankushssgb
                  Hi,

                  Thanks for your reply. Currently I am getting below error, while importing host list:
                  • Two items ("Device name" and "Host name") cannot populate one host inventory field "Name", this would lead to a conflict.

                  Regards,
                  Ankush
                  Hi

                  Remove 'Device Name' from importing list, leave only hostname.

                  Comment

                  • ankushssgb
                    Junior Member
                    • Jun 2018
                    • 11

                    #10
                    Hi,

                    Could you please elaborate more on "Remove 'Device Name' from importing list, leave only hostname"

                    How to remove device name from importing list??

                    I have also attached importing screen snapshot for your reference.

                    Regards,
                    Ankush
                    Attached Files

                    Comment

                    • kernbug
                      Senior Member
                      • Feb 2013
                      • 330

                      #11
                      Originally posted by ankushssgb
                      Hi,

                      Could you please elaborate more on "Remove 'Device Name' from importing list, leave only hostname"

                      How to remove device name from importing list??

                      I have also attached importing screen snapshot for your reference.

                      Regards,
                      Ankush
                      Hello

                      You need to open xml file in the text editor and remove unsupported elements, in this case 'Device name'.

                      Comment

                      • ankushssgb
                        Junior Member
                        • Jun 2018
                        • 11

                        #12
                        Hi,

                        I am not able to find "Device name" inside host xml file.

                        Could you please help me here.

                        Comment

                        • kernbug
                          Senior Member
                          • Feb 2013
                          • 330

                          #13
                          Originally posted by ankushssgb
                          Hi,

                          I am not able to find "Device name" inside host xml file.

                          Could you please help me here.
                          Upload somewhere this file (dropbox/google drive/onedrive) and give me link.

                          Comment

                          • ankushssgb
                            Junior Member
                            • Jun 2018
                            • 11

                            #14
                            Hi,

                            Could you please share your email id to share that file.

                            Regards,
                            Ankush Borse

                            Comment

                            Working...