<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
    <version>5.0</version>
    <date>2023-11-21T12:32:58Z</date>
    <groups>
        <group>
            <name>Discovered hosts</name>
        </group>
        <group>
            <name>Hypervisors</name>
        </group>
    </groups>
    <hosts>
        <host>
            <host>test</host>
            <name>test</name>
            <groups>
                <group>
                    <name>Hypervisors</name>
                </group>
            </groups>
            <interfaces>
                <interface>
                    <interface_ref>if1</interface_ref>
                </interface>
            </interfaces>
            <items>
                <item>
                    <name>Agent ping</name>
                    <key>agent.ping</key>
                    <delay>10s</delay>
                    <interface_ref>if1</interface_ref>
                </item>
            </items>
            <inventory_mode>DISABLED</inventory_mode>
        </host>
        <host>
            <host>test2</host>
            <name>test2</name>
            <groups>
                <group>
                    <name>Hypervisors</name>
                </group>
            </groups>
            <interfaces>
                <interface>
                    <interface_ref>if1</interface_ref>
                </interface>
            </interfaces>
            <items>
                <item>
                    <name>Agent ping</name>
                    <key>agent.ping</key>
                    <delay>10s</delay>
                    <preprocessing>
                        <step>
                            <type>MULTIPLIER</type>
                            <params>2</params>
                        </step>
                    </preprocessing>
                    <interface_ref>if1</interface_ref>
                </item>
            </items>
            <inventory_mode>DISABLED</inventory_mode>
        </host>
        <host>
            <host>test3</host>
            <name>test3</name>
            <groups>
                <group>
                    <name>Hypervisors</name>
                </group>
            </groups>
            <interfaces>
                <interface>
                    <interface_ref>if1</interface_ref>
                </interface>
            </interfaces>
            <items>
                <item>
                    <name>Agent ping</name>
                    <key>agent.ping</key>
                    <delay>10s</delay>
                    <preprocessing>
                        <step>
                            <type>MULTIPLIER</type>
                            <params>3</params>
                        </step>
                    </preprocessing>
                    <interface_ref>if1</interface_ref>
                </item>
            </items>
            <inventory_mode>DISABLED</inventory_mode>
        </host>
        <host>
            <host>test calculated</host>
            <name>test calculated</name>
            <groups>
                <group>
                    <name>Discovered hosts</name>
                </group>
            </groups>
            <interfaces>
                <interface>
                    <interface_ref>if1</interface_ref>
                </interface>
            </interfaces>
            <items>
                <item>
                    <name>GRPSUM - 0s</name>
                    <type>AGGREGATE</type>
                    <key>grpsum[&quot;Hypervisors&quot;,&quot;agent.ping&quot;,last,0s]</key>
                    <delay>10s</delay>
                </item>
                <item>
                    <name>GRPSUM - 0</name>
                    <type>AGGREGATE</type>
                    <key>grpsum[&quot;Hypervisors&quot;,&quot;agent.ping&quot;,last,0]</key>
                    <delay>10s</delay>
                </item>
            </items>
            <discovery_rules>
                <discovery_rule>
                    <name>DR 1</name>
                    <type>TRAP</type>
                    <key>trap</key>
                    <delay>0</delay>
                    <item_prototypes>
                        <item_prototype>
                            <name>Group sum for group Hypervizors - {#LLD_PERIOD}</name>
                            <type>CALCULATED</type>
                            <key>grpsum.hypervizors.lld.macro[{#LLD_PERIOD}]</key>
                            <value_type>FLOAT</value_type>
                            <params>sum(&quot;grpsum[\&quot;Hypervisors\&quot;,\&quot;agent.ping\&quot;,last,{#LLD_PERIOD}]&quot;,{#LLD_PERIOD})</params>
                        </item_prototype>
                        <item_prototype>
                            <name>GRPSUM - {#LLD_PERIOD} - LLD macro</name>
                            <type>AGGREGATE</type>
                            <key>grpsum[&quot;Hypervisors&quot;,&quot;agent.ping&quot;,last,{#LLD_PERIOD}]</key>
                            <value_type>FLOAT</value_type>
                        </item_prototype>
                        <item_prototype>
                            <name>GRPSUM - {#LLD_PERIOD} - LLD macro - With Space</name>
                            <type>AGGREGATE</type>
                            <key>grpsum[&quot;Hypervisors&quot;,&quot;agent.ping&quot;,last, {#LLD_PERIOD}]</key>
                            <value_type>FLOAT</value_type>
                        </item_prototype>
                    </item_prototypes>
                </discovery_rule>
            </discovery_rules>
            <macros>
                <macro>
                    <macro>{$PERIOD}</macro>
                    <value>1m</value>
                </macro>
            </macros>
            <inventory_mode>DISABLED</inventory_mode>
        </host>
    </hosts>
</zabbix_export>
