zabbix_export: version: '5.4' date: '2021-11-21T21:34:59Z' groups: - uuid: cdce88f4196c45bfa225b57ddba7445e name: 'Halley template' templates: - uuid: a2a72a8b5c57492c8de388f1d150cce9 template: 'Halley UPS Legrand cs121' name: 'Halley 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 ## Author Tudor Ticau groups: - name: 'Halley template' items: - uuid: 8a4607a88e134c9c86ca95e55e467b57 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: 0b24e2f37b4648ecae4d1028ab9c5aeb expression: 'last(/Halley 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: 46f5a77e011a4790816d644deee4d625 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: d75bdb23528e4e2b99d07514fbcce5cc expression: 'last(/Halley 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: 8de777c9b94944978f73693e6a6e72a1 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: ced5627dfca2478f83fcb70b1af9a543 expression: 'last(/Halley UPS Legrand cs121/upsBatteryTemperature)>25' name: 'Battery temperature High' priority: HIGH manual_close: 'YES' tags: - tag: Value value: '{ITEM.VALUE}' - uuid: ff48d5ed44544b8cb81a37e0d20e9539 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: e6c3da56aa2c4d6b920e849cba303925 name: 'Bypass Current' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.33.1.5.3.1.3.1 key: upsBypassCurrent.1 delay: '30' units: A description: | An automatic bypass of voltage is used by the UPS to switch its load to the mains if it experiences an overload or internal failure. In other words, this mean that UPS has some problems and switch to the main (wall) power. So, if we have bypass - in bypass time our servers are connected directly to the line power - and are exposed to all electricity hazards. This item show the amperage that we have in bypass time preprocessing: - type: MULTIPLIER parameters: - '0.1' tags: - tag: Application value: Health - uuid: fe38ff2736ee4fbda2bf8b843f6296d1 name: 'Bypass Power' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.33.1.5.3.1.4.1 key: upsBypassPower.1 delay: '30' units: W description: | An automatic bypass is used by the UPS to switch its load to the mains if it experiences an overload or internal failure. In other words, this mean that UPS has some problems and switch to the main (wall) power. So, if we have bypass - in bypass time our servers are connected directly to the line power - and are exposed to all electricity hazards This item show the power that we have in bypass time tags: - tag: Application value: Health - uuid: 6b2b3186406648319837e85169a2a8a9 name: 'Bypass Voltage' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.33.1.5.3.1.2.1 key: upsBypassVoltage.1 delay: '30' units: V description: 'An automatic bypass of voltage is used by the UPS to switch its load to the mains if it experiences an overload or internal failure. In other words, this mean that UPS has some problems and switch to the main (wall) power. So, if we have bypass - in bypass time our servers are connected directly to the line power - and are exposed to all electricity hazards' tags: - tag: Application value: Health - uuid: eaca7131125f467cb99ad61ddb380265 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: 392c32f3e6354731a1f54b195b6fd7a2 expression: 'last(/Halley UPS Legrand cs121/upsEstimatedChargeRemaining)<20' name: 'Battery Charge Depleated' priority: HIGH manual_close: 'YES' tags: - tag: Value value: '{ITEM.VALUE}' - uuid: 6077a9f49182489390bcb6db10aaf9a2 expression: 'last(/Halley UPS Legrand cs121/upsEstimatedChargeRemaining)<80' name: 'Battery Charge Less Than 80%' priority: WARNING manual_close: 'YES' tags: - tag: Value value: '{ITEM.VALUE}' - uuid: c7143a6a03174da1aeca09eabf82404d 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: bee22a6278744ed0aa1896a3573a4a0d expression: 'last(/Halley UPS Legrand cs121/upsEstimatedMinutesRemaining)<10' name: 'Battery Time Remaining Below 10 Minutes' priority: WARNING manual_close: 'YES' tags: - tag: Value value: '{ITEM.VALUE}' - uuid: fc9e40362a8b431fbc2a6dcea76a9a3c 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.' tags: - tag: Application value: General - uuid: d804b394c2784e5da6071f2f47434357 name: 'Device Name' 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.' tags: - tag: Application value: General - uuid: 1ecd3872d745413aa4e228b911666815 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.' tags: - tag: Application value: General - uuid: 0cf9cc914c104d5fb53f36713b38c2f6 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: 45a974adb9ff40f689791ad085c701a9 expression: 'change(/Halley 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: bbdcca02da7749919518572041f00f35 name: 'Input voltage' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.33.1.3.3.1.3.1 key: upsInputVoltage.1 delay: '30' units: V description: 'The magnitude of the present input voltage.' tags: - tag: Application value: Input triggers: - uuid: 3b9a76cfe87b421783a46cfc56074869 expression: 'last(/Halley UPS Legrand cs121/upsInputVoltage.1,#3)<195 or last(/Halley UPS Legrand cs121/upsInputVoltage.1)>245' name: 'UPS Power Voltage outside nominal' priority: HIGH description: 'The input voltage on {HOST.NAME} is low or high. This can create big problems to your UPS, or, unfortunately to your servers' manual_close: 'YES' tags: - tag: Value value: '{ITEM.VALUE}' - uuid: b96f20f6c7f844bda2e36c4b223a7fd6 name: 'Output load in percent' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.33.1.4.4.1.5.1 key: upsOutputPercentLoad.1 delay: '30' units: '%' description: 'The percentage of the UPS power capacity presently being used on this output line, i.e., the greater of the percent load of true power capacity and the percent load of VA.' tags: - tag: Application value: Output triggers: - uuid: f59da179b5e34bab8ef2809d87cc104a expression: 'last(/Halley UPS Legrand cs121/upsOutputPercentLoad.1,#2)>60' name: 'UPS Overloaded' priority: HIGH manual_close: 'YES' tags: - tag: Value value: '{ITEM.VALUE}' - uuid: cd12da0878fd4f6e9836e31f4564a845 name: 'Output Power' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.33.1.4.4.1.4.1 key: upsOutputPower.1 delay: '30' units: w description: 'The present output true power.' tags: - tag: Application value: Output triggers: - uuid: 04de14911f1c40e2abded6b44c6cdf10 expression: 'change(/Halley UPS Legrand cs121/upsOutputPower.1)>300' name: 'UPS Load Changed' priority: INFO description: 'On {HOST.NAME} we detect a big load change - the power output differential is over 300W' manual_close: 'YES' tags: - tag: Value value: '{ITEM.VALUE}' - uuid: 5ea2d604a3854f09b199cdb232300f2b expression: 'last(/Halley UPS Legrand cs121/upsOutputPower.1)<100' name: 'UPS Low output power' 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: b9be6b72532a465e9c79e3413298e20b name: 'Output Voltage' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.33.1.4.4.1.2.1 key: upsOutputVoltage.1 delay: '30' units: V description: 'The present output voltage.' tags: - tag: Application value: Output - uuid: beaf7cf08ca946829a8059756d494e2d 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: 370c359618cd418a828df7ce08c59626 expression: 'last(/Halley 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}' macros: - macro: '{$SNMP_COMMUNITY}' value: MonitorZabbix valuemaps: - uuid: ab6323468f5d437b8bd475ec09222fb8 name: 'APC Battery Status' mappings: - value: '1' newvalue: unknown - value: '2' newvalue: batteryNormal - value: '3' newvalue: batteryLow - value: '4' newvalue: batteryDepleted triggers: - uuid: 0d8429a8fdbd4fe795f99a88edbbb383 expression: 'last(/Halley UPS Legrand cs121/upsBypassCurrent.1)<>0 or last(/Halley UPS Legrand cs121/upsBypassPower.1)<>0' name: 'UPS Bypassed on {HOST.NAME}' priority: WARNING description: 'We have a bypass state. Take actions' manual_close: 'YES' tags: - tag: Value value: '{ITEM.VALUE}' graphs: - uuid: 0972f24561804560984571f657bc18fd name: Battery show_work_period: 'NO' show_triggers: 'NO' type: STACKED graph_items: - color: DD0000 item: host: 'Halley UPS Legrand cs121' key: upsBatteryTemperature - sortorder: '1' color: '008800' item: host: 'Halley UPS Legrand cs121' key: upsEstimatedChargeRemaining - sortorder: '2' color: 2774A4 item: host: 'Halley UPS Legrand cs121' key: upsEstimatedMinutesRemaining - uuid: 3891684499c04293955a29036645693c name: 'Output Power' graph_items: - color: 1A7C11 item: host: 'Halley UPS Legrand cs121' key: upsOutputPower.1 - uuid: 3d85290d7bbd4d1796d39ed01ed1fc07 name: 'UPS Load' graph_items: - color: F63100 item: host: 'Halley UPS Legrand cs121' key: upsOutputPercentLoad.1 - uuid: feaf9614413b4aec807a595faa467ea6 name: Voltage graph_items: - color: F63100 item: host: 'Halley UPS Legrand cs121' key: upsInputVoltage.1 - sortorder: '1' color: 00BB00 item: host: 'Halley UPS Legrand cs121' key: upsOutputVoltage.1