Ad Widget

Collapse

Zabbix2.0.0rc1 failed to export templates

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • higebu
    Junior Member
    • Aug 2011
    • 5

    #1

    Zabbix2.0.0rc1 failed to export templates

    If the number of "Discovery" or "Screens" in the template is 0, Zabbix failed to export the template.
    The error message is follows.

    No "Discovery" in the template:
    Code:
    [Mon Mar 19 10:31:52 2012] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error:  Argument 1 passed to CConfigurationExportBuilder::formatDiscoveryRules() must not be null, called in /usr/share/zabbix/include/classes/export/CConfigurationExportBuilder.php on line 70 and defined in /usr/share/zabbix/include/classes/export/CConfigurationExportBuilder.php on line 232, referer: http://xxx.xxx.xxx.xxx/zabbix/templates.php?sid=9ed7a4a64e923661
    No "Screens" in the template:
    Code:
    [Mon Mar 19 10:47:25 2012] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error:  Argument 1 passed to CConfigurationExportBuilder::formatScreens() must not be null, called in /usr/share/zabbix/include/classes/export/CConfigurationExportBuilder.php on line 73 and defined in /usr/share/zabbix/include/classes/export/CConfigurationExportBuilder.php on line 511, referer: http://xxx.xxx.xxx.xxx/zabbix/templates.php?templateid=10082&sid=9ed7a4a64e923661
    Is this a bug?
  • zalex_ua
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2009
    • 1286

    #2
    I cannot reproduce it with 2.0.0rc1
    Are you trying to export some built-in template or you own?
    Could you describe any special details of the template?

    Comment

    • higebu
      Junior Member
      • Aug 2011
      • 5

      #3
      I tried to export the built-in template, "Template_Linux" and also my own templates.
      And i tried to export, after creating "Discovery" and "Screans", but it failed by the following error.
      Code:
      [Mon Mar 19 17:29:13 2012] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error:  Argument 1 passed to CConfigurationExportBuilder::formatItems() must not be null, called in /usr/share/zabbix/include/classes/export/CConfigurationExportBuilder.php on line 261 and defined in /usr/share/zabbix/include/classes/export/CConfigurationExportBuilder.php on line 417, referer: http://xxx.xxx.xxx.xxx/zabbix/templates.php?sid=9ed7a4a64e923661
      I feel that it has occurred because I upgraded zabbix from 1.9.9.
      So I will try to clean install 2.0.0rc1.

      Thanks.

      Comment

      • zalex_ua
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2009
        • 1286

        #4
        Originally posted by higebu
        I feel that it has occurred because I upgraded zabbix from 1.9.9.
        So I will try to clean install 2.0.0rc1.
        dang, I believe the topic can be closed

        Comment

        • ericgearhart
          Senior Member
          • Jan 2009
          • 115

          #5
          Originally posted by higebu
          I tried to export the built-in template, "Template_Linux" and also my own templates.

          I feel that it has occurred because I upgraded zabbix from 1.9.9.
          So I will try to clean install 2.0.0rc1.

          Thanks.
          I upgraded from 1.9.9 to 2.0.0rc1 yesterday, and exporting the built int Template_Linux template worked fine for me... it's got to be something specific to your implementation

          Comment

          • higebu
            Junior Member
            • Aug 2011
            • 5

            #6
            This error was because of my environment.
            I upgraded PHP from 5.1.6 to 5.3.3.
            And exporting templates was working.

            My environment is follows.

            OS:
            Code:
            # cat /etc/redhat-release
            CentOS release 5.8 (Final)
            Before upgrading:
            Code:
            # rpm -qa|grep php
            php-ldap-5.1.6-32.el5
            php-pdo-5.1.6-32.el5
            php-mbstring-5.1.6-32.el5
            php-bcmath-5.1.6-32.el5
            php-xml-5.1.6-32.el5
            php-cli-5.1.6-32.el5
            php-5.1.6-32.el5
            php-common-5.1.6-32.el5
            php-gd-5.1.6-32.el5
            php-mysql-5.1.6-32.el5
            After upgrading:
            Code:
            # rpm -qa|grep php
            php53-cli-5.3.3-5.el5
            php53-mbstring-5.3.3-5.el5
            php53-ldap-5.3.3-5.el5
            php53-common-5.3.3-5.el5
            php53-5.3.3-5.el5
            php53-bcmath-5.3.3-5.el5
            php53-xml-5.3.3-5.el5
            php53-mysql-5.3.3-5.el5
            php53-pdo-5.3.3-5.el5
            php53-gd-5.3.3-5.el5
            There is no other difference between before and after.

            Comment

            • ericgearhart
              Senior Member
              • Jan 2009
              • 115

              #7
              Thanks for the follow up, that's good to know... I had Zabbix set up on CentOS 6, which I'm guessing has a newer version of PHP as its default

              Where did you get the php53 packages for Cent 5 from? Did you set up a specific repository?

              Comment

              • higebu
                Junior Member
                • Aug 2011
                • 5

                #8
                Originally posted by ericgearhart
                Thanks for the follow up, that's good to know... I had Zabbix set up on CentOS 6, which I'm guessing has a newer version of PHP as its default

                Where did you get the php53 packages for Cent 5 from? Did you set up a specific repository?
                I got the php53 packages from official CentOS repository.


                Which version of PHP on CentOS 6?

                Comment

                • ahowell
                  Member
                  • Jan 2011
                  • 66

                  #9
                  I'm running 2.0.0rc2 on RHEL 6.2 which has php 5.3.3 and I have no issues.

                  Comment

                  • BrentN
                    Member
                    • Mar 2012
                    • 37

                    #10
                    FWIW I'm using the 2.0 rc1 appliance for testing and I *can not* export templates. I can't import them either. Can't be a problem with my build as I didn't build it. I haven't tweaked anything other than making new templates.

                    I've tried with IE 9 (both standard and compat. modes), Opera, and Firefox. Same results.

                    Comment

                    Working...