zabbix_export: version: '5.4' date: '2021-11-21T22:01:26Z' groups: - uuid: cdce88f4196c45bfa225b57ddba7445e name: 'Halley template' templates: - uuid: cc56148bff21420298c5f49a748ab85e template: 'HW UPS Legrand CS121' name: 'HW UPS Legrand CS121' description: | ## Overview Template for monitoring UPS Legrand CS 121 (all models) with explanations and advices. The mibs are there: The content of template: **5 Applications**: General, Health, Input, Output, Battery **18 Items:** Input voltage, Battery Status ,Estimated minutes remaining if no power , Bypass Voltage Alarms present on {HOST.NAME}, Bypass Current, Bypass Power Input line bads, Output Power, Output load in percent Seconds on battery, Output Voltage Estimated charge remaining, Battery voltage Battery temperature, Device Version Device Name, Device Model 13 Triggers and 4 Graphs The template use SNMP agent v2. Assure that you set the community in template macros. Assure also that in Administration -> General -> Value mapping you have under APC Battery Status next values 1 ⇒ unknown 2 ⇒ batteryNormal 3 ⇒ batteryLow 4 ⇒ batteryDepleted [Send me](mailto:priechodsky.dusan@gmail.com) what template you need, or if this template helped you, [you can buy me one coffee](https://ko-fi.com/priechodskydusan) :) Upgraded template from Tudor Ticau ## Author Dusan Priechodsky groups: - name: 'Halley template' items: - uuid: 0305ea153c7049e1993836ec82b733a4 name: 'Alarms present on {HOST.NAME}' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.33.1.6.1 key: upsAlarmsPresent delay: '30' description: 'The present number of active alarm conditions.' tags: - tag: Application value: Health triggers: - uuid: 890a8c6b0a614df1bec08c6a75245e41 expression: 'last(/HW UPS Legrand CS121/upsAlarmsPresent)<>0' name: 'UPS Alarm Present' priority: WARNING description: 'On your {HOST.NAME} are activated {ITEM.VALUE} alarms. Please check UPS - usually UPS must produce some sounds now' manual_close: 'YES' tags: - tag: Value value: '{ITEM.VALUE}' - uuid: a475023165af4a91a2d927b33d02b458 name: 'Battery Status' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.33.1.2.1 key: upsBatteryStatus delay: '30' description: 'The indication of the capacity remaining in the UPS system''s batteries. A value of batteryNormal indicates that the remaining run-time is greater than upsConfigLowBattTime. A value of batteryLow indicates that the remaining battery run-time is less than or equal to upsConfigLowBattTime. A value of batteryDepleted indicates that the UPS will be unable to sustain the present load when and if the utility power is lost (including the possibility that the utility power is currently absent and the UPS is unable to sustain the output).' valuemap: name: 'APC Battery Status' tags: - tag: Application value: Battery triggers: - uuid: 3dc6be38c08e4f6d917582b81cf4d544 expression: 'last(/HW UPS Legrand CS121/upsBatteryStatus)<>2' name: 'Battery Status on {HOST.NAME} is {ITEM.VALUE}' priority: HIGH description: 'Battery Status on {HOST.NAME} is {ITEM.VALUE}' manual_close: 'YES' tags: - tag: Value value: '{ITEM.VALUE}' - uuid: a8de8b27e5c2402582d43fa61c9a3864 name: 'Battery temperature' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.33.1.2.7 key: upsBatteryTemperature delay: '60' units: °C description: 'The ambient temperature at or near the UPS Battery casing.' tags: - tag: Application value: Battery triggers: - uuid: 07b8d904cda44026a108f343b519fac6 expression: 'last(/HW UPS Legrand CS121/upsBatteryTemperature)>45' name: 'Battery temperature High' priority: HIGH manual_close: 'YES' tags: - tag: Value value: '{ITEM.VALUE}' - uuid: 9d3fede74ec34ef192484636086b67d3 expression: 'last(/HW UPS Legrand CS121/upsBatteryTemperature)>35 and last(/HW UPS Legrand CS121/upsBatteryTemperature)<45' name: 'Battery temperature Warning' priority: WARNING manual_close: 'YES' tags: - tag: Value value: '{ITEM.VALUE}' - uuid: ae87684e6a1244acbee46bbff08507e2 name: 'Battery voltage' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.33.1.2.5 key: upsBatteryVoltage delay: '60' units: V description: 'The magnitude of the present battery voltage.' preprocessing: - type: MULTIPLIER parameters: - '0.1' tags: - tag: Application value: Battery - uuid: 2c65941080174cf5a05f05b83be4db97 name: 'Estimated charge remaining' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.33.1.2.4 key: upsEstimatedChargeRemaining delay: '60' units: '%' description: 'An estimate of the battery charge remaining expressed as a percent of full charge.' tags: - tag: Application value: Battery triggers: - uuid: 790076e67da04180a9d8aa4ab6c53753 expression: 'last(/HW UPS Legrand CS121/upsEstimatedChargeRemaining)<20' name: 'Battery Charge Depleated' priority: HIGH manual_close: 'YES' tags: - tag: Value value: '{ITEM.VALUE}' - uuid: 987460f0d375488b9e480f1b2c0fb3ed expression: 'last(/HW UPS Legrand CS121/upsEstimatedChargeRemaining)<80' name: 'Battery Charge Less Than 80%' priority: WARNING manual_close: 'YES' tags: - tag: Value value: '{ITEM.VALUE}' - uuid: 7326b4a3dac042a1a9873b3872603f50 name: 'Estimated minutes remaining if no power' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.33.1.2.3 key: upsEstimatedMinutesRemaining delay: '30' units: m description: 'An estimate of the time to battery charge depletion under the present load conditions if the utility power is off and remains off, or if it were to be lost and remain off.' tags: - tag: Application value: Battery triggers: - uuid: 67848735bdd84334ae004562755b41dd expression: 'last(/HW UPS Legrand CS121/upsEstimatedMinutesRemaining)<10' name: 'Battery Time Remaining Below 10 Minutes' priority: WARNING manual_close: 'YES' tags: - tag: Value value: '{ITEM.VALUE}' - uuid: 7d76265fe46248dba6d83addc2c43da6 name: 'Device Version' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.33.1.1.4 key: upsIdentAgentSoftwareVersion delay: '600' trends: '0' value_type: CHAR description: 'The UPS agent software version.' inventory_link: MODEL tags: - tag: Application value: General - uuid: 758259634dac46bfb13b15382252d53f name: 'Device Location' type: SNMP_AGENT snmp_oid: 1.3.6.1.2.1.1.6.0 key: upsIdentLocation delay: '600' trends: '0' value_type: CHAR description: 'The name of the UPS manufacturer.' inventory_link: LOCATION tags: - tag: Application value: General - uuid: 433c53f9de494197a2d1553d98a25325 name: 'Device Vendor' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.33.1.1.1 key: upsIdentManufacturer delay: '600' trends: '0' value_type: CHAR description: 'The name of the UPS manufacturer.' inventory_link: VENDOR tags: - tag: Application value: General - uuid: 822c25ce0c514058ae42b38cff780f57 name: 'Device Model' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.33.1.1.2 key: upsIdentModel delay: '86400' trends: '0' value_type: CHAR description: 'The UPS Model designation.' inventory_link: TYPE tags: - tag: Application value: General - uuid: 90c5eef2a9d14d2088792b8ee7cf2081 name: 'Device Name' type: SNMP_AGENT snmp_oid: 1.3.6.1.2.1.1.5.0 key: upsIdentName delay: '600' trends: '0' value_type: CHAR description: 'The name of the UPS manufacturer.' tags: - tag: Application value: General - uuid: 7cd44fcfbff94b5b83e1a2214620eeac name: 'Device Uptime' type: SNMP_AGENT snmp_oid: 1.3.6.1.2.1.1.3.0 key: upsIdentUptime units: uptime description: 'The name of the UPS manufacturer.' inventory_link: DEPLOYMENT_STATUS preprocessing: - type: MULTIPLIER parameters: - '0.01' tags: - tag: Application value: General triggers: - uuid: 841cbf58572a432685f15e6234c15ad9 expression: 'last(/HW UPS Legrand CS121/upsIdentUptime)<300' name: 'Device rebooted' priority: INFO manual_close: 'YES' - uuid: f3cb719203044b0c9266c2f53feb3424 name: 'Input line bads' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.33.1.3.1 key: upsInputLineBads delay: '30' description: 'A count of the number of times the input entered an out-of-tolerance condition as defined by the manufacturer. This count is incremented by one each time the input transitions from zero out-of-tolerance lines to one or more input lines out-of-tolerance. A big number show problems with the electricity power where your UPS is connected' tags: - tag: Application value: Input triggers: - uuid: 18446eceb4a94eac831acaacfa799e73 expression: 'change(/HW UPS Legrand CS121/upsInputLineBads)<>0' name: 'UPS Input Power Line Bad' priority: HIGH description: | Your UPS in 1 minute switch the input transitions from zero out-of-tolerance lines to one or more input lines out-of-tolerance. In other words: you have line power problems (bad frequency, bad voltage - someone near you use a lot of electricity power) manual_close: 'YES' tags: - tag: Value value: '{ITEM.VALUE}' - uuid: 53dd35d408f14dd2bf4ae3c3433ae32b name: 'Seconds on battery' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.33.1.2.2 key: upsSecondsOnBattery delay: '30' units: s description: 'If the unit is on battery power, the elapsed time since the UPS last switched to battery power, or the time since the network management subsystem was last restarted, whichever is less. Zero shall be returned if the unit is not on battery power.' tags: - tag: Application value: Battery triggers: - uuid: 0675fbed4c514bbd90c9b6154d4b9d9e expression: 'last(/HW UPS Legrand CS121/upsSecondsOnBattery)>30' name: 'UPS Running On Battery' priority: HIGH description: 'The UPS {HOST.NAME} is running on battery. Please check the battery power' manual_close: 'YES' tags: - tag: Value value: '{ITEM.VALUE}' discovery_rules: - uuid: a2b54a2e3fd945cc86f2e6b7a9813a49 name: 'UPS Bypass Phases' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.33.1.5.3.1.1]' key: upsBypassCurrent delay: 1h item_prototypes: - uuid: 3e7184395fac459796434985aa0f7c36 name: 'Bypass Current Phase {#SNMPINDEX}' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.33.1.5.3.1.3.{#SNMPINDEX}' key: 'upsBypassCurrent.[{#SNMPINDEX}]' units: A tags: - tag: Application value: Bypass - uuid: f5c4587a554c46bc994584aa19c99741 name: 'Bypass Power Phase {#SNMPINDEX}' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.33.1.5.3.1.4.{#SNMPINDEX}' key: 'upsBypassPower.[{#SNMPINDEX}]' units: W tags: - tag: Application value: Bypass - uuid: a0fe65b361ea420d81e239aa16b1df08 name: 'Bypass Voltage Phase {#SNMPINDEX}' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.33.1.5.3.1.2.{#SNMPINDEX}' key: 'upsBypassVoltage.[{#SNMPINDEX}]' units: V tags: - tag: Application value: Bypass trigger_prototypes: - uuid: 0435eac4a2734902b1516489baa0f097 expression: 'last(/HW UPS Legrand CS121/upsBypassCurrent.[{#SNMPINDEX}])<>0 or last(/HW UPS Legrand CS121/upsBypassPower.[{#SNMPINDEX}])<>0' name: 'UPS Bypassed phase {#SNMPINDEX}' priority: WARNING manual_close: 'YES' tags: - tag: Value value: '{ITEM.VALUE}' graph_prototypes: - uuid: e481fc86c2c74a2a917aea6bb7044be4 name: 'UPS Bypass Phase {#SNMPINDEX}' graph_items: - color: F63100 item: host: 'HW UPS Legrand CS121' key: 'upsBypassCurrent.[{#SNMPINDEX}]' - sortorder: '1' color: 2774A4 item: host: 'HW UPS Legrand CS121' key: 'upsBypassPower.[{#SNMPINDEX}]' - sortorder: '2' color: F7941D item: host: 'HW UPS Legrand CS121' key: 'upsBypassVoltage.[{#SNMPINDEX}]' - uuid: ff67389411fd4f04aed2ca27613bd61c name: 'UPS Input Phases' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.33.1.3.3.1.1]' key: upsInputFrequency delay: 1h item_prototypes: - uuid: 83437dab699c4977b3904cc02b7f9a30 name: 'Input current Phase {#SNMPINDEX}' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.33.1.3.3.1.4.{#SNMPINDEX}' key: 'upsInputCurrent.[{#SNMPINDEX}]' value_type: FLOAT units: Arms preprocessing: - type: MULTIPLIER parameters: - '0.1' tags: - tag: Application value: Input - uuid: d06d02c3c9fb44a88b661759ee3bfdc2 name: 'Input Frequency phase {#SNMPINDEX}' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.33.1.3.3.1.2.{#SNMPINDEX}' key: 'upsInputFrequency.[{#SNMPINDEX}]' value_type: FLOAT units: Hz preprocessing: - type: JAVASCRIPT parameters: - 'return value / 10' tags: - tag: Application value: Input trigger_prototypes: - uuid: b5670ae5b57d44238f45d0cd70177edb expression: 'last(/HW UPS Legrand CS121/upsInputFrequency.[{#SNMPINDEX}])>53 or last(/HW UPS Legrand CS121/upsInputFrequency.[{#SNMPINDEX}])<47' name: 'UPS Input frequency outside nominal {#SNMPINDEX}' priority: WARNING manual_close: 'YES' tags: - tag: Value value: '{ITEM.VALUE}' - uuid: 3e859f44781a4a7ca59fd3585d1be8d9 name: 'Input power Phase {#SNMPINDEX}' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.33.1.3.3.1.5.{#SNMPINDEX}' key: 'upsInputPower.[{#SNMPINDEX}]' units: W tags: - tag: Application value: Input - uuid: 350403663fc04cfd99483f1ef281b6e8 name: 'Input voltage Phase {#SNMPINDEX}' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.33.1.3.3.1.3.{#SNMPINDEX}' key: 'upsInputVoltage.[{#SNMPINDEX}]' units: V tags: - tag: Application value: Input graph_prototypes: - uuid: 49bd5345c65e4fd69f67eece2e42d650 name: 'UPS Input Phase {#SNMPINDEX}' graph_items: - color: 199C0D item: host: 'HW UPS Legrand CS121' key: 'upsInputFrequency.[{#SNMPINDEX}]' - sortorder: '1' color: F63100 item: host: 'HW UPS Legrand CS121' key: 'upsInputCurrent.[{#SNMPINDEX}]' - sortorder: '2' color: F7941D item: host: 'HW UPS Legrand CS121' key: 'upsInputPower.[{#SNMPINDEX}]' - sortorder: '3' color: FC6EA3 item: host: 'HW UPS Legrand CS121' key: 'upsInputVoltage.[{#SNMPINDEX}]' - uuid: 8bbab403cd1242e0869c57cb3b91439e name: 'UPS Output Phses' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.33.1.4.4.1.1]' key: upsOutputPower delay: 1h item_prototypes: - uuid: 26e40d5d0a5b47a58fa8e4518708e897 name: 'Output load in percent Phase {#SNMPINDEX}' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.33.1.4.4.1.5.{#SNMPINDEX}' key: 'upsOutputPercentLoad.[{#SNMPINDEX}]' units: '%' tags: - tag: Application value: Output trigger_prototypes: - uuid: f0521636832f4bbab806ca0eb0524583 expression: 'last(/HW UPS Legrand CS121/upsOutputPercentLoad.[{#SNMPINDEX}],#2)>60' name: 'UPS Overloaded phase {#SNMPINDEX} (>60%)' priority: HIGH manual_close: 'YES' - uuid: b558adfa8aa14d078e10fedff0b8ccba name: 'Output Power Phase {#SNMPINDEX}' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.33.1.4.4.1.4.{#SNMPINDEX}' key: 'upsOutputPower.[{#SNMPINDEX}]' units: W tags: - tag: Application value: Output trigger_prototypes: - uuid: 7e231e6051f14c839b1165bb87c7e766 expression: 'change(/HW UPS Legrand CS121/upsOutputPower.[{#SNMPINDEX}])>300' name: 'UPS Load Changed phase {#SNMPINDEX} (+/-300W)' priority: INFO description: 'On {HOST.NAME} we detect a big load change - the power output differential is over 300W' manual_close: 'YES' - uuid: fc7927f35949474abd8dc8c825484dca expression: 'last(/HW UPS Legrand CS121/upsOutputPower.[{#SNMPINDEX}])<10' name: 'UPS Low output power phase {#SNMPINDEX} (<10 W)' priority: WARNING description: 'The output power for {HOST.NAME} is under {ITEM.VALUE}. Take actions to prevent this in future' manual_close: 'YES' tags: - tag: Value value: '{ITEM.VALUE}' - uuid: faa8fb8d9ec543d3863c94f91ec7ecbb name: 'Output Voltage Phase {#SNMPINDEX}' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.33.1.4.4.1.2.{#SNMPINDEX}' key: 'upsOutputVoltage.[{#SNMPINDEX}]' units: V tags: - tag: Application value: Output trigger_prototypes: - uuid: 91d8f9406bc04e04a7e7d5fdfda214ed expression: 'last(/HW UPS Legrand CS121/upsOutputVoltage.[{#SNMPINDEX}],#3)<200 or last(/HW UPS Legrand CS121/upsOutputVoltage.[{#SNMPINDEX}],#3)>250' name: 'UPS Power Voltage outside nominal phase {#SNMPINDEX}' priority: HIGH manual_close: 'YES' graph_prototypes: - uuid: f6abddf26755406ba2fea4970af08307 name: 'UPS Output Phase {#SNMPINDEX}' graph_items: - color: F63100 item: host: 'HW UPS Legrand CS121' key: 'upsOutputPercentLoad.[{#SNMPINDEX}]' - sortorder: '1' color: 2774A4 item: host: 'HW UPS Legrand CS121' key: 'upsOutputPower.[{#SNMPINDEX}]' - sortorder: '2' color: F7941D item: host: 'HW UPS Legrand CS121' key: 'upsOutputVoltage.[{#SNMPINDEX}]' valuemaps: - uuid: a8ceb891543649939956163e34199d07 name: 'APC Battery Status' mappings: - value: '1' newvalue: unknown - value: '2' newvalue: batteryNormal - value: '3' newvalue: batteryLow graphs: - uuid: 511d052b3bba4a359eb094cf4ce8ae75 name: Battery show_work_period: 'NO' show_triggers: 'NO' type: STACKED graph_items: - color: DD0000 item: host: 'HW UPS Legrand CS121' key: upsBatteryTemperature - sortorder: '1' color: '008800' item: host: 'HW UPS Legrand CS121' key: upsEstimatedChargeRemaining - sortorder: '2' color: 2774A4 item: host: 'HW UPS Legrand CS121' key: upsEstimatedMinutesRemaining