Hi,
i did these patches in order to import/export host profiles in addition to host main settings.
export will look like:
<?xml version="1.0"?>
<zabbix_export version="1.0" date="18.03.08" time="12.04">
<hosts>
<host name="a">
<useip>1</useip>
<ip>192.0.0.2</ip>
<port>10050</port>
<hostprofile>
<p_devicetype>this is devicetype field</p_devicetype>
<p_name>this is name field</p_name>
<p_os>this is OS field</p_os>
<p_serialno>this is SerialNo field</p_serialno>
<p_tag>this is tag field</p_tag>
<p_macaddress>this mac address field</p_macaddress>
<p_hardware>this is
hardware
field</p_hardware>
<p_software>this is
software
field</p_software>
<p_contact>here is where
you will put contacts</p_contact>
<p_location>this is location field</p_location>
<p_notes>notes here!!!</p_notes>
</hostprofile> <groups>
</groups>
<items>
<item type="3" key="icmpping" value_type="3">
<description>ping</description>
<delay>30</delay>
<history>90</history>
<trends>365</trends>
<formula>1</formula>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets. 1</snmp_oid>
<snmp_port>161</snmp_port>
</item>
</items>
</host>
</hosts>
</zabbix_export>
Patches are:
defines.inc.php.patch
export.inc.php.patch
import.inc.php.patch
i did these patches in order to import/export host profiles in addition to host main settings.
export will look like:
<?xml version="1.0"?>
<zabbix_export version="1.0" date="18.03.08" time="12.04">
<hosts>
<host name="a">
<useip>1</useip>
<ip>192.0.0.2</ip>
<port>10050</port>
<hostprofile>
<p_devicetype>this is devicetype field</p_devicetype>
<p_name>this is name field</p_name>
<p_os>this is OS field</p_os>
<p_serialno>this is SerialNo field</p_serialno>
<p_tag>this is tag field</p_tag>
<p_macaddress>this mac address field</p_macaddress>
<p_hardware>this is
hardware
field</p_hardware>
<p_software>this is
software
field</p_software>
<p_contact>here is where
you will put contacts</p_contact>
<p_location>this is location field</p_location>
<p_notes>notes here!!!</p_notes>
</hostprofile> <groups>
</groups>
<items>
<item type="3" key="icmpping" value_type="3">
<description>ping</description>
<delay>30</delay>
<history>90</history>
<trends>365</trends>
<formula>1</formula>
<snmp_community>public</snmp_community>
<snmp_oid>interfaces.ifTable.ifEntry.ifInOctets. 1</snmp_oid>
<snmp_port>161</snmp_port>
</item>
</items>
</host>
</hosts>
</zabbix_export>
Patches are:
defines.inc.php.patch
export.inc.php.patch
import.inc.php.patch
Comment