Содержание

Template APC Smart-UPS Battery

Обзор

Шаблон для мониторинга источников бесперебойного питания APC Smart-UPS по SNMP v1. Помимо технических данных, решил добавить сбор инвентарных (версия прошивки, модель, дату сборки и замены батареи). В шаблоне присутствует 2 группы элементов данных, 16 элементов данных, 7 триггеров и 4 графика. Каждый элемент данных имеет описание.

Данный шаблон адаптирован под Zabbix 2.0.3rc1 и выше, гарантировать его работу на других версиях не могу. На Zabbix 1.8.x и 1.9.x точно придётся исправить макрос {HOST.NAME}, а привязки к инвентаризации там вообще нет.

Элементы данных:

Для корректной работы шаблона, рекомендуется добавить преобразование значений. АдминистрированиеОбщиеПреобразование значений:

Имя Преобразование значений
APC Basic Output Status 1 ⇒ unknown
2 ⇒ onLine
3 ⇒ onBattery
4 ⇒ onSmartBoost
5 ⇒ timedSleeping
6 ⇒ softwareBypass
7 ⇒ off
8 ⇒ rebooting
9 ⇒ switchedBypass
10 ⇒ hardwareFailureBypass
11 ⇒ sleepingUntilPowerReturn
12 ⇒ onSmartTrim
APC Battery Replace Indicator 1 ⇒ noBatteryNeedsReplacing
2 ⇒ batteryNeedsReplacing
APC Battery Replacement Status 1 ⇒ unknown
2 ⇒ notInstalled
3 ⇒ ok
4 ⇒ failed
5 ⇒ highTemperature
6 ⇒ replaceImmediately
7 ⇒ lowCapacity
APC Battery Status 1 ⇒ unknown
2 ⇒ batteryNormal
3 ⇒ batteryLow

Шаблон

++++Код шаблона скрыт под спойлером|

zbx_template_apc_smartups_battery.xml
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
    <version>2.0</version>
    <date>2012-09-26T16:12:39Z</date>
    <groups>
        <group>
            <name>Templates</name>
        </group>
        <group>
            <name>UPS devices</name>
        </group>
    </groups>
    <templates>
        <template>
            <template>Template APC Battery</template>
            <name>Template APC Battery</name>
            <groups>
                <group>
                    <name>Templates</name>
                </group>
                <group>
                    <name>UPS devices</name>
                </group>
            </groups>
            <applications>
                <application>
                    <name>Battery Data</name>
                </application>
                <application>
                    <name>Inventory Data</name>
                </application>
            </applications>
            <items>
                <item>
                    <name>APC: Basic Output Status</name>
                    <type>1</type>
                    <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid>.1.3.6.1.4.1.318.1.1.1.4.1.1.0</snmp_oid>
                    <key>upsBasicOutputStatus</key>
                    <delay>30</delay>
                    <history>7</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts/>
                    <units/>
                    <delta>0</delta>
                    <snmpv3_securityname/>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase/>
                    <snmpv3_privpassphrase/>
                    <formula>1</formula>
                    <delay_flex/>
                    <params/>
                    <ipmi_sensor/>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username/>
                    <password/>
                    <publickey/>
                    <privatekey/>
                    <port/>
                    <description>The current state of the UPS.  If the UPS is unable to determine the state of the UPS this variable is set to unknown(1).</description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Battery Data</name>
                        </application>
                    </applications>
                    <valuemap>
                        <name>APC Basic Output Status</name>
                    </valuemap>
                </item>
                <item>
                    <name>APC: Battery Capacity (%)</name>
                    <type>1</type>
                    <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid>1.3.6.1.4.1.318.1.1.1.2.2.1.0</snmp_oid>
                    <key>upsAdvBatteryCapacity</key>
                    <delay>30</delay>
                    <history>7</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>0</value_type>
                    <allowed_hosts/>
                    <units/>
                    <delta>0</delta>
                    <snmpv3_securityname/>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase/>
                    <snmpv3_privpassphrase/>
                    <formula>1</formula>
                    <delay_flex/>
                    <params/>
                    <ipmi_sensor/>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username/>
                    <password/>
                    <publickey/>
                    <privatekey/>
                    <port/>
                    <description>The remaining battery capacity expressed in percent of full capacity.</description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Battery Data</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>APC: Battery Status</name>
                    <type>1</type>
                    <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid>.1.3.6.1.4.1.318.1.1.1.2.1.1.0</snmp_oid>
                    <key>upsBasicBatteryStatus</key>
                    <delay>30</delay>
                    <history>7</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts/>
                    <units/>
                    <delta>0</delta>
                    <snmpv3_securityname/>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase/>
                    <snmpv3_privpassphrase/>
                    <formula>1</formula>
                    <delay_flex/>
                    <params/>
                    <ipmi_sensor/>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username/>
                    <password/>
                    <publickey/>
                    <privatekey/>
                    <port/>
                    <description>The status of the UPS batteries.  A batteryLow(3) value indicates the UPS will be unable to sustain the current load, and its services will be lost if power is not restored.  The amount of run time in reserve at the time of low battery can be configured by the upsAdvConfigLowBatteryRunTime.</description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Battery Data</name>
                        </application>
                    </applications>
                    <valuemap>
                        <name>APC Battery Status</name>
                    </valuemap>
                </item>
                <item>
                    <name>APC: Battery Temperature</name>
                    <type>1</type>
                    <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid>.1.3.6.1.4.1.318.1.1.1.2.2.2.0</snmp_oid>
                    <key>upsAdvBatteryTemperature</key>
                    <delay>30</delay>
                    <history>7</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts/>
                    <units/>
                    <delta>0</delta>
                    <snmpv3_securityname/>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase/>
                    <snmpv3_privpassphrase/>
                    <formula>1</formula>
                    <delay_flex/>
                    <params/>
                    <ipmi_sensor/>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username/>
                    <password/>
                    <publickey/>
                    <privatekey/>
                    <port/>
                    <description>The current internal UPS temperature expressed in Celsius.</description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Battery Data</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>APC: Date Of Manufacture</name>
                    <type>1</type>
                    <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid>.1.3.6.1.4.1.318.1.1.1.1.2.2.0</snmp_oid>
                    <key>upsAdvIdentDateOfManufacture</key>
                    <delay>40320</delay>
                    <history>7</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>4</value_type>
                    <allowed_hosts/>
                    <units/>
                    <delta>0</delta>
                    <snmpv3_securityname/>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase/>
                    <snmpv3_privpassphrase/>
                    <formula>1</formula>
                    <delay_flex/>
                    <params/>
                    <ipmi_sensor/>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username/>
                    <password/>
                    <publickey/>
                    <privatekey/>
                    <port/>
                    <description>The date when the UPS was manufactured in mm/dd/yy format.</description>
                    <inventory_link>44</inventory_link>
                    <applications>
                        <application>
                            <name>Inventory Data</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>APC: Firmware Revision</name>
                    <type>1</type>
                    <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid>.1.3.6.1.4.1.318.1.1.1.1.2.1.0</snmp_oid>
                    <key>upsAdvIdentFirmwareRevision</key>
                    <delay>40320</delay>
                    <history>7</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>4</value_type>
                    <allowed_hosts/>
                    <units/>
                    <delta>0</delta>
                    <snmpv3_securityname/>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase/>
                    <snmpv3_privpassphrase/>
                    <formula>1</formula>
                    <delay_flex/>
                    <params/>
                    <ipmi_sensor/>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username/>
                    <password/>
                    <publickey/>
                    <privatekey/>
                    <port/>
                    <description>The firmware revision of the UPS system's microprocessor.</description>
                    <inventory_link>7</inventory_link>
                    <applications>
                        <application>
                            <name>Inventory Data</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>APC: Input Voltage</name>
                    <type>1</type>
                    <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid>1.3.6.1.4.1.318.1.1.1.3.2.1.0</snmp_oid>
                    <key>upsAdvInputLineVoltage</key>
                    <delay>30</delay>
                    <history>7</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>0</value_type>
                    <allowed_hosts/>
                    <units/>
                    <delta>0</delta>
                    <snmpv3_securityname/>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase/>
                    <snmpv3_privpassphrase/>
                    <formula>1</formula>
                    <delay_flex/>
                    <params/>
                    <ipmi_sensor/>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username/>
                    <password/>
                    <publickey/>
                    <privatekey/>
                    <port/>
                    <description>The current utility line voltage in VAC.</description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Battery Data</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>APC: Last Battery Replacement</name>
                    <type>1</type>
                    <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid>.1.3.6.1.4.1.318.1.1.1.2.1.3.0</snmp_oid>
                    <key>upsBasicBatteryLastReplaceDate</key>
                    <delay>40320</delay>
                    <history>7</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>4</value_type>
                    <allowed_hosts/>
                    <units/>
                    <delta>0</delta>
                    <snmpv3_securityname/>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase/>
                    <snmpv3_privpassphrase/>
                    <formula>1</formula>
                    <delay_flex/>
                    <params/>
                    <ipmi_sensor/>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username/>
                    <password/>
                    <publickey/>
                    <privatekey/>
                    <port/>
                    <description>The date when the UPS system's batteries were last replaced in mm/dd/yy format.   For Smart-UPS models, this value is originally set in the factory.  When the UPS batteries are replaced, this value should be reset by the administrator.</description>
                    <inventory_link>45</inventory_link>
                    <applications>
                        <application>
                            <name>Inventory Data</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>APC: Load Current (Amps)</name>
                    <type>1</type>
                    <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid>.1.3.6.1.4.1.318.1.1.1.4.2.4.0</snmp_oid>
                    <key>upsAdvOutputCurrent</key>
                    <delay>30</delay>
                    <history>7</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>0</value_type>
                    <allowed_hosts/>
                    <units/>
                    <delta>0</delta>
                    <snmpv3_securityname/>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase/>
                    <snmpv3_privpassphrase/>
                    <formula>1</formula>
                    <delay_flex/>
                    <params/>
                    <ipmi_sensor/>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username/>
                    <password/>
                    <publickey/>
                    <privatekey/>
                    <port/>
                    <description>The current in amperes drawn by the load on the UPS.</description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Battery Data</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>APC: Model</name>
                    <type>1</type>
                    <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid>.1.3.6.1.4.1.318.1.1.1.1.1.1.0</snmp_oid>
                    <key>upsBasicIdentModel</key>
                    <delay>40320</delay>
                    <history>7</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>4</value_type>
                    <allowed_hosts/>
                    <units/>
                    <delta>0</delta>
                    <snmpv3_securityname/>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase/>
                    <snmpv3_privpassphrase/>
                    <formula>1</formula>
                    <delay_flex/>
                    <params/>
                    <ipmi_sensor/>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username/>
                    <password/>
                    <publickey/>
                    <privatekey/>
                    <port/>
                    <description>The UPS model name (e.g. 'APC Smart-UPS 600').</description>
                    <inventory_link>29</inventory_link>
                    <applications>
                        <application>
                            <name>Inventory Data</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>APC: Output Frequency</name>
                    <type>1</type>
                    <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid>1.3.6.1.4.1.318.1.1.1.4.2.2.0</snmp_oid>
                    <key>upsAdvOutputFrequency</key>
                    <delay>30</delay>
                    <history>7</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>0</value_type>
                    <allowed_hosts/>
                    <units/>
                    <delta>0</delta>
                    <snmpv3_securityname/>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase/>
                    <snmpv3_privpassphrase/>
                    <formula>1</formula>
                    <delay_flex/>
                    <params/>
                    <ipmi_sensor/>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username/>
                    <password/>
                    <publickey/>
                    <privatekey/>
                    <port/>
                    <description>The current output frequency of the UPS system in Hz.</description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Battery Data</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>APC: Output Load (%)</name>
                    <type>1</type>
                    <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid>.1.3.6.1.4.1.318.1.1.1.4.2.3.0</snmp_oid>
                    <key>upsAdvOutputLoad</key>
                    <delay>30</delay>
                    <history>7</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>0</value_type>
                    <allowed_hosts/>
                    <units/>
                    <delta>0</delta>
                    <snmpv3_securityname/>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase/>
                    <snmpv3_privpassphrase/>
                    <formula>1</formula>
                    <delay_flex/>
                    <params/>
                    <ipmi_sensor/>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username/>
                    <password/>
                    <publickey/>
                    <privatekey/>
                    <port/>
                    <description>The current UPS load expressed in percent of rated capacity.</description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Battery Data</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>APC: Output Voltage</name>
                    <type>1</type>
                    <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid>1.3.6.1.4.1.318.1.1.1.4.2.1.0</snmp_oid>
                    <key>upsAdvOutputVoltage</key>
                    <delay>30</delay>
                    <history>7</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>0</value_type>
                    <allowed_hosts/>
                    <units/>
                    <delta>0</delta>
                    <snmpv3_securityname/>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase/>
                    <snmpv3_privpassphrase/>
                    <formula>1</formula>
                    <delay_flex/>
                    <params/>
                    <ipmi_sensor/>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username/>
                    <password/>
                    <publickey/>
                    <privatekey/>
                    <port/>
                    <description>The output voltage of the UPS system in VAC.</description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Battery Data</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>APC: Replace Battery Indicator</name>
                    <type>1</type>
                    <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid>.1.3.6.1.4.1.318.1.1.1.2.2.4.0</snmp_oid>
                    <key>upsAdvBatteryReplaceIndicator</key>
                    <delay>600</delay>
                    <history>7</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts/>
                    <units/>
                    <delta>0</delta>
                    <snmpv3_securityname/>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase/>
                    <snmpv3_privpassphrase/>
                    <formula>1</formula>
                    <delay_flex/>
                    <params/>
                    <ipmi_sensor/>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username/>
                    <password/>
                    <publickey/>
                    <privatekey/>
                    <port/>
                    <description>Indicates whether the UPS batteries need replacing.</description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Battery Data</name>
                        </application>
                    </applications>
                    <valuemap>
                        <name>APC Battery Replace Indicator</name>
                    </valuemap>
                </item>
                <item>
                    <name>APC: Run Time Remaining</name>
                    <type>1</type>
                    <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
                    <multiplier>1</multiplier>
                    <snmp_oid>.1.3.6.1.4.1.318.1.1.1.2.2.3.0</snmp_oid>
                    <key>upsAdvRunTimeRemaining</key>
                    <delay>30</delay>
                    <history>7</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts/>
                    <units>s</units>
                    <delta>0</delta>
                    <snmpv3_securityname/>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase/>
                    <snmpv3_privpassphrase/>
                    <formula>0.01</formula>
                    <delay_flex/>
                    <params/>
                    <ipmi_sensor/>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username/>
                    <password/>
                    <publickey/>
                    <privatekey/>
                    <port/>
                    <description>The UPS battery run time remaining before battery exhaustion.</description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Battery Data</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>APC: Time On Battery</name>
                    <type>1</type>
                    <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
                    <multiplier>1</multiplier>
                    <snmp_oid>.1.3.6.1.4.1.318.1.1.1.2.1.2.0</snmp_oid>
                    <key>upsBasicBatteryTimeOnBattery</key>
                    <delay>30</delay>
                    <history>7</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts/>
                    <units>s</units>
                    <delta>0</delta>
                    <snmpv3_securityname/>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase/>
                    <snmpv3_privpassphrase/>
                    <formula>0.01</formula>
                    <delay_flex/>
                    <params/>
                    <ipmi_sensor/>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username/>
                    <password/>
                    <publickey/>
                    <privatekey/>
                    <port/>
                    <description>The elapsed time since the UPS has switched to battery power.</description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Battery Data</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
            </items>
            <discovery_rules/>
            <macros/>
            <templates/>
            <screens/>
        </template>
    </templates>
    <triggers>
        <trigger>
            <expression>{Template APC Battery:upsAdvRunTimeRemaining.max(60)}&lt;300</expression>
            <name>APC: Battery time left: &lt;5 minutes - {HOST.NAME}</name>
            <url/>
            <status>0</status>
            <priority>5</priority>
            <description/>
            <type>0</type>
            <dependencies/>
        </trigger>
        <trigger>
            <expression>{Template APC Battery:upsAdvRunTimeRemaining.max(120)}&lt;600</expression>
            <name>APC: Battery time left: &lt;10 minutes - {HOST.NAME}</name>
            <url/>
            <status>0</status>
            <priority>4</priority>
            <description/>
            <type>0</type>
            <dependencies/>
        </trigger>
        <trigger>
            <expression>{Template APC Battery:upsAdvBatteryTemperature.last(0)}&gt;42</expression>
            <name>APC: High Battery Temperature - {HOST.NAME}</name>
            <url/>
            <status>0</status>
            <priority>5</priority>
            <description/>
            <type>0</type>
            <dependencies/>
        </trigger>
        <trigger>
            <expression>{Template APC Battery:upsBasicBatteryStatus.last(0)}#2</expression>
            <name>APC: Loss of Input Power - {HOST.NAME}</name>
            <url/>
            <status>0</status>
            <priority>5</priority>
            <description/>
            <type>0</type>
            <dependencies/>
        </trigger>
        <trigger>
            <expression>{Template APC Battery:upsAdvOutputLoad.last(0)}&gt;90</expression>
            <name>APC: Output Load Too High - {HOST.NAME}</name>
            <url/>
            <status>0</status>
            <priority>2</priority>
            <description/>
            <type>0</type>
            <dependencies/>
        </trigger>
        <trigger>
            <expression>{Template APC Battery:upsAdvBatteryReplaceIndicator.last(0)}#1</expression>
            <name>APC: Replace Battery - {HOST.NAME}</name>
            <url/>
            <status>0</status>
            <priority>5</priority>
            <description/>
            <type>0</type>
            <dependencies/>
        </trigger>
        <trigger>
            <expression>{Template APC Battery:upsBasicOutputStatus.last(0)}=3</expression>
            <name>APC: Running on battery - {HOST.NAME}</name>
            <url/>
            <status>0</status>
            <priority>4</priority>
            <description/>
            <type>0</type>
            <dependencies/>
        </trigger>
    </triggers>
    <graphs>
        <graph>
            <name>Battery Status</name>
            <width>900</width>
            <height>200</height>
            <yaxismin>0.0000</yaxismin>
            <yaxismax>100.0000</yaxismax>
            <show_work_period>1</show_work_period>
            <show_triggers>1</show_triggers>
            <type>0</type>
            <show_legend>1</show_legend>
            <show_3d>0</show_3d>
            <percent_left>0.0000</percent_left>
            <percent_right>0.0000</percent_right>
            <ymin_type_1>1</ymin_type_1>
            <ymax_type_1>0</ymax_type_1>
            <ymin_item_1>0</ymin_item_1>
            <ymax_item_1>0</ymax_item_1>
            <graph_items>
                <graph_item>
                    <sortorder>0</sortorder>
                    <drawtype>0</drawtype>
                    <color>C80000</color>
                    <yaxisside>0</yaxisside>
                    <calc_fnc>2</calc_fnc>
                    <type>0</type>
                    <item>
                        <host>Template APC Battery</host>
                        <key>upsBasicBatteryStatus</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>1</sortorder>
                    <drawtype>0</drawtype>
                    <color>00C800</color>
                    <yaxisside>0</yaxisside>
                    <calc_fnc>2</calc_fnc>
                    <type>0</type>
                    <item>
                        <host>Template APC Battery</host>
                        <key>upsAdvBatteryReplaceIndicator</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
        <graph>
            <name>Load</name>
            <width>900</width>
            <height>200</height>
            <yaxismin>0.0000</yaxismin>
            <yaxismax>100.0000</yaxismax>
            <show_work_period>1</show_work_period>
            <show_triggers>1</show_triggers>
            <type>0</type>
            <show_legend>1</show_legend>
            <show_3d>0</show_3d>
            <percent_left>0.0000</percent_left>
            <percent_right>0.0000</percent_right>
            <ymin_type_1>0</ymin_type_1>
            <ymax_type_1>0</ymax_type_1>
            <ymin_item_1>0</ymin_item_1>
            <ymax_item_1>0</ymax_item_1>
            <graph_items>
                <graph_item>
                    <sortorder>0</sortorder>
                    <drawtype>0</drawtype>
                    <color>C80000</color>
                    <yaxisside>0</yaxisside>
                    <calc_fnc>2</calc_fnc>
                    <type>0</type>
                    <item>
                        <host>Template APC Battery</host>
                        <key>upsAdvOutputCurrent</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>1</sortorder>
                    <drawtype>0</drawtype>
                    <color>00C800</color>
                    <yaxisside>0</yaxisside>
                    <calc_fnc>2</calc_fnc>
                    <type>0</type>
                    <item>
                        <host>Template APC Battery</host>
                        <key>upsAdvOutputLoad</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
        <graph>
            <name>Temperature</name>
            <width>900</width>
            <height>200</height>
            <yaxismin>0.0000</yaxismin>
            <yaxismax>100.0000</yaxismax>
            <show_work_period>1</show_work_period>
            <show_triggers>1</show_triggers>
            <type>0</type>
            <show_legend>1</show_legend>
            <show_3d>0</show_3d>
            <percent_left>0.0000</percent_left>
            <percent_right>0.0000</percent_right>
            <ymin_type_1>1</ymin_type_1>
            <ymax_type_1>0</ymax_type_1>
            <ymin_item_1>0</ymin_item_1>
            <ymax_item_1>0</ymax_item_1>
            <graph_items>
                <graph_item>
                    <sortorder>0</sortorder>
                    <drawtype>5</drawtype>
                    <color>C80000</color>
                    <yaxisside>0</yaxisside>
                    <calc_fnc>2</calc_fnc>
                    <type>0</type>
                    <item>
                        <host>Template APC Battery</host>
                        <key>upsAdvBatteryTemperature</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
        <graph>
            <name>Voltage</name>
            <width>900</width>
            <height>200</height>
            <yaxismin>0.0000</yaxismin>
            <yaxismax>100.0000</yaxismax>
            <show_work_period>1</show_work_period>
            <show_triggers>1</show_triggers>
            <type>0</type>
            <show_legend>1</show_legend>
            <show_3d>0</show_3d>
            <percent_left>0.0000</percent_left>
            <percent_right>0.0000</percent_right>
            <ymin_type_1>0</ymin_type_1>
            <ymax_type_1>0</ymax_type_1>
            <ymin_item_1>0</ymin_item_1>
            <ymax_item_1>0</ymax_item_1>
            <graph_items>
                <graph_item>
                    <sortorder>0</sortorder>
                    <drawtype>0</drawtype>
                    <color>C80000</color>
                    <yaxisside>0</yaxisside>
                    <calc_fnc>2</calc_fnc>
                    <type>0</type>
                    <item>
                        <host>Template APC Battery</host>
                        <key>upsAdvOutputVoltage</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>1</sortorder>
                    <drawtype>0</drawtype>
                    <color>00C800</color>
                    <yaxisside>0</yaxisside>
                    <calc_fnc>2</calc_fnc>
                    <type>0</type>
                    <item>
                        <host>Template APC Battery</host>
                        <key>upsAdvInputLineVoltage</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
    </graphs>
</zabbix_export>

++++