Ad Widget

Collapse

Zabbix 1.8.1 Export and Print problems

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • modest
    Member
    • Dec 2009
    • 40

    #1

    Zabbix 1.8.1 Export and Print problems

    Hi,

    I'm having difficulties exporting Templates from Zabbix. When i select items, then Go to Preview mode, everything is show when i press Export button it exports blank file - 0 bytes (Tested on IE 8/Firefox 3.5.6). Have no idea what's is cause of it. Screen shot here: http://i47.tinypic.com/23hm645.jpg

    At the same time I spoted that I can't print the Preview screen, it gives out error show in another screen shot:


    And another error, when I try to print host list (Configuration - Hosts) it gives out error:
    Code:
    Object of class CDiv could not be converted to int[/var/www/html/include/classes/class.cwidget.php:273]

    OS: Centos 5.4, PHP: 5.1.6, MySQL: 5.0.77 , Zabbix: 1.8.1 (Front-end)
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    1. exported xml being 0 bytes - msie.

    ok, ok, joking
    check whether you have php-xml installed (should be shipped with php, but many distributions split it out in a separate package);

    2. preview print error - ouch. please report on the tracker

    3. host list print error - can't reproduce with current trunk
    Zabbix 3.0 Network Monitoring book

    Comment

    • modest
      Member
      • Dec 2009
      • 40

      #3
      php-xml was an issue, it wasn't installed, Thank you!

      You should think about adding php-xml as requirement in documentation.

      How can I get trunk number of installed front-end?

      Comment

      • richlv
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2005
        • 3112

        #4
        svn revision ? depends how you got it. if that's a checkout, just svn info it.
        Zabbix 3.0 Network Monitoring book

        Comment

        • fo@
          Junior Member
          • Jan 2010
          • 4

          #5
          for me its fixed by installing php-xml, svn revision is from Tuesday



          You should think about adding php-xml as requirement in documentation
          Bug Report is here

          Comment

          • modest
            Member
            • Dec 2009
            • 40

            #6
            2. reported it to tracker, you can find it here: https://support.zabbix.com/browse/ZBX-1679

            3. still having this issue even when upgraded to latest version (trunk).

            Error looks like this:

            Comment

            • modest
              Member
              • Dec 2009
              • 40

              #7
              And I have found the bug #4 for Import/Export feature:

              When you try to export for example Templates located on page 1 and 2. You check first one which is located on page 1 then go to 2 and check second template and then you try to export it. Zabbix Export only the Template on last page (last active), in this example it would be Tamplate located on page 2 (it depends on page which you are on, if both templates ar checked no matter in what order it exports only templates from last active page).

              Export of template Preview looks like this:


              In this case Template: Template_Microsoft_SQLServer_2005 was on the first page and no data for it is exported. Template_Tomcat was on second page and all items are exported successfully.

              Comment

              • richlv
                Senior Member
                Zabbix Certified Trainer
                Zabbix Certified SpecialistZabbix Certified Professional
                • Oct 2005
                • 3112

                #8
                please report #4 on the tracker as well
                Zabbix 3.0 Network Monitoring book

                Comment

                • modest
                  Member
                  • Dec 2009
                  • 40

                  #9
                  Reported #4 here: https://support.zabbix.com/browse/ZBX-1691

                  Comment

                  • richlv
                    Senior Member
                    Zabbix Certified Trainer
                    Zabbix Certified SpecialistZabbix Certified Professional
                    • Oct 2005
                    • 3112

                    #10
                    Originally posted by modest
                    thanks. btw, you can attach screenshots to the issues directly
                    Zabbix 3.0 Network Monitoring book

                    Comment

                    • discodivaa
                      Junior Member
                      • Dec 2009
                      • 3

                      #11
                      Originally posted by modest
                      php-xml was an issue, it wasn't installed, Thank you!

                      You should think about adding php-xml as requirement in documentation.

                      How can I get trunk number of installed front-end?
                      Hello, I have simmilar problem. A can export template but file is not complete. It is the same issue (with php-xml)?

                      If yes, which package I need to install. I use Debian 5 Linux, and Zabbix 1.8.1 compiled from SVN source today.

                      Zabbix version 1.8 is exporting correctly

                      I tried export Template_Cisco_PIX, and in file is only this
                      Code:
                      <?xml version="1.0" encoding="UTF-8"?>
                      <zabbix_export version="1.0" date="17.01.10" time="19.02">
                      	<hosts>
                      		<host name="Template_Cisco_PIX">
                      			<proxy_hostid>0</proxy_hostid>
                      			<useip>0</useip>
                      			<dns></dns>
                      			<ip></ip>
                      			<port>10050</port>
                      			<status>3</status>
                      			<useipmi>0</useipmi>
                      			<ipmi_ip></ipmi_ip>
                      			<ipmi_port>623</ipmi_port>
                      			<ipmi_authtype>0</ipmi_authtype>
                      			<ipmi_privilege>2</ipmi_privilege>
                      			<ipmi_username></ipmi_username>
                      			<ipmi_password></ipmi_password>
                      			<groups/>
                      			<triggers/>
                      			<items/>
                      			<templates/>
                      			<graphs/>
                      			<macros/>
                      		</host>
                      	</hosts>
                      	<dependencies/>
                      </zabbix_export>

                      Comment

                      • modest
                        Member
                        • Dec 2009
                        • 40

                        #12
                        Seems that latest Zabbix 1.9 and 1.8.1 revisions have problem with Exporting, same issue here with with Frontends 1.9 (trunk), I can't export Templates (see attachment) again.
                        Attached Files

                        Comment

                        • modest
                          Member
                          • Dec 2009
                          • 40

                          #13
                          Reported this bug here:

                          Comment

                          Working...