Ad Widget

Collapse

Failed while import screen

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • galvin
    Junior Member
    • Nov 2011
    • 2

    #1

    Failed while import screen

    I've exported a screen.xml, deleted it on zabbix_server. Then I changed
    <host> and import it and it failed.

    The Error log like "XML file contains errors. Error 28: Datatype element resourceid has child elements [ Line: 6 | Column: 0 ]"

    What's the matter with the xml as the following?

    <screens>
    <screen>
    <screenitems>
    <screenitem>
    <resourcetype>0</resourcetype>
    <resourceid>
    <node>Master node</node>
    <host>10.10.34.149</host>
    <name>Total show about Download mhxt in last 10 minutes</name>
    </resourceid>
    <width>500</width>
    <height>100</height>
    <x>0</x>
    <y>0</y>
    <colspan>0</colspan>
    <rowspan>0</rowspan>
    <elements>0</elements>
    <valign>0</valign>
    <halign>0</halign>
    <style>0</style>
    <dynamic>0</dynamic>
    </screenitem>
    </screenitems>
    <name>Download of mhxt.patch</name>
    <hsize>1</hsize>
    <vsize>1</vsize>
    </screen>
    </screens>
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    this sounds very similar to http://www.zabbix.com/forum/showthread.php?t=23907

    seems like zabbix doesn't like "node" for some reason
    Zabbix 3.0 Network Monitoring book

    Comment

    • galvin
      Junior Member
      • Nov 2011
      • 2

      #3
      That's it!
      I tried kinds of <resourceid> in xml-file. I found zabbix must check the elements in resourceid. And it can't identify <node> element.
      But if I used distribution maintenance, it'd change the table in database that it‘d add a filed named node. And then, zabbix wouldn't identify items without a node number.
      It must be a BUG!

      Comment

      Working...