<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
    <version>5.0</version>
    <date>2021-08-26T11:31:44Z</date>
    <groups>
        <group>
            <name>Templates</name>
        </group>
    </groups>
    <templates>
        <template>
            <template>APC Rack ATS</template>
            <name>APC Rack ATS</name>
            <description>APC Rack Automatic Transfer Switches (rack ATS) provide reliable, redundant rack mount power to single-corded equipment. The rack ATS has dual input power cords supplying power to the connected load. If the primary power source becomes unavailable, the rack ATS will seamlessly source power from the secondary source without interrupting critical loads.</description>
            <templates>
                <template>
                    <name>Template Module Generic SNMP</name>
                </template>
                <template>
                    <name>Template Module Interfaces SNMP</name>
                </template>
            </templates>
            <groups>
                <group>
                    <name>Templates</name>
                </group>
            </groups>
            <applications>
                <application>
                    <name>Hardware info</name>
                </application>
                <application>
                    <name>Power sources</name>
                </application>
            </applications>
            <items>
                <item>
                    <name>Alarm Power Limit</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>SNMPv2-SMI::enterprises.318.1.1.8.4.6.0</snmp_oid>
                    <key>atsConfigCurrentLimit</key>
                    <delay>1d</delay>
                    <trends>180d</trends>
                    <units>A</units>
                    <description>The threshold (in Amps) at which an Over Current Alarm will be generated</description>
                    <applications>
                        <application>
                            <name>Power sources</name>
                        </application>
                    </applications>
                </item>
                <item>
                    <name>Name A source</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>SNMPv2-SMI::enterprises.318.1.1.8.5.3.2.1.6.1</snmp_oid>
                    <key>atsInputNameA</key>
                    <delay>1d</delay>
                    <history>7d</history>
                    <trends>0</trends>
                    <value_type>CHAR</value_type>
                    <description>A name given to a particular input.</description>
                    <applications>
                        <application>
                            <name>General</name>
                        </application>
                    </applications>
                </item>
                <item>
                    <name>Name B source</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>SNMPv2-SMI::enterprises.318.1.1.8.5.3.2.1.6.2</snmp_oid>
                    <key>atsInputNameB</key>
                    <delay>1d</delay>
                    <history>7d</history>
                    <trends>0</trends>
                    <value_type>CHAR</value_type>
                    <description>A name given to a particular input.</description>
                    <applications>
                        <application>
                            <name>General</name>
                        </application>
                    </applications>
                </item>
                <item>
                    <name>Current output load (Amperes)</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>SNMPv2-SMI::enterprises.318.1.1.8.5.4.3.1.4.1.1.1</snmp_oid>
                    <key>atsOutputCurrent</key>
                    <delay>5m</delay>
                    <trends>180d</trends>
                    <value_type>FLOAT</value_type>
                    <units>A</units>
                    <description>The output current in 0.1 amperes drawn by the load on the ATS, or -1 if it's unsupported by this ATS.</description>
                    <applications>
                        <application>
                            <name>Power sources</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>MULTIPLIER</type>
                            <params>0.1</params>
                        </step>
                    </preprocessing>
                    <triggers>
                        <trigger>
                            <expression>{last()}&gt;14</expression>
                            <name>Output Power is high &gt; 14 A</name>
                            <priority>WARNING</priority>
                            <tags>
                                <tag>
                                    <tag>M1</tag>
                                </tag>
                                <tag>
                                    <tag>power</tag>
                                </tag>
                            </tags>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <name>Output Voltage</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>SNMPv2-SMI::enterprises.318.1.1.8.5.4.3.1.3.1.1.1</snmp_oid>
                    <key>atsOutputVoltage</key>
                    <delay>5m</delay>
                    <trends>180d</trends>
                    <units>V</units>
                    <applications>
                        <application>
                            <name>Power sources</name>
                        </application>
                    </applications>
                </item>
                <item>
                    <name>Front panel lock status</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>SNMPv2-SMI::enterprises.318.1.1.8.5.1.11.0</snmp_oid>
                    <key>atsStatusFrontPanel</key>
                    <delay>1h</delay>
                    <trends>180d</trends>
                    <description>This variable returns the status of the Source A.</description>
                    <applications>
                        <application>
                            <name>General</name>
                        </application>
                    </applications>
                    <valuemap>
                        <name>APC ATS  panel lock status</name>
                    </valuemap>
                </item>
                <item>
                    <name>Hardware status</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>SNMPv2-SMI::enterprises.318.1.1.8.5.1.16.0</snmp_oid>
                    <key>atsStatusHardwareStatus</key>
                    <trends>180d</trends>
                    <description>This variable returns the status of display board hardware.</description>
                    <applications>
                        <application>
                            <name>General</name>
                        </application>
                        <application>
                            <name>Hardware info</name>
                        </application>
                    </applications>
                    <valuemap>
                        <name>APC ATS Source statuses</name>
                    </valuemap>
                    <triggers>
                        <trigger>
                            <expression>{last(#3)}=1 or {nodata(5m)}=1</expression>
                            <name>{HOST.NAME}: Hardware state failed (HW)</name>
                            <priority>AVERAGE</priority>
                            <description>That means there has been board hardware failure, or missing data during last 5 minutes.</description>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <name>Switch state status</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>SNMPv2-SMI::enterprises.318.1.1.8.5.1.4.0</snmp_oid>
                    <key>atsStatusOverCurrentState</key>
                    <trends>180d</trends>
                    <description>This variable returns the output current state of the ATS.&#13;
atsOverCurrent(1) indicates that the ATS has exceeded the output&#13;
current threshold and will not allow a switch over to the alternate power&#13;
source if the current source fails.&#13;
atsCurrentOK(2) indicates that the output current is below the&#13;
output current threshold.&#13;
This OID returns the value of the OID atsOutputPhaseState for the 1U ATS and&#13;
OID atsOutputBankState for the 2U ATS.</description>
                    <applications>
                        <application>
                            <name>Power sources</name>
                        </application>
                    </applications>
                    <valuemap>
                        <name>APC ATS  Switch over current state</name>
                    </valuemap>
                </item>
                <item>
                    <name>Power Redundancy state</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>SNMPv2-SMI::enterprises.318.1.1.8.5.1.3.0</snmp_oid>
                    <key>atsStatusRedundancyState</key>
                    <trends>180d</trends>
                    <description>This variable returns the current redundancy state of the ATS atsRedundancyLost(1) indicates that the ATS is unable to&#13;
switch over to the alternate power source if the current source fails.&#13;
atsFullyRedundant(2) indicates that the ATS will switch over to &#13;
the alternate power source if the current source fails</description>
                    <applications>
                        <application>
                            <name>Power sources</name>
                        </application>
                    </applications>
                    <valuemap>
                        <name>APC ATS Redundancy state</name>
                    </valuemap>
                    <triggers>
                        <trigger>
                            <expression>{last(5m)}=1</expression>
                            <name>{HOST.NAME}: Power redundancy lost (HW)</name>
                            <priority>AVERAGE</priority>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <name>Current selected source</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>SNMPv2-SMI::enterprises.318.1.1.8.5.1.2.0</snmp_oid>
                    <key>atsStatusSelectedSource.0</key>
                    <trends>180d</trends>
                    <description>This variable returns the current source of power.</description>
                    <applications>
                        <application>
                            <name>Power sources</name>
                        </application>
                    </applications>
                    <valuemap>
                        <name>APC ATS Source</name>
                    </valuemap>
                    <triggers>
                        <trigger>
                            <expression>{diff(0)}=1</expression>
                            <name>{HOST.NAME}: power source was changed (HW)</name>
                            <priority>INFO</priority>
                            <description>Power source was chenged, please check all power sources</description>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <name>A Source status</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>SNMPv2-SMI::enterprises.318.1.1.8.5.1.12.0</snmp_oid>
                    <key>atsStatusSourceAStatus</key>
                    <trends>180d</trends>
                    <description>This variable returns the status of the Source A.</description>
                    <applications>
                        <application>
                            <name>Power sources</name>
                        </application>
                    </applications>
                    <valuemap>
                        <name>APC ATS Source statuses</name>
                    </valuemap>
                </item>
                <item>
                    <name>B Source status</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>SNMPv2-SMI::enterprises.318.1.1.8.5.1.13.0</snmp_oid>
                    <key>atsStatusSourceBStatus</key>
                    <trends>180d</trends>
                    <description>This variable returns the status of the Source B.</description>
                    <applications>
                        <application>
                            <name>Power sources</name>
                        </application>
                    </applications>
                    <valuemap>
                        <name>APC ATS Source statuses</name>
                    </valuemap>
                </item>
            </items>
        </template>
    </templates>
    <graphs>
        <graph>
            <name>Current output load</name>
            <graph_items>
                <graph_item>
                    <drawtype>GRADIENT_LINE</drawtype>
                    <color>1A7C11</color>
                    <item>
                        <host>APC Rack ATS</host>
                        <key>atsOutputCurrent</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
        <graph>
            <name>Output Voltage</name>
            <graph_items>
                <graph_item>
                    <drawtype>GRADIENT_LINE</drawtype>
                    <color>2774A4</color>
                    <calc_fnc>ALL</calc_fnc>
                    <item>
                        <host>APC Rack ATS</host>
                        <key>atsOutputVoltage</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
    </graphs>
    <value_maps>
        <value_map>
            <name>APC ATS  panel lock status</name>
            <mappings>
                <mapping>
                    <value>1</value>
                    <newvalue>locked</newvalue>
                </mapping>
                <mapping>
                    <value>2</value>
                    <newvalue>unlocked</newvalue>
                </mapping>
            </mappings>
        </value_map>
        <value_map>
            <name>APC ATS Redundancy state</name>
            <mappings>
                <mapping>
                    <value>1</value>
                    <newvalue>Redundancy Lost</newvalue>
                </mapping>
                <mapping>
                    <value>2</value>
                    <newvalue>Fully redundant</newvalue>
                </mapping>
            </mappings>
        </value_map>
        <value_map>
            <name>APC ATS Source</name>
            <mappings>
                <mapping>
                    <value>1</value>
                    <newvalue>Source A</newvalue>
                </mapping>
                <mapping>
                    <value>2</value>
                    <newvalue>Source B</newvalue>
                </mapping>
            </mappings>
        </value_map>
        <value_map>
            <name>APC ATS Source statuses</name>
            <mappings>
                <mapping>
                    <value>1</value>
                    <newvalue>fail</newvalue>
                </mapping>
                <mapping>
                    <value>2</value>
                    <newvalue>ok</newvalue>
                </mapping>
            </mappings>
        </value_map>
        <value_map>
            <name>APC ATS  Switch over current state</name>
            <mappings>
                <mapping>
                    <value>1</value>
                    <newvalue>OverCurrent</newvalue>
                </mapping>
                <mapping>
                    <value>2</value>
                    <newvalue>CurrentOK</newvalue>
                </mapping>
            </mappings>
        </value_map>
    </value_maps>
</zabbix_export>
