Import removes existing information

XMLWordPrintable

    • Type: Incident report
    • Resolution: Fixed
    • Priority: Critical
    • None
    • Affects Version/s: 1.9.0 (alpha)
    • Component/s: Frontend (F)
    • None
    • Environment:
      1.7.2, rev. 8370

      One host with all data was exported. Afterwards we import the same XML, the import is ok, however we see the following messages in the message details:

      • Graph "Network stats" deleted from hosts "au_001"
      • Graph "Processor load" deleted from hosts "au_001"
      • Graph "CPU times" deleted from hosts "au_001"
      • Trigger "Processor load is too high on {HOSTNAME}" deleted from host "au_001"
        * Item 'au_001:agent.ping' deleted
        * Item 'au_001:net.if.in[eth0,bytes]' deleted
        * Item 'au_001:net.if.out[eth0,bytes]' deleted
        * Item 'au_001:system.boottime' deleted
        * Item 'au_001:system.cpu.load[,avg1]' deleted
        * Item 'au_001:system.cpu.util[,idle,avg1]' deleted
        * Item 'au_001:system.cpu.util[,system,avg1]' deleted
        * Item 'au_001:system.cpu.util[,user,avg1]' deleted
        * Item 'au_001:system.hostname' deleted
        * Item 'au_001:system.uptime' deleted
        * Application "au_001:Availability" deleted
        * Application "au_001:CPU" deleted
        * Application "au_001:General" deleted
        * Application "au_001:Network" deleted
        * Application "au_001:OS" deleted
        * Added new application au_001:Availability
        * Added new application au_001:CPU
        * Added new application au_001:General
        * Added new application au_001:Network
        * Added new application au_001:OS
        * Added new item au_001:agent.ping
        * Added new item au_001:net.if.in[eth0,bytes]
        * Added new item au_001:net.if.out[eth0,bytes]
        * Added new item au_001:system.boottime
        * Added new item au_001:system.cpu.load[,avg1]
        * Added new item au_001:system.cpu.util[,idle,avg1]
        * Added new item au_001:system.cpu.util[,system,avg1]
        * Added new item au_001:system.cpu.util[,user,avg1]
        * Added new item au_001:system.hostname
        * Added new item au_001:system.uptime
        * Added trigger "Processor load is too high on {HOSTNAME}

        " to host "au_001"

      • Graph "Network stats" added to hosts "au_001"
      • Graph "Processor load" added to hosts "au_001"
      • Graph "CPU times" added to hosts "au_001"

      We must not delete existing data! It must be UPDATED! Items, triggers, graphs applications -> we have to update it, not delete&re-create.

            Assignee:
            Unassigned
            Reporter:
            Alexei Vladishev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: