ZABBIX BUGS AND ISSUES

Template export doesn't work

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 2.0.0rc3
  • Fix Version/s: 2.0.0rc4
  • Component/s: Frontend (F)
  • Labels:
    None
  • Environment:
    RHEL 5 based distro, PostgreSQL 8.4
  • Zabbix ID:
    NA

Description

When exporting any of the default Zabbix templates (old ones, without discovery), I get empty xml file. Frontend shows a message that export was successful, and there are no details in this message.

There is an error in Apache log file:
[Thu Apr 19 19:18:02 2012] [error] [client 192.168.150.1] PHP Fatal error: Argument 1 passed to CConfigurationExportBuilder::formatApplications() must not be null, called in /usr/share/zabbix/include/classes/export/CConfigurationExportBuilder.php on line 68 and defined in /usr/share/zabbix/include/classes/export/CConfigurationExportBuilder.php on line 473, referer: https://zabbix/zabbix/templates.php?ddreset=1&sid=facd07ffb9d5bfa0

However, if I comment out lines with applications, discovery_rules and screens in /usr/share/zabbix/include/classes/export/CConfigurationExportBuilder.php near line number 68, export works.

Issue Links

Activity

Hide
Alexey Fukalov added a comment -

dev branch: svn://svn.zabbix.com/branches/dev/ZBX-4902

Show
Alexey Fukalov added a comment - dev branch: svn://svn.zabbix.com/branches/dev/ZBX-4902
Hide
Pavels Jelisejevs added a comment -

TESTED.

Show
Pavels Jelisejevs added a comment - TESTED.
Hide
Alexey Fukalov added a comment -

svn://svn.zabbix.com/trunk 27135

Show
Alexey Fukalov added a comment - svn://svn.zabbix.com/trunk 27135
Hide
Sergey Sireskin added a comment - - edited

Template export still does not work for me in today's trunk (27216). I get an error in Apache log:

PHP Fatal error: Argument 1 passed to CConfigurationExportBuilder::formatDependencies() must not be null, called in /usr/share/zabbix/include/classes/export/CConfigurationExportBuilder.php on line 364 and defined in /usr/share/zabbix/include/classes/export/CConfigurationExportBuilder.php on line 537, referer: https://localhost/zabbix/templates.php?templateid=10077&sid=892c58c2393bad51

Template id 10077 stands for a built-in Zabbix Template OS HP-UX

Show
Sergey Sireskin added a comment - - edited Template export still does not work for me in today's trunk (27216). I get an error in Apache log: PHP Fatal error: Argument 1 passed to CConfigurationExportBuilder::formatDependencies() must not be null, called in /usr/share/zabbix/include/classes/export/CConfigurationExportBuilder.php on line 364 and defined in /usr/share/zabbix/include/classes/export/CConfigurationExportBuilder.php on line 537, referer: https://localhost/zabbix/templates.php?templateid=10077&sid=892c58c2393bad51 Template id 10077 stands for a built-in Zabbix Template OS HP-UX
Hide
Alexey Fukalov added a comment - - edited

dev branch: svn://svn.zabbix.com/branches/dev/ZBX-4902

Show
Alexey Fukalov added a comment - - edited dev branch: svn://svn.zabbix.com/branches/dev/ZBX-4902
Hide
Simon Kowallik added a comment -

Frontend from svn://svn.zabbix.com/branches/dev/ZBX-4902 works for ZBX-4943 too.
Thanks!

Show
Simon Kowallik added a comment - Frontend from svn://svn.zabbix.com/branches/dev/ZBX-4902 works for ZBX-4943 too. Thanks!
Hide
Pavels Jelisejevs added a comment - - edited

(1) When I try to export the default Zabbix server I get an error:

"[error] Undefined index: proxy [include/classes/export/CConfigurationExportBuilder.php:125]"

<Vedmak> This will be fixed in ZBX-4920.

<pavels> Ok, CLOSED for now.

Show
Pavels Jelisejevs added a comment - - edited (1) When I try to export the default Zabbix server I get an error: "[error] Undefined index: proxy [include/classes/export/CConfigurationExportBuilder.php:125]" <Vedmak> This will be fixed in ZBX-4920. <pavels> Ok, CLOSED for now.
Hide
Alexey Fukalov added a comment -

svn://svn.zabbix.com/trunk 27383.

Show
Alexey Fukalov added a comment - svn://svn.zabbix.com/trunk 27383.

People

Vote (0)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved: