Export and Import Templates on Zabbix 1.8 does not work.
Ad Widget
Collapse
Zabbix 1.8 export/import does not work
Collapse
X
-
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
-
why do you think those are errors ?
now, the duplicated application looks weird, can you check whether you see some duplication in frontend ?Comment
-
Comment
-
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.Comment
-
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:
I got the zload script off of the wiki.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>
Comment
-
wrap all <item> elements with <items> block.
where did you get such a template without <items>, is it exported by some old zabbix version ?Comment
-
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
-
Comment