<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
    <version>5.0</version>
    <date>2020-12-10T20:04:20Z</date>
    <groups>
        <group>
            <name>Templates</name>
        </group>
    </groups>
    <templates>
        <template>
            <template>Power Supply S6700 SNMP</template>
            <name>Power Supply S6700 SNMP</name>
            <groups>
                <group>
                    <name>Templates</name>
                </group>
            </groups>
            <applications>
                <application>
                    <name>Power Supply</name>
                </application>
            </applications>
            <discovery_rules>
                <discovery_rule>
                    <name>Power Supply Status</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#ENT_NAME},1.3.6.1.2.1.47.1.1.1.1.7]</snmp_oid>
                    <key>hwPowerSupplyStatus</key>
                    <delay>1d</delay>
                    <filter>
                        <evaltype>OR</evaltype>
                        <conditions>
                            <condition>
                                <macro>{#ENT_NAME}</macro>
                                <value>.*PWR</value>
                                <formulaid>A</formulaid>
                            </condition>
                        </conditions>
                    </filter>
                    <item_prototypes>
                        <item_prototype>
                            <name>Status Power Supply</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.4.1.2011.5.25.31.1.1.1.1.2.{#SNMPINDEX}</snmp_oid>
                            <key>Status[hwPowerSupplyStatus.{#ENT_NAME}]</key>
                            <delay>3m</delay>
                            <applications>
                                <application>
                                    <name>Power Supply</name>
                                </application>
                            </applications>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <expression>{last()}=2</expression>
                                    <recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
                                    <recovery_expression>{last()}=3</recovery_expression>
                                    <name>Problema no Slot {#ENT_NAME}</name>
                                    <priority>HIGH</priority>
                                    <manual_close>YES</manual_close>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                    </item_prototypes>
                </discovery_rule>
            </discovery_rules>
        </template>
    </templates>
</zabbix_export>
