zabbix_export: version: '6.0' date: '2021-11-21T21:38:47Z' groups: - uuid: 0e60ac85bc3941e2a1d66a048ff164da name: UPS templates: - uuid: 676aa000dd304f38ac11cf0b7fbd4bde template: 'APC Smart-UPS' name: 'APC Smart-UPS' description: | ## Overview This template covers basic monitoring with some triggers. I use it on a Windows Server 2016 with PowerChute Business Edition installed. Feel free to modify this template to meet your needs. Configure PowerChute Business Edition to use SNMP v1 with Community "public". --- The following applications, triggers and items are configured: ### Applications and Items Info * APC Firmware Revision * APC Modell * APC Serial Number Battery * APC Battery Capacity * APC Battery Replace Indicator * APC Battery Status * APC Battery Temperature * APC Battery Voltage * APC Time on Battery * APC Time on Battery remaining Input * APC Input Frequency * APC Input Phase * APC Input Voltage Output * APC Output Current (Amperes) * APC Output Frequency * APC Output Load * APC Output Phase * APC Output Status (basic) * APC Output Voltage Diagnostics * Test Last Diagnostics Date * Test Last Diagnostics Results ### Triggers * Information UPS Capacity lower than 90 Percent * Warning UPS Capacity lower than 70 Percent * Average UPS Capacity lower than 50 Percent * Average UPS Capacity lower than 30 Percent * High UPS Capacity lower than 20 Percent * Disaster UPS Capacity lower than 10 Percent * Average Test Failed * Disaster Remaining Time on Battery is lower than 5 Minutes * High No Power Source * Warning Load on this APC unit is to high * Average Input Fequency to low * Average Input Fequency to high * Information Frequency is not 50 Hz * Average Battery should be replaced ## Author Jonas Zürcher groups: - name: UPS items: - uuid: 62deca2a54914eb3a3f90c58f6687473 name: 'APC Battery Capacity' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.1.2.2.1.0 key: apc_battery.capacity delay: 30s units: '%' tags: - tag: Application value: Battery triggers: - uuid: 143e2c09863c498f94e79396711aa061 expression: 'last(/APC Smart-UPS/apc_battery.capacity)<10' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'last(/APC Smart-UPS/apc_battery.capacity)>10' name: 'UPS Capacity lower than 10 Percent' priority: DISASTER description: 'The Battery Capacity is lower than 10%. Check the Power source.' - uuid: b369be28990b493ab413f448f7c0ea81 expression: 'last(/APC Smart-UPS/apc_battery.capacity)<20' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'last(/APC Smart-UPS/apc_battery.capacity)>20' name: 'UPS Capacity lower than 20 Percent' priority: HIGH description: 'The Battery Capacity is lower than 20%. Check the Power source.' - uuid: 0cc08d95e5ed4d10a70475672af77902 expression: 'last(/APC Smart-UPS/apc_battery.capacity)<30' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'last(/APC Smart-UPS/apc_battery.capacity)>30' name: 'UPS Capacity lower than 30 Percent' priority: AVERAGE description: 'The Battery Capacity is lower than 30%. Check the Power source.' - uuid: c0fb151a05ce4cfbb2b7ef5c90bbc902 expression: 'last(/APC Smart-UPS/apc_battery.capacity)<50' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'last(/APC Smart-UPS/apc_battery.capacity)>50' name: 'UPS Capacity lower than 50 Percent' priority: AVERAGE description: 'The Battery Capacity is lower than 50%. Check the Power source.' - uuid: d84a313dcaf84a15b4404030fd898055 expression: 'last(/APC Smart-UPS/apc_battery.capacity)<50' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'last(/APC Smart-UPS/apc_battery.capacity)>70' name: 'UPS Capacity lower than 70 Percent' priority: WARNING description: 'The Battery Capacity is lower than 70%. Check the Power source.' - uuid: 61bfbbc2b3a247568bfdf309cf5b7bcb expression: 'last(/APC Smart-UPS/apc_battery.capacity)<90' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'last(/APC Smart-UPS/apc_battery.capacity)>90' name: 'UPS Capacity lower than 90 Percent' priority: INFO description: 'The Battery Capacity is lower than 90%. Run Diagnostics.' - uuid: cb34997bc84046678d61b58005ea572b name: 'APC Battery Replace Indicator' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.1.2.2.4.0 key: apc_battery.replaceIndicator delay: 30s valuemap: name: 'APC Battery Replacement Indicator' tags: - tag: Application value: Battery triggers: - uuid: 9e6d590a72414a889b13c02c2ad1d6a4 expression: 'last(/APC Smart-UPS/apc_battery.replaceIndicator)=2' name: 'Battery should be replaced' priority: AVERAGE description: 'Please get a new Battery and replace it as soon as possible!' - uuid: 91606b2753cb47c58a6239550e026b0d name: 'APC Battery Status' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.1.2.1.1.0 key: apc_battery.status delay: 30s valuemap: name: 'APC Battery Status' tags: - tag: Application value: Battery - uuid: f9c768824dc84dc18457d0936dd0aac5 name: 'APC Battery Temperature' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.1.2.2.2.0 key: apc_battery.temperature delay: 30s units: °C tags: - tag: Application value: Battery - uuid: a57ef881a9334e0fb75da8aac755ae4e name: 'APC Time on Battery' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.1.2.1.2.0 key: apc_battery.time delay: 30s value_type: FLOAT units: uptime preprocessing: - type: MULTIPLIER parameters: - '0.01' tags: - tag: Application value: Battery - uuid: 3829c846c64543619c014ed5f7bbca1a name: 'APC Time on Battery remaining' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.1.2.2.3.0 key: apc_battery.time.remaining delay: 30s value_type: FLOAT units: s preprocessing: - type: MULTIPLIER parameters: - '0.01' tags: - tag: Application value: Battery triggers: - uuid: 4889a34592b446de84bc164d6d48f97c expression: 'last(/APC Smart-UPS/apc_battery.time.remaining)<5m' name: 'Remaining Time on Battery is lower than 5 Minutes' priority: DISASTER - uuid: 6b6ca8497b9f4859a328fb273a6db0f8 name: 'APC Battery Voltage' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.1.2.2.8.0 key: apc_battery.voltage delay: 30s units: Volts tags: - tag: Application value: Battery - uuid: a6687abb48d746d3a80343bec2f8bf01 name: 'Test Last Diagnostics Date' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.1.7.2.4.0 key: apc_diagnostics.testDate delay: 30s trends: '0' value_type: CHAR tags: - tag: Application value: Diagnostics - uuid: c6294e30e175421287239b47642ba921 name: 'Test Last Diagnostics Results' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.1.7.2.3.0 key: apc_diagnostics.testResults delay: 30s valuemap: name: 'APC Diagnostic Result' tags: - tag: Application value: Diagnostics triggers: - uuid: da38048172e142c5b4b71df0fc7187eb expression: 'last(/APC Smart-UPS/apc_diagnostics.testResults)=2' name: 'Test Failed' priority: AVERAGE description: 'The diagnostic Test failed.' - uuid: f060972a139245f092db3e21bc8b5b3d name: 'APC Firmware Revision' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.1.1.2.1.0 key: apc_firmware delay: 60s trends: '0' value_type: CHAR tags: - tag: Application value: Info - uuid: 7f09928e62574a10a9b9a4f43e49a583 name: 'APC Input Frequency' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.1.3.2.4.0 key: apc_input.frequency delay: 30s units: Hz tags: - tag: Application value: Input triggers: - uuid: a2aff58d697d4ddfbcaf0cfa8b1110e1 expression: 'last(/APC Smart-UPS/apc_input.frequency)<>50' name: 'Frequency is not 50 Hz' priority: INFO - uuid: c840a7726eac49b6826008470f78bdf6 expression: 'last(/APC Smart-UPS/apc_input.frequency)>52' name: 'Input Fequency to high' priority: AVERAGE - uuid: da687c6736bd4e1bb59fd4d24caa565e expression: 'last(/APC Smart-UPS/apc_input.frequency)<48' name: 'Input Fequency to low' priority: AVERAGE - uuid: 2ba571fd96fa4462a6962d98022fce1e name: 'APC Input Phase' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.1.3.1.1.0 key: apc_input.phase delay: 30s tags: - tag: Application value: Input triggers: - uuid: 463991b6ba7646cf9cd47922dfa38c70 expression: 'last(/APC Smart-UPS/apc_input.phase)<1' name: 'No Power Source' priority: HIGH description: 'The APC lost its power source.' - uuid: c4578e54ca3142d9a9303e42cbf3b3a2 name: 'APC Input Voltage' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.1.3.2.1.0 key: apc_input.volt delay: 30s value_type: FLOAT units: Volts tags: - tag: Application value: Input - uuid: af9f5c1438fd4406b411bb62cc9825c1 name: 'APC Modell' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.1.1.1.1.0 key: apc_model delay: 60s trends: '0' value_type: CHAR description: 'Modell der APC' tags: - tag: Application value: Info - uuid: bbb4d866631e4f93921429ee91cc44d1 name: 'APC Output Current (Amperes)' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.1.4.2.4.0 key: apc_output.amperes delay: 30s units: Amperes tags: - tag: Application value: Output - uuid: 189f21bc1a3f455dac3c1504c5f72995 name: 'APC Output Frequency' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.1.4.2.2.0 key: apc_output.frequency delay: 30s units: Hz tags: - tag: Application value: Output - uuid: 9c64c59df3a447808b1ead3689416263 name: 'APC Output Load' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.1.4.2.3.0 key: apc_output.load delay: 30s units: '%' tags: - tag: Application value: Output triggers: - uuid: 1e53cc49719f4d05b6992977775a7f4b expression: 'last(/APC Smart-UPS/apc_output.load)>80' name: 'Load on this APC unit is to high' priority: WARNING description: 'The load on this unit is too high. Buy a stronger unit or decrease the number of devices on this UPC.' - uuid: 6a47e343632b408db4e2ec8369848f46 name: 'APC Output Phase' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.1.4.1.2.0 key: apc_output.phase delay: 30s tags: - tag: Application value: Output - uuid: 31cbdbef62974b3b82607c82f0235259 name: 'APC Output Status (basic)' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.1.4.1.1.0 key: apc_output.status.basic delay: 30s valuemap: name: 'APC Basic Output Status' tags: - tag: Application value: Output - uuid: 1a13375afa7c475fa5e96a4af89e0be2 name: 'APC Output Voltage' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.1.4.2.1.0 key: apc_output.volt delay: 30s value_type: FLOAT units: Volts tags: - tag: Application value: Output - uuid: 1d10f31c30e14f95b0d3d1d370ccfe8d name: 'APC Serial Number' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.1.1.2.3.0 key: apc_serial delay: 60s trends: '0' value_type: CHAR tags: - tag: Application value: Info valuemaps: - uuid: c272c873657e466d9a52021b79601313 name: 'APC Basic Output Status' mappings: - value: '1' newvalue: unknown - value: '2' newvalue: onLine - value: '3' newvalue: onBattery - value: '4' newvalue: onSmartBoost - value: '5' newvalue: timedSleeping - value: '6' newvalue: softwareBypass - value: '7' newvalue: 'off' - value: '8' newvalue: rebooting - value: '9' newvalue: switchedBypass - value: '10' newvalue: hardwareFailureBypass - value: '11' newvalue: sleepingUntilPowerReturn - value: '12' newvalue: onSmartTrim - value: '13' newvalue: ecoMode - value: '14' newvalue: hotStandby - value: '15' newvalue: onBatteryTest - value: '16' newvalue: emergencyStaticBypass - value: '17' newvalue: staticBypassStandby - value: '18' newvalue: powerSavingMode - value: '19' newvalue: spotMode - value: '20' newvalue: eConversion - value: '21' newvalue: chargerSpotmode - value: '22' newvalue: inverterSpotmode - uuid: 4904658d8f4f4f34809ac3d2c7242109 name: 'APC Battery Replacement Indicator' mappings: - value: '1' newvalue: noBatteryNeedsReplacing - value: '2' newvalue: batteryNeedsReplacing - uuid: 0985007b89d04b31839ad925662ccf3a name: 'APC Battery Status' mappings: - value: '1' newvalue: unknown - value: '2' newvalue: batteryNormal - value: '3' newvalue: batteryLow - uuid: 561bb441d62e45f69e943806e7bf1c25 name: 'APC Diagnostic Result' mappings: - value: '1' newvalue: ok - value: '2' newvalue: failed - value: '3' newvalue: invalidTest - value: '4' newvalue: testInProgress graphs: - uuid: 22b5a8fe0a744a4fb04633a46b4c90e9 name: Frequency graph_items: - color: 1A7C11 item: host: 'APC Smart-UPS' key: apc_input.frequency - sortorder: '1' color: F63100 item: host: 'APC Smart-UPS' key: apc_output.frequency