The XML export format

Open the saved XML export in your favorite editor. In this file, you'll see all of the data that this host has, and the file will start like this:

<?xml version="1.0" encoding="UTF-8"?> 
<zabbix_export> 
    <version>4.0</version> 
    <date>2018-12-30T12:22:25Z</date> 
    <groups> 
        <group> 
            <name>Custom templates</name> 
        </group> 
    </groups> 
    <templates> 
        <template> 
            <template>C_Template_Email</template> 

In this case, each template is contained in a <template> block, which in turn has blocks for all of the things attached to that template. The format is simple, and most things should be obvious simply from taking a glance at the XML and maybe sometimes by comparing values in XML with values in the frontend configuration section. An exception might be the values available for each field. Those can often be gleaned from the API documentation, which we'll cover in a moment.

While we look at the exported template, we can see the same information that an exported host would have, including template linkage—that's what the second nested <templates> block denotes.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset