zabbix_export: version: '6.0' date: '2021-11-21T21:48:21Z' groups: - uuid: 0e60ac85bc3941e2a1d66a048ff164da name: UPS templates: - uuid: 74f11e2f99ee4007baa58e0dad5e014d template: 'Monitoring UPS' name: 'Monitoring UPS' description: | ## Overview Hi Here is a template for Socomec UPS. It is made mostly with traps. Triggers are included. Do not hesitate to ask me questions if you have some. Thanks. ## Author Vincent MATIAS groups: - name: UPS items: - uuid: 286dbc2625f3423a9a834c2677856083 name: '{HOST.NAME} ping' type: SIMPLE key: 'icmpping[]' delay: 30s history: 2d tags: - tag: Application value: Status - uuid: 705f1b2013684d9489f890fb2953b898 name: 'UPS trap fallback' type: SNMP_TRAP key: snmptrap.fallback delay: '0' history: 2d trends: '0' value_type: LOG tags: - tag: Application value: Fallback triggers: - uuid: bde98cc6b8b34e8d88b7a9dca322182a expression: 'length(last(/Monitoring UPS/snmptrap.fallback))>1' name: 'Unknown trap received from {HOST.NAME}' priority: AVERAGE manual_close: 'YES' - uuid: ec8fe8a021e64b009b9a9ebd8dca465a name: '{HOST.NAME} alarm entry added' type: SNMP_TRAP key: 'snmptrap["upsTrapAlarmEntryAdded"]' delay: '0' history: 2d trends: '0' value_type: LOG description: | This trap is sent each time an alarm is inserted into to the alarm table. It is sent on the insertion of all alarms except for upsAlarmOnBattery and upsAlarmTestInProgress. tags: - tag: Application value: Alarm triggers: - uuid: f62a16b65b214678a4dbafc72e51c42c expression: 'last(/Monitoring UPS/snmptrap["upsTrapAlarmEntryAdded"])=1' name: '{HOST.NAME} alarm entry added' status: DISABLED priority: INFO description: | This trap is sent each time an alarm is inserted into to the alarm table. It is sent on the insertion of all alarms except for upsAlarmOnBattery and upsAlarmTestInProgress. manual_close: 'YES' - uuid: a789166cedab40fda2308dda228b70c2 name: '{HOST.NAME} alarm entry removed' type: SNMP_TRAP key: 'snmptrap["upsTrapAlarmEntryRemoved"]' delay: '0' history: 2d trends: '0' value_type: LOG description: | This trap is sent each time an alarm is removed from the alarm table. It is sent on the removal of all alarms except for upsAlarmTestInProgress. tags: - tag: Application value: Alarm triggers: - uuid: b351b6f2afb640a786778f854e75f258 expression: 'last(/Monitoring UPS/snmptrap["upsTrapAlarmEntryRemoved"])=1' name: '{HOST.NAME} alarm entry removed' status: DISABLED priority: INFO description: | This trap is sent each time an alarm is removed from the alarm table. It is sent on the removal of all alarms except for upsAlarmTestInProgress. manual_close: 'YES' - uuid: a5da2efb5cec400398de8bcdd67869e0 name: '{HOST.NAME} battery low' type: SNMP_TRAP key: 'snmptrap["upsTrapBatteryLow"]' delay: '0' history: 2d trends: '0' value_type: LOG description: 'SEVERE: Battery is near to be discharged.' tags: - tag: Application value: Battery - uuid: 653598e6990d41b29e9e2b67286e9ae2 name: '{HOST.NAME} battery test failed' type: SNMP_TRAP key: 'snmptrap["upsTrapBattTestFailed"]' delay: '0' history: 2d trends: '0' value_type: LOG description: 'SEVERE: UPS failed the last test of battery.' tags: - tag: Application value: Test triggers: - uuid: 68a74d0f25874b33950634f6a6761440 expression: 'last(/Monitoring UPS/snmptrap["upsTrapBattTestFailed"])=1' name: '{HOST.NAME} battery test failed' priority: AVERAGE description: 'SEVERE: UPS failed the last test of battery.' manual_close: 'YES' dependencies: - name: '{HOST.NAME} injoignable' expression: 'last(/Monitoring UPS/icmpping[],#3)=0 or nodata(/Monitoring UPS/upsIdentModel.0,180s)=1' - uuid: 9fd6263021fa4c2b93b26ba95df9e706 name: '{HOST.NAME} imminent stop' type: SNMP_TRAP key: 'snmptrap["upsTrapImminentStop"]' delay: '0' history: 2d trends: '0' value_type: LOG description: | SEVERE: The UPS is near to switch off the output power. tags: - tag: Application value: Output - uuid: 34181d572ead4ce0bce672ba65290ac5 name: '{HOST.NAME} output is on Battery' type: SNMP_TRAP key: 'snmptrap["upsTrapOnBattery"]' delay: '0' history: 2d trends: '0' value_type: LOG description: | The UPS is operating on battery power. This trap is persistent and is resent at one minute intervals until the UPS either turns off or is no longer running on battery. tags: - tag: Application value: Output - uuid: 762d145cefce4360917465d1e8ff4e84 name: '{HOST.NAME} est sur batterie' type: SNMP_TRAP key: 'snmptrap["upsTrapOnBatteryPower"]' delay: '0' history: 2d trends: '0' value_type: LOG description: 'WARNING: The UPS has switched to battery backup power.' tags: - tag: Application value: Battery - uuid: 0b2afea7b1a24d8496a15fb7463e4664 name: '{HOST.NAME} output is on mains' type: SNMP_TRAP key: 'snmptrap["upsTrapOnMains"]' delay: '0' history: 2d trends: '0' value_type: LOG description: 'SEVERE: The UPS output is on mains.' tags: - tag: Application value: Output - uuid: 9389efa26b7f45739cf8e5802cc531c0 name: '{HOST.NAME} overloading' type: SNMP_TRAP key: 'snmptrap["upsTrapOverload"]' delay: '0' history: 2d trends: '0' value_type: LOG description: | SEVERE: The UPS has sensed a load greater than 100 percent of its rated capacity. tags: - tag: Application value: Load - uuid: 8cad8b2d9cb1400ca6f51a675442f0bb name: '{HOST.NAME} temperature higher than its limit' type: SNMP_TRAP key: 'snmptrap["upsTrapOverTemperature"]' delay: '0' history: 2d trends: '0' value_type: LOG description: | SEVERE: The UPS has sensed a temperature greater than its limit. tags: - tag: Application value: Temperature - uuid: 6f071d157f8a4b6fa3041f3e330215aa name: '{HOST.NAME} : Power restored' type: SNMP_TRAP key: 'snmptrap["upsTrapPowerRestored"]' delay: '0' history: 2d trends: '0' value_type: LOG description: 'INFORMATION: Input power has been restored.' tags: - tag: Application value: Power - uuid: 874603bb3f2f49788e60cb0d2dfcd431 name: '{HOST.NAME} redundancy lost' type: SNMP_TRAP key: 'snmptrap["upsTrapRedoundancyLost"]' delay: '0' history: 2d trends: '0' value_type: LOG description: 'SEVERE: Redoundancy is lost.' tags: - tag: Application value: Redoundancy - uuid: d7e950e0e28d40f59f8fd79e6b6c1020 name: '{HOST.NAME} test completed' type: SNMP_TRAP key: 'snmptrap["upsTrapTestCompleted"]' delay: '0' history: 2d trends: '0' value_type: LOG description: | This trap is sent upon completion of a UPS diagnostic test. tags: - tag: Application value: Test triggers: - uuid: 8bf67df740ee4c4796fb10d5d83da7dd expression: 'last(/Monitoring UPS/snmptrap["upsTrapTestCompleted"])=1' name: '{HOST.NAME} test completed' priority: INFO description: | This trap is sent upon completion of a UPS diagnostic test. manual_close: 'YES' dependencies: - name: '{HOST.NAME} injoignable' expression: 'last(/Monitoring UPS/icmpping[],#3)=0 or nodata(/Monitoring UPS/upsIdentModel.0,180s)=1' - uuid: d237c72fbf724a9590da551ecca79f3c name: '{HOST.NAME} status is normal' type: SNMP_TRAP key: 'snmptrap["upsTrapUpsNormal"]' delay: '0' history: 2d trends: '0' value_type: LOG description: 'INFORMATION: The UPS status is normal.' tags: - tag: Application value: Status - uuid: 190b78e6dca14f4da2cfc0116a11a017 name: '{HOST.NAME} turned off' type: SNMP_TRAP key: 'snmptrap["upsTurnedOff"]' delay: '0' history: 2d trends: '0' value_type: LOG description: 'WARNING: The UPS has been turned off by the management station.' tags: - tag: Application value: Status - uuid: 17598357991c4a168933e23c4cbfeeb0 name: '{HOST.NAME} status' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.4555.1.1.1.1.1.1.0 key: upsIdentModel.0 history: 2d trends: '0' value_type: TEXT tags: - tag: Application value: Status macros: - macro: '{$SNMP_COMMUNITY}' triggers: - uuid: 401c465f32394c95b34acac815d6c87a expression: 'find(/Monitoring UPS/snmptrap["upsTrapAlarmEntryAdded"],,"like","upsTrapBatteryLow")=1' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'find(/Monitoring UPS/snmptrap["upsTrapAlarmEntryRemoved"],,"like","upsTrapBatteryLow")=1' name: '{HOST.NAME} battery low' priority: AVERAGE description: 'SEVERE: Battery is near to be discharged.' manual_close: 'YES' dependencies: - name: '{HOST.NAME} injoignable' expression: 'last(/Monitoring UPS/icmpping[],#3)=0 or nodata(/Monitoring UPS/upsIdentModel.0,180s)=1' - uuid: 0fb758da2c954b2eacf24e9fec5a37d6 expression: 'find(/Monitoring UPS/snmptrap["upsTrapAlarmEntryAdded"],,"like","upsTrapImminentStop")=1' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'find(/Monitoring UPS/snmptrap["upsTrapAlarmEntryRemoved"],,"like","upsTrapImminentStop")=1' name: '{HOST.NAME} imminent stop' priority: AVERAGE description: | SEVERE: The UPS is near to switch off the output power. manual_close: 'YES' dependencies: - name: '{HOST.NAME} injoignable' expression: 'last(/Monitoring UPS/icmpping[],#3)=0 or nodata(/Monitoring UPS/upsIdentModel.0,180s)=1' - uuid: 8258fb1903a34f45b2d92da475492ef4 expression: 'last(/Monitoring UPS/icmpping[],#3)=0 or nodata(/Monitoring UPS/upsIdentModel.0,180s)=1' name: '{HOST.NAME} injoignable' priority: HIGH - uuid: 1fe2911119c14977b341889112547970 expression: 'find(/Monitoring UPS/snmptrap["upsTrapAlarmEntryAdded"],,"like","upsTrapOverload")=1' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'find(/Monitoring UPS/snmptrap["upsTrapAlarmEntryRemoved"],,"like","upsTrapOverload")=1' name: '{HOST.NAME} is overloading' priority: AVERAGE description: | SEVERE: The UPS has sensed a load greater than 100 percent of its rated capacity. manual_close: 'YES' dependencies: - name: '{HOST.NAME} injoignable' expression: 'last(/Monitoring UPS/icmpping[],#3)=0 or nodata(/Monitoring UPS/upsIdentModel.0,180s)=1' - uuid: 2236089dbe4245b595cccf64f3d71fa7 expression: 'find(/Monitoring UPS/snmptrap["upsTrapAlarmEntryAdded"],,"like","upsTrapOnBattery")=1' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'find(/Monitoring UPS/snmptrap["upsTrapAlarmEntryRemoved"],,"like","upsTrapOnBattery")=1' name: '{HOST.NAME} output is on Battery' priority: WARNING description: | The UPS is operating on battery power. This trap is persistent and is resent at one minute intervals until the UPS either turns off or is no longer running on battery. manual_close: 'YES' dependencies: - name: '{HOST.NAME} injoignable' expression: 'last(/Monitoring UPS/icmpping[],#3)=0 or nodata(/Monitoring UPS/upsIdentModel.0,180s)=1' - uuid: 186a762158fa43fcb65a97a4a1d1cd30 expression: 'find(/Monitoring UPS/snmptrap["upsTrapAlarmEntryAdded"],,"like","upsTrapOnMains")=1' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'find(/Monitoring UPS/snmptrap["upsTrapAlarmEntryRemoved"],,"like","upsTrapOnMains")=1' name: '{HOST.NAME} output is on mains' priority: AVERAGE description: 'SEVERE: The UPS output is on mains.' manual_close: 'YES' dependencies: - name: '{HOST.NAME} injoignable' expression: 'last(/Monitoring UPS/icmpping[],#3)=0 or nodata(/Monitoring UPS/upsIdentModel.0,180s)=1' - uuid: d502c3b2850d4aeba05e3ba78a8f9863 expression: 'find(/Monitoring UPS/snmptrap["upsTrapAlarmEntryAdded"],,"like","upsTrapPowerRestored")=1' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'find(/Monitoring UPS/snmptrap["upsTrapAlarmEntryRemoved"],,"like","upsTrapPowerRestored")=1' name: '{HOST.NAME} Power has been restored' priority: INFO description: 'INFORMATION: Input power has been restored.' manual_close: 'YES' dependencies: - name: '{HOST.NAME} injoignable' expression: 'last(/Monitoring UPS/icmpping[],#3)=0 or nodata(/Monitoring UPS/upsIdentModel.0,180s)=1' - uuid: 1a53d030d4e24936a278977134d34eea expression: 'find(/Monitoring UPS/snmptrap["upsTrapAlarmEntryAdded"],,"like","upsTrapRedoundancyLost")=1' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'find(/Monitoring UPS/snmptrap["upsTrapAlarmEntryRemoved"],,"like","upsTrapRedoundancyLost")=1' name: '{HOST.NAME} redundancy lost' priority: AVERAGE description: 'SEVERE: Redoundancy is lost.' manual_close: 'YES' dependencies: - name: '{HOST.NAME} injoignable' expression: 'last(/Monitoring UPS/icmpping[],#3)=0 or nodata(/Monitoring UPS/upsIdentModel.0,180s)=1' - uuid: a95bc012ceca403982732ab96bdce4a7 expression: 'find(/Monitoring UPS/snmptrap["upsTrapAlarmEntryAdded"],,"like","upsTrapUpsNormal")=1' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'find(/Monitoring UPS/snmptrap["upsTrapAlarmEntryRemoved"],,"like","upsTrapUpsNormal")=1' name: '{HOST.NAME} status is normal' priority: INFO description: 'INFORMATION: The UPS status is normal.' manual_close: 'YES' dependencies: - name: '{HOST.NAME} injoignable' expression: 'last(/Monitoring UPS/icmpping[],#3)=0 or nodata(/Monitoring UPS/upsIdentModel.0,180s)=1' - uuid: 98baf135b1a646eeb0937560c8c39865 expression: 'find(/Monitoring UPS/snmptrap["upsTrapAlarmEntryAdded"],,"like","upsTrapOnBatteryPower")=1' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'find(/Monitoring UPS/snmptrap["upsTrapAlarmEntryRemoved"],,"like","upsTrapOnBatteryPower")=1' name: '{HOST.NAME} switched to battery backup power' priority: WARNING description: 'WARNING: The UPS has switched to battery backup power.' manual_close: 'YES' dependencies: - name: '{HOST.NAME} injoignable' expression: 'last(/Monitoring UPS/icmpping[],#3)=0 or nodata(/Monitoring UPS/upsIdentModel.0,180s)=1' - uuid: 62cc55a973df419b8f26f99480b27d7c expression: 'find(/Monitoring UPS/snmptrap["upsTrapAlarmEntryAdded"],,"like","upsTrapOverTemperature")=1' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'find(/Monitoring UPS/snmptrap["upsTrapAlarmEntryRemoved"],,"like","upsTrapOverTemperature")=1' name: '{HOST.NAME} temperature higher than its limit' priority: AVERAGE description: | SEVERE: The UPS has sensed a temperature greater than its limit. manual_close: 'YES' dependencies: - name: '{HOST.NAME} injoignable' expression: 'last(/Monitoring UPS/icmpping[],#3)=0 or nodata(/Monitoring UPS/upsIdentModel.0,180s)=1' - uuid: 8fdd7b1666d842fbb62b7068fa57a304 expression: 'find(/Monitoring UPS/snmptrap["upsTrapAlarmEntryAdded"],,"like","upsTurnedOff")=1' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'find(/Monitoring UPS/snmptrap["upsTrapAlarmEntryRemoved"],,"like","upsTurnedOff")=1' name: '{HOST.NAME} turned off' priority: WARNING description: 'WARNING: The UPS has been turned off by the management station.' manual_close: 'YES' dependencies: - name: '{HOST.NAME} injoignable' expression: 'last(/Monitoring UPS/icmpping[],#3)=0 or nodata(/Monitoring UPS/upsIdentModel.0,180s)=1'