Ad Widget

Collapse

Zabbix 1.8 export/import does not work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mokumura
    Junior Member
    • Dec 2009
    • 1

    #1

    Zabbix 1.8 export/import does not work

    Export and Import Templates on Zabbix 1.8 does not work.
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    importing is a known (and already fixed) problem, exporting should work
    Zabbix 3.0 Network Monitoring book

    Comment

    • paulo.tetsuo
      Junior Member
      Zabbix Certified Specialist
      • Nov 2009
      • 1

      #3
      Originally posted by richlv
      importing is a known (and already fixed) problem, exporting should work
      richlv,
      Occour error in XLM file generated, marked in red.
      <item type="0" key="agent.ping" value_type="3">
      <description>Ping to the server (TCP)</description>
      <ipmi_sensor/>
      <delay>30</delay>
      <history>7</history>
      <trends>365</trends>
      <status>0</status>
      <data_type>0</data_type>
      <units/>
      <multiplier>0</multiplier>
      <delta>0</delta>
      <formula>0</formula>
      <lastlogsize>0</lastlogsize>
      <logtimefmt/>
      <delay_flex/>

      <authtype>0</authtype>
      <username/>
      <password/>
      <publickey/>
      <privatekey/>
      <params/>
      <trapper_hosts/>
      <snmp_community/>
      <snmp_oid/>

      <snmp_port>161</snmp_port>
      <snmpv3_securityname/>
      <snmpv3_securitylevel>0</snmpv3_securitylevel>
      <snmpv3_authpassphrase/>
      <snmpv3_privpassphrase/>

      <applications>
      <application>General</application>
      <application>General</application>
      </applications>
      </item>

      Comment

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

        #4
        why do you think those are errors ?
        now, the duplicated application looks weird, can you check whether you see some duplication in frontend ?
        Zabbix 3.0 Network Monitoring book

        Comment

        • untergeek
          Senior Member
          Zabbix Certified Specialist
          • Jun 2009
          • 512

          #5
          When you say, "fixed," do you mean that we have to download a recent patch, edit something? What?

          Comment

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

            #6
            you could try creating patch from svn, or just wait for 1.8.1
            Zabbix 3.0 Network Monitoring book

            Comment

            • untergeek
              Senior Member
              Zabbix Certified Specialist
              • Jun 2009
              • 512

              #7
              Is the patch just for the frontend?

              What's the URL for SVN checkout?

              Comment

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

                #8
                yes, importing fix should affect frontend only. svn repository can be accessed at svn://svn.zabbix.com
                some initial instructions can be found at http://www.zabbix.com/wiki/contrib/getting_source

                i wouldn't suggest attempting to extract patch unless you are familiar with code repositories, though - simpler solution might be to check out 1.8 branch frontend in a separate directory on the frontend server and try to use that.
                Zabbix 3.0 Network Monitoring book

                Comment

                • laakness
                  Junior Member
                  • Oct 2009
                  • 20

                  #9
                  I tried the latest svn frontend and no longer see the error in the apache log.

                  I am trying to use the zload script for snmp devices so maybe that is another part of my issue. When I do the import it will create a Host but no items.

                  Here is an example xml file I am having issue with:

                  Code:
                  <zabbix_export version="1.0" date="14.12.09" time="14:59">
                  	<hosts>
                  		<host name="TESTINGIMPORT">
                  			<status>3</status>
                  			<item type="4" key="ifIndex.1" value_type="0">
                  				<description>ifIndex.1</description>
                  				<delay>60</delay>
                  				<history>7</history>
                  				<trends>365</trends>
                  				<snmp_community>community</snmp_community>
                  				<snmp_oid>.1.3.6.1.2.1.2.2.1.1.1</snmp_oid>
                  				<snmp_port>161</snmp_port>
                  			</item>
                  		</host>
                  	</hosts>
                  </zabbix_export>
                  I got the zload script off of the wiki.

                  Comment

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

                    #10
                    wrap all <item> elements with <items> block.
                    where did you get such a template without <items>, is it exported by some old zabbix version ?
                    Zabbix 3.0 Network Monitoring book

                    Comment

                    • laakness
                      Junior Member
                      • Oct 2009
                      • 20

                      #11
                      I used this from the Wiki to generate the XML. I've tried the links all over the forum for the 1.1 version but they all point to the old wiki and fail.

                      http://www.zabbix.com/wiki/howto/mon...zload_snmpwalk

                      I'm going to test with the <items></items> and then if that works just modify the perl script to echo the correct tags.
                      Last edited by laakness; 15-12-2009, 21:21.

                      Comment

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

                        #12
                        you might be interested in http://www.zabbix.com/wiki/scripts/gentemplate.pl as well
                        Zabbix 3.0 Network Monitoring book

                        Comment

                        • laakness
                          Junior Member
                          • Oct 2009
                          • 20

                          #13
                          Thanks I'll give that a shot today.

                          Comment

                          • laakness
                            Junior Member
                            • Oct 2009
                            • 20

                            #14
                            That script works well. It's great for generating a template for a specific device as some of the auto-generated graph names have the interface descriptions from that device.

                            Thanks again for the link.

                            Comment

                            • yjeff
                              Junior Member
                              • Aug 2008
                              • 12

                              #15
                              I have the same problem

                              In 1.8 , when you export the template, the XML file created has 0 byte, why?

                              Comment

                              Working...