[ZBX-5232] Discovery rules does not import from XML files Created: 2012 Jun 22  Updated: 2017 May 30  Resolved: 2012 Jun 27

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 2.0.1, 2.1.0
Fix Version/s: 2.0.2rc1, 2.1.0

Type: Incident report Priority: Major
Reporter: Alexey Pustovalov Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: lld, templates
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: XML File lld.xml    
Issue Links:
Duplicate
is duplicated by ZBX-5294 Zabbix does not import discovery rules Closed
is duplicated by ZBX-5258 Template import (from and to 2.0.x) o... Closed

 Description   

Web-interface does not import LLD rules from XML files (templates).



 Comments   
Comment by Pavels Jelisejevs (Inactive) [ 2012 Jun 25 ]

(1) Seems to be working with hosts, but when importing an empty discovery rule a lot of errors occur:

Imported successfully

Invalid argument supplied for foreach() [include/classes/import/CConfigurationImport.php:266]
Invalid argument supplied for foreach() [include/classes/import/CConfigurationImport.php:277]
Invalid argument supplied for foreach() [include/classes/import/CConfigurationImport.php:281]
Updated: Discovery rule "lld" on "lld-host".
Invalid argument supplied for foreach() [include/classes/import/CConfigurationImport.php:680]
Invalid argument supplied for foreach() [include/classes/import/CConfigurationImport.php:765]
Invalid argument supplied for foreach() [include/classes/import/CConfigurationImport.php:778]

<pavels> RESOLVED.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Jun 25 ]

RESOLVED in svn://svn.zabbix.com/branches/dev/ZBX-5232.

Comment by Toms (Inactive) [ 2012 Jun 26 ]

(1) attached file generates errors. Same issue possible in several other places as well.

<pavels> RESOLVED.

<Toms> CLOSED

Comment by Toms (Inactive) [ 2012 Jun 28 ]

Review my changes, if OK merge

Comment by Toms (Inactive) [ 2012 Jun 28 ]

TESTED

Comment by Pavels Jelisejevs (Inactive) [ 2012 Jun 29 ]

Fixed in 2.0 r28531 and trunk r28532.

CLOSED.

Generated at Tue Apr 23 21:44:25 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.