ZABBIX BUGS AND ISSUES

can't import 1.8 host in trunk: "No interfaces"

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 1.9.1 (alpha)
  • Fix Version/s: 1.9.2 (alpha), 2.0.0
  • Component/s: Frontend (F)
  • Labels:
  • Zabbix ID:
    Reviewed 2.0

Description

a host that is exported from 1.8 can not be imported in trunk :

No interfaces for host [ availability test ]
  1. _zbx_hosts_export.xml
    2011 Jan 13 21:01
    23 kB
    richlv
  2. atesthost_zabbix_export.xml
    2011 Jan 13 21:36
    35 kB
    richlv
  3. cisco_vpn3000.xml
    2011 Jan 13 19:07
    14 kB
    richlv
  4. undefined_index_useipmi.xml
    2011 Jan 13 18:57
    115 kB
    richlv
  5. zbx_hosts_export_1.xml
    2011 Jan 25 13:15
    539 kB
    richlv
  6. zbx_templates_export_1.xml
    2011 Jan 24 17:19
    65 kB
    richlv
  7. zbx_templates_export_2.xml
    2011 Jan 24 17:32
    128 kB
    richlv
  8. zbx_templates_export_9.xml
    2011 Jan 25 12:31
    529 kB
    richlv
  9. zbx_templates_export_moeb.xml
    2011 Jan 13 21:48
    40 kB
    richlv
  10. zbx_templates_export_trigger_test_template.xml
    2011 Jan 13 21:46
    4 kB
    richlv
  11. zbx_templates_export.xml
    2011 Jan 13 21:05
    0.7 kB
    richlv

Activity

Hide
Konstantin Buravcov added a comment -

Must make sure that all data exported from 1.8 can be imported to 2.0

Show
Konstantin Buravcov added a comment - Must make sure that all data exported from 1.8 can be imported to 2.0
Hide
Konstantin Buravcov added a comment -

Known problem: applications not used in items are not exported. ZBX-3418

Show
Konstantin Buravcov added a comment - Known problem: applications not used in items are not exported. ZBX-3418
Hide
Konstantin Buravcov added a comment -

Done in dev branch: ZBX-3328

Show
Konstantin Buravcov added a comment - Done in dev branch: ZBX-3328
Hide
richlv added a comment - - edited

dev branch rev 16878

1. (FIXED) see undefined_index_useipmi.xml :
Undefined index: useipmi[/usr/local/apache2/htdocs/dev/ZBX-3328/include/export.inc.php:854]

Show
richlv added a comment - - edited dev branch rev 16878 1. (FIXED) see undefined_index_useipmi.xml : Undefined index: useipmi[/usr/local/apache2/htdocs/dev/ZBX-3328/include/export.inc.php:854]
Hide
richlv added a comment - - edited

2. (FIXED) see cisco_vpn3000.xml

Undefined index: ip[/home/main/usr/local/apache2/htdocs/dev/ZBX-3328/include/export.inc.php:836]
Undefined index: useip[/home/main/usr/local/apache2/htdocs/dev/ZBX-3328/include/export.inc.php:847]
Undefined index: dns[/home/main/usr/local/apache2/htdocs/dev/ZBX-3328/include/export.inc.php:849]
Undefined index: useipmi[/home/main/usr/local/apache2/htdocs/dev/ZBX-3328/include/export.inc.php:854]

Undefined index: ymin_type[/home/main/usr/local/apache2/htdocs/dev/ZBX-3328/include/export.inc.php:1449]
Undefined index: ymax_type[/home/main/usr/local/apache2/htdocs/dev/ZBX-3328/include/export.inc.php:1462]
Undefined index: graphtype[/home/main/usr/local/apache2/htdocs/dev/ZBX-3328/api/classes/class.cgraph.php:1102]

Show
richlv added a comment - - edited 2. (FIXED) see cisco_vpn3000.xml Undefined index: ip[/home/main/usr/local/apache2/htdocs/dev/ZBX-3328/include/export.inc.php:836] Undefined index: useip[/home/main/usr/local/apache2/htdocs/dev/ZBX-3328/include/export.inc.php:847] Undefined index: dns[/home/main/usr/local/apache2/htdocs/dev/ZBX-3328/include/export.inc.php:849] Undefined index: useipmi[/home/main/usr/local/apache2/htdocs/dev/ZBX-3328/include/export.inc.php:854] Undefined index: ymin_type[/home/main/usr/local/apache2/htdocs/dev/ZBX-3328/include/export.inc.php:1449] Undefined index: ymax_type[/home/main/usr/local/apache2/htdocs/dev/ZBX-3328/include/export.inc.php:1462] Undefined index: graphtype[/home/main/usr/local/apache2/htdocs/dev/ZBX-3328/api/classes/class.cgraph.php:1102]
Hide
richlv added a comment -

3. empty errors : see _zbx_hosts_export.xml

[ CItem::syncTemplates ] Cannot find host interface on host [Server 212] for item key []
[ CTemplate::massAdd ] Cannot sync items
[ CHost::massAdd ]
[ CHost::create ]

Show
richlv added a comment - 3. empty errors : see _zbx_hosts_export.xml [ CItem::syncTemplates ] Cannot find host interface on host [Server 212] for item key [] [ CTemplate::massAdd ] Cannot sync items [ CHost::massAdd ] [ CHost::create ]
Hide
richlv added a comment -

4. see zbx_templates_export.xml
Undefined index: interfaces[/home/main/usr/local/apache2/htdocs/dev/ZBX-3328/include/export.inc.php:929]
Invalid argument supplied for foreach()[/home/main/usr/local/apache2/htdocs/dev/ZBX-3328/include/export.inc.php:929]

and it still says "Imported successfully"

Show
richlv added a comment - 4. see zbx_templates_export.xml Undefined index: interfaces[/home/main/usr/local/apache2/htdocs/dev/ZBX-3328/include/export.inc.php:929] Invalid argument supplied for foreach()[/home/main/usr/local/apache2/htdocs/dev/ZBX-3328/include/export.inc.php:929] and it still says "Imported successfully"
Hide
richlv added a comment -

5. [ CHostInterface::update ] Interface with IP " 0.0.0.0 " can not have empty DNS name.

this should be allowed (for example, if host only has web scenarios, trapper items etc and that is the only interface)

Show
richlv added a comment - 5. [ CHostInterface::update ] Interface with IP " 0.0.0.0 " can not have empty DNS name. this should be allowed (for example, if host only has web scenarios, trapper items etc and that is the only interface)
Hide
richlv added a comment -

6. see atesthost_zabbix_export.xml
importing xml attempts to delete an interface :
[ CHostInterface::delete ] Interface is linked to item "A Test Host 2:a"

maybe have to import several times, maybe only reproducible on my setup - ready to provide more info

Show
richlv added a comment - 6. see atesthost_zabbix_export.xml importing xml attempts to delete an interface : [ CHostInterface::delete ] Interface is linked to item "A Test Host 2:a" maybe have to import several times, maybe only reproducible on my setup - ready to provide more info
Hide
richlv added a comment -

7. see zbx_templates_export_trigger_test_template.xml

Undefined index: dependencies[/home/main/usr/local/apache2/htdocs/dev/ZBX-3328/api/classes/class.ctrigger.php:1663]

Show
richlv added a comment - 7. see zbx_templates_export_trigger_test_template.xml Undefined index: dependencies[/home/main/usr/local/apache2/htdocs/dev/ZBX-3328/api/classes/class.ctrigger.php:1663]
Hide
richlv added a comment -

8. see zbx_templates_export_moeb.xml

error message does not specify which graph is that, thus making it very hard to solve the issue

[ CGraph::create ] Incorrect item for axis value item

Show
richlv added a comment - 8. see zbx_templates_export_moeb.xml error message does not specify which graph is that, thus making it very hard to solve the issue [ CGraph::create ] Incorrect item for axis value item
Hide
richlv added a comment -

ping. what about this issue ?
would be great to fix obvious issues & get it finally merged...

Show
richlv added a comment - ping. what about this issue ? would be great to fix obvious issues & get it finally merged...
Hide
Konstantin Buravcov added a comment -

1. Fixed

2. Allowed importing templates with missing 'ip' field, but could not understand how come graphs in your XML have no <ymin_type> element. Tried exporting the very same template from 1.8, and I have this parameter in place. I think not having this parameter must reject the import.

Show
Konstantin Buravcov added a comment - 1. Fixed 2. Allowed importing templates with missing 'ip' field, but could not understand how come graphs in your XML have no <ymin_type> element. Tried exporting the very same template from 1.8, and I have this parameter in place. I think not having this parameter must reject the import.
Hide
richlv added a comment - - edited

dev branch rev 17118.
see zbx_templates_export_1.xml

note that problems might be related to some of the entities (templates or hosts) already present in the database

Application [zas] unlinked.
[ CApplication::massAdd ] Empty input parameter

9. multiple applications are unlinked - not sure why is this happening during import

10. unlink message is quite... non-helpful
if easy enough to do, printing out host & item name would be great

11. (FIXED) fails with "Empty input parameter" (which without debug enabled would be a totally uninformative message...)

Show
richlv added a comment - - edited dev branch rev 17118. see zbx_templates_export_1.xml note that problems might be related to some of the entities (templates or hosts) already present in the database Application [zas] unlinked. [ CApplication::massAdd ] Empty input parameter 9. multiple applications are unlinked - not sure why is this happening during import 10. unlink message is quite... non-helpful if easy enough to do, printing out host & item name would be great 11. (FIXED) fails with "Empty input parameter" (which without debug enabled would be a totally uninformative message...)
Hide
richlv added a comment - - edited

12. (FIXED) see zbx_templates_export_2.xml

DBcondition Error: [1] incorrect value for numeric field

should import as it was exported from 1.8 & message also is missing details

Show
richlv added a comment - - edited 12. (FIXED) see zbx_templates_export_2.xml DBcondition Error: [1] incorrect value for numeric field should import as it was exported from 1.8 & message also is missing details
Hide
richlv added a comment - - edited

13. (FIXED) see zbx_templates_export_9.xml
dev branch rev 17143.

Error in query [INSERT INTO items_applications (itemid,applicationid,itemappid) VALUES (10109,31,9245)] [Duplicate entry '31-10109' for key 'items_applications_1']
[ CApplication::massAdd ] DBEXECUTE_ERROR

Show
richlv added a comment - - edited 13. (FIXED) see zbx_templates_export_9.xml dev branch rev 17143. Error in query [INSERT INTO items_applications (itemid,applicationid,itemappid) VALUES (10109,31,9245)] [Duplicate entry '31-10109' for key 'items_applications_1'] [ CApplication::massAdd ] DBEXECUTE_ERROR
Hide
richlv added a comment -

14. see zbx_hosts_export_1.xml

[ CItem::update ] Item [testitem2:GetAndSaveRegistredGateways2.pl["{HOSTNAME}"]] has invalid port: "0".

Show
richlv added a comment - 14. see zbx_hosts_export_1.xml [ CItem::update ] Item [testitem2:GetAndSaveRegistredGateways2.pl["{HOSTNAME}"]] has invalid port: "0".
Hide
richlv added a comment -

parts concerning 1.8 xml import should be fixed. code review time

Show
richlv added a comment - parts concerning 1.8 xml import should be fixed. code review time
Hide
Konstantin Buravcov added a comment -

Merged to trunk rev 17267.

Leaving issue open, planning to add some basic unit tests.

Show
Konstantin Buravcov added a comment - Merged to trunk rev 17267. Leaving issue open, planning to add some basic unit tests.

People

  • Assignee:
    Unassigned
    Reporter:
    richlv
Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: