Ad Widget

Collapse

Error importing screen which was just exported

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • linuxgurugamer
    Member
    • Oct 2010
    • 66

    #1

    Error importing screen which was just exported

    Zabbix 2.0.3.

    I exported a screen, then immediately imported it, and am getting the following error on the first resource in the XML:

    Cannot find item "webvm1:query_apachestats.py["{HOST.CONN}",80, PercentSlotsUsed]" used in screen "webvm1".

    This screen works, and that item does exist. I was having problems importing a new screen, so did this as a test.

    Any ideas? If it makes any difference, the database used to be a 1.8 database which was upgraded to 2.0.

    Thanks in advance


    JBB
  • raoul
    Junior Member
    • Nov 2011
    • 29

    #2
    Wouldn't it be related to this ?
    See http://www.zabbix.com/documentation/...on/whatsnew200
    (5.3.2.4 External check parameter changes)

    Cheers,
    y/

    Comment

    • linuxgurugamer
      Member
      • Oct 2010
      • 66

      #3
      Why? The HOST.CONN parameter is there. Besides, the error is that the key isn't found, when it obviously is there since I had just exported the screen.

      Comment

      • Makc666
        Junior Member
        • Oct 2012
        • 12

        #4
        Cannot find item used in screen

        The same problem here for Export / Import of Screens.

        For me it is connected with data for Simple graph.

        Code:
        Cannot find item "host.name:vm.memory.size[available]" used in screen "Mail Servers".
        or
        Code:
        Cannot find item "host.name:agent.ping" used in screen "Mail Servers".
        HTML Code:
        <?xml version="1.0" encoding="UTF-8"?>
        <zabbix_export>
            <version>2.0</version>
            <date>2012-10-29T12:40:10Z</date>
            <screens>
                <screen>
                    <name>Mail Servers</name>
                    <hsize>2</hsize>
                    <vsize>1</vsize>
                    <screen_items>
                        <screen_item>
                            <resourcetype>1</resourcetype>
                            <width>500</width>
                            <height>100</height>
                            <x>0</x>
                            <y>0</y>
                            <colspan>1</colspan>
                            <rowspan>1</rowspan>
                            <elements>0</elements>
                            <valign>0</valign>
                            <halign>0</halign>
                            <style>0</style>
                            <url/>
                            <dynamic>1</dynamic>
                            <sort_triggers>0</sort_triggers>
                            <resource>
                                <key>agent.ping</key>
        			<host>host.name</host>
                            </resource>
                        </screen_item>
                    </screen_items>
                </screen>
            </screens>
        </zabbix_export>

        Comment

        • tchjts1
          Senior Member
          • May 2008
          • 1605

          #5
          Validated same issue in 2.0.3

          As noted by Makc666 above, I found that if you remove all items from the XML that are related to simple graphs, you can then import the screen.

          Bug report created: https://support.zabbix.com/browse/ZBX-5786

          Comment

          • Makc666
            Junior Member
            • Oct 2012
            • 12

            #6
            Fix Version/s:
            2.0.4rc1

            Comment

            • linuxgurugamer
              Member
              • Oct 2010
              • 66

              #7
              For those who can't wait until 2.04 comes out, there was a very simple fix listed in the bug report:

              Add the following line:

              $hostsRefs[$resource['host']] = $resource['host'];


              Should be added to file CConfigurationImport.php after lines 394 and 422.

              Comment

              Working...