zabbix_export: version: '6.0' date: '2021-11-21T22:01:30Z' groups: - uuid: cdce88f4196c45bfa225b57ddba7445e name: 'Halley template' templates: - uuid: 73fb0c42f8a443e3945dae0c84ff32b3 template: 'HW UPS Legrand CS141' name: 'HW UPS Legrand CS141' description: | ## Overview Template for monitoring UPS Legrand CS 141 (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: d6de54a68d504d5a99a7791d0138713a name: 'Alarms present on {HOST.NAME}' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.33.1.6.1.0 key: upsAlarmsPresent delay: '30' description: 'The present number of active alarm conditions.' tags: - tag: Application value: Health triggers: - uuid: 934ed1af83a5420884123f60c2f146dc expression: 'last(/HW UPS Legrand CS141/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: 73c99682c72a48dc86714273eaf2108a name: 'Battery Status' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.33.1.2.1.0 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: e4e6999660f7421b8f76ce343b1b24b7 expression: 'last(/HW UPS Legrand CS141/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: e68ccf0ce1314342ac4edcdf2f5a9fec name: 'Battery temperature' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.33.1.2.7.0 key: upsBatteryTemperature delay: '60' units: °C description: 'The ambient temperature at or near the UPS Battery casing.' tags: - tag: Application value: Battery triggers: - uuid: 56a787d2e9af4a42961794e0fea3ee99 expression: 'last(/HW UPS Legrand CS141/upsBatteryTemperature)>45' name: 'Battery temperature High' priority: HIGH manual_close: 'YES' tags: - tag: Value value: '{ITEM.VALUE}' - uuid: 1edb589116614bfa8bfc463a6dd4d921 expression: 'last(/HW UPS Legrand CS141/upsBatteryTemperature)>35 and last(/HW UPS Legrand CS141/upsBatteryTemperature)<45' name: 'Battery temperature Warning' priority: WARNING manual_close: 'YES' tags: - tag: Value value: '{ITEM.VALUE}' - uuid: 0621085dcbf4439c9d6f159f7d61f3ee name: 'Battery voltage' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.33.1.2.5.0 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: 118d6849d2a843e48226b2ef808afbbc name: 'Estimated charge remaining' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.33.1.2.4.0 key: upsEstimatedChargeRemaining delay: '60' units: '%' description: 'An estimate of the battery charge remaining expressed as a percent of full charge.' preprocessing: - type: JAVASCRIPT parameters: - |2 days = Math.floor(value / (24*60)); daysvalue=value % (24*60); hours = Math.floor((daysvalue)/(60)); hoursvalue=value % (60); minutes = Math.floor(hoursvalue); minutesvalue=value; return days+":"+hours+":"+minutes; tags: - tag: Application value: Battery triggers: - uuid: 0f5a58812b594ab09a33bcb06a068e43 expression: 'last(/HW UPS Legrand CS141/upsEstimatedChargeRemaining)<20' name: 'Battery Charge Depleated' priority: HIGH manual_close: 'YES' tags: - tag: Value value: '{ITEM.VALUE}' - uuid: 42d9aa5cd27c47d8a414c9bdc5f29090 expression: 'last(/HW UPS Legrand CS141/upsEstimatedChargeRemaining)<80' name: 'Battery Charge Less Than 80%' priority: WARNING manual_close: 'YES' tags: - tag: Value value: '{ITEM.VALUE}' - uuid: 28942e587dc44e7b9d4d7394a63a17fa name: 'Estimated minutes remaining if no power' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.33.1.2.3.0 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: 69630aba62e748928fcf227d0393eba5 expression: 'last(/HW UPS Legrand CS141/upsEstimatedMinutesRemaining)<10' name: 'Battery Time Remaining Below 10 Minutes' priority: WARNING manual_close: 'YES' tags: - tag: Value value: '{ITEM.VALUE}' - uuid: 6130cdd1c4114bceb8b1a59730e6fdf5 name: 'Device Version' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.33.1.1.4.0 key: upsIdentAgentSoftwareVersion delay: '600' trends: '0' value_type: CHAR description: 'The UPS agent software version.' inventory_link: TAG tags: - tag: Application value: General - uuid: 0ff5d09bafe141ca8cf70b970855b0ef 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: 99cb1d40c41442c58537e133268f2d84 name: 'Device Vendor' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.33.1.1.1.0 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: 7351c4dc457d4652aa9477681d1586f7 name: 'Device Model' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.33.1.1.2.0 key: upsIdentModel delay: '86400' trends: '0' value_type: CHAR description: 'The UPS Model designation.' inventory_link: MODEL tags: - tag: Application value: General - uuid: 9a4e0141f3964ad7b774faf21acb40fa 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.' inventory_link: NAME tags: - tag: Application value: General - uuid: a02f3f5518204ea6812419dafc24eaf1 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: 2cac225d4b794b009520190c1a1e138f expression: 'last(/HW UPS Legrand CS141/upsIdentUptime)<300' name: 'Device rebooted' priority: INFO manual_close: 'YES' - uuid: 4b2db6296cc64d09bdfa968f860b37fd name: 'Input line bads' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.33.1.3.1.0 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: 722402ef1dc7460398d5e8c2f23d1c71 expression: 'change(/HW UPS Legrand CS141/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: 3ee823cc8bb14a9aa8645d392a8bba67 name: 'Seconds on battery' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.33.1.2.2.0 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: 19948fd378f246de9eb89e853587d04d expression: 'last(/HW UPS Legrand CS141/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: c8d3a53faf8347a9a8df1b1016e1a89a 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: 88b0ef831d124eb9a6e726c8458a16ee 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: 49940366e8e946c9af98e7bf59304774 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: ef9bd871ae6648faac45ae590f20363d 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: 5c1f0e353efa48189fe4c2af84992aac expression: 'last(/HW UPS Legrand CS141/upsBypassCurrent.[{#SNMPINDEX}])<>0 or last(/HW UPS Legrand CS141/upsBypassPower.[{#SNMPINDEX}])<>0' name: 'UPS Bypassed phase {#SNMPINDEX}' priority: WARNING tags: - tag: Value value: '{ITEM.VALUE}' graph_prototypes: - uuid: e505097af40d4f6da8c8058c3ec017b5 name: 'UPS Bypass Phase {#SNMPINDEX}' graph_items: - color: F63100 item: host: 'HW UPS Legrand CS141' key: 'upsBypassCurrent.[{#SNMPINDEX}]' - sortorder: '1' color: 2774A4 item: host: 'HW UPS Legrand CS141' key: 'upsBypassPower.[{#SNMPINDEX}]' - sortorder: '2' color: F7941D item: host: 'HW UPS Legrand CS141' key: 'upsBypassVoltage.[{#SNMPINDEX}]' - uuid: d5a9d6c10ff442ceaa03b1e0e254d155 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: e0b287536df2449f97b9affc1464bfb1 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: 5236d72fc082449bb8150fb450a1a40d 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: 009a6fb3ac834f45975a392723e7b6bd expression: 'last(/HW UPS Legrand CS141/upsInputFrequency.[{#SNMPINDEX}])>53 or last(/HW UPS Legrand CS141/upsInputFrequency.[{#SNMPINDEX}])<47' name: 'UPS Input frequency outside nominal {#SNMPINDEX}' priority: WARNING tags: - tag: Value value: '{ITEM.VALUE}' - uuid: 09ce7228cd70478bae27dd3390388de5 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: ec1dfb47bcd047febedbc87e95eabca8 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: c93cf2dff7374f8381a09e79c20b46af name: 'UPS Input Phase {#SNMPINDEX}' graph_items: - color: 199C0D item: host: 'HW UPS Legrand CS141' key: 'upsInputFrequency.[{#SNMPINDEX}]' - sortorder: '1' color: F63100 item: host: 'HW UPS Legrand CS141' key: 'upsInputCurrent.[{#SNMPINDEX}]' - sortorder: '2' color: F7941D item: host: 'HW UPS Legrand CS141' key: 'upsInputPower.[{#SNMPINDEX}]' - sortorder: '3' color: FC6EA3 item: host: 'HW UPS Legrand CS141' key: 'upsInputVoltage.[{#SNMPINDEX}]' - uuid: 48183408548b4298b8811037775527fe 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: 099897d318d9401ea10683e73cf0ec5c 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: 663a14a651f8499f905db0faf37ecd96 expression: 'last(/HW UPS Legrand CS141/upsOutputPercentLoad.[{#SNMPINDEX}],#2)>60' name: 'UPS Overloaded phase {#SNMPINDEX} (>60%)' priority: HIGH - uuid: 9426ee41b08442c4afc76f7e8cfd2b0a 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: 2ad4e0ef56ac480c863d413f801d0327 expression: 'change(/HW UPS Legrand CS141/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' - uuid: 2e4765b5decf495cb6821559d3e84db5 expression: 'last(/HW UPS Legrand CS141/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' tags: - tag: Value value: '{ITEM.VALUE}' - uuid: 5f41a3b425b64511a7eae9c18c48e696 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: dc557f0894bd4171aeb4ff564dbd3de9 expression: 'last(/HW UPS Legrand CS141/upsOutputVoltage.[{#SNMPINDEX}],#3)<200 or last(/HW UPS Legrand CS141/upsOutputVoltage.[{#SNMPINDEX}],#3)>250' name: 'UPS Power Voltage outside nominal phase {#SNMPINDEX}' priority: HIGH graph_prototypes: - uuid: 371048bf26ed462c9578daf49ffadef2 name: 'UPS Output Phase {#SNMPINDEX}' graph_items: - color: F63100 item: host: 'HW UPS Legrand CS141' key: 'upsOutputPercentLoad.[{#SNMPINDEX}]' - sortorder: '1' color: 2774A4 item: host: 'HW UPS Legrand CS141' key: 'upsOutputPower.[{#SNMPINDEX}]' - sortorder: '2' color: F7941D item: host: 'HW UPS Legrand CS141' key: 'upsOutputVoltage.[{#SNMPINDEX}]' valuemaps: - uuid: 9006f0957b4a473a9b64b2fe243cb027 name: 'APC Battery Status' mappings: - value: '1' newvalue: unknown - value: '2' newvalue: batteryNormal - value: '3' newvalue: batteryLow graphs: - uuid: 211c757bef3040138d546c48597c81e4 name: Battery show_work_period: 'NO' show_triggers: 'NO' type: STACKED graph_items: - color: DD0000 item: host: 'HW UPS Legrand CS141' key: upsBatteryTemperature - sortorder: '1' color: '008800' item: host: 'HW UPS Legrand CS141' key: upsEstimatedChargeRemaining - sortorder: '2' color: 2774A4 item: host: 'HW UPS Legrand CS141' key: upsEstimatedMinutesRemaining