zabbix_export: version: '5.4' date: '2021-11-21T21:55:04Z' groups: - uuid: 0835b2a34e4a43d6887f5887b0135acc name: 'Templates/Servers Hardware' templates: - uuid: 25aafd905ea34d55a50b932d68fc0d8f template: 'Lenovo Flex chassis' name: 'Lenovo Flex chassis' description: | ## Overview **Basic zabbix template for Lenovo Flex chassis.** ================================================== Базовый монтирониг: Blades, Fans, Information, Powers, Switches, System. Настройка: 1. Включить на CMM Flex SNMPv3. 2. Создать и настроить пользователя для мониторинга на CMM Flex. 3. В импортированном шаблоне прописать макросы: {$FLEX\_USER} и {$FLEX\_PASS}. ## Author Evgen-20 groups: - name: 'Templates/Servers Hardware' items: - uuid: 72068ac9e017421484e3c1875b029c3d name: 'Flex CMM_1 firmware' type: SNMP_AGENT snmp_oid: 1.3.6.1.4.1.2.3.51.2.2.21.3.1.1.3.1 key: flex.fw.cmm1 delay: 1d history: 7d trends: '0' value_type: TEXT tags: - tag: Application value: Information - uuid: a7e9c26fd9cf49489c84076a138cdb1a name: 'Flex CMM_2 firmware' type: SNMP_AGENT snmp_oid: 1.3.6.1.4.1.2.3.51.2.2.21.3.1.1.3.2 key: flex.fw.cmm2 delay: 1d history: 7d trends: '0' value_type: TEXT tags: - tag: Application value: Information - uuid: 2a49449c562a4e639fad3d651915d878 name: 'Flex system health' type: SNMP_AGENT snmp_oid: 1.3.6.1.4.1.2.3.51.2.2.7.1.0 key: flex.health history: 30d description: | critical(0) nonCritical(2) systemLevel(4) normal(255) tags: - tag: Application value: System triggers: - uuid: 35d0d09dae52475997834dd711d493db expression: 'last(/Lenovo Flex chassis/flex.health)=4' name: 'Check the settings on {HOST.NAME}' priority: WARNING - uuid: 5827dcd96ed54826b0f05fb48a9a6819 expression: 'last(/Lenovo Flex chassis/flex.health)=0' name: '{HOST.NAME} has critical error' priority: HIGH - uuid: 8ba27542df6e4c1aaae7a7983ce3ff7c expression: 'last(/Lenovo Flex chassis/flex.health)=2' name: '{HOST.NAME} has warning error' priority: AVERAGE - uuid: fa14a804a7284b52967518c731936e32 name: 'Flex power' type: SNMP_AGENT snmp_oid: 1.3.6.1.4.1.2.3.51.2.2.10.5.1.2.0 key: flex.power.w delay: 2m history: 30d units: W description: 'Chassis total power being used, which displays the total power being consumed by all modules in the chassis. It also includes power consumed by the blowers (chassis cooling devices) for the chassis.' preprocessing: - type: RTRIM parameters: - 'W (+/- 0.5%)' tags: - tag: Application value: System - uuid: 6d045ae5e52447799a66dd7a480c2fa9 name: 'Flex serial number' type: SNMP_AGENT snmp_oid: 1.3.6.1.4.1.2.3.51.2.2.21.1.1.3.0 key: flex.serial.number delay: 1d history: 7d trends: '0' value_type: TEXT description: 'Machine serial number VPD information (from System BIOS).' tags: - tag: Application value: Information - uuid: 365c4ba2ae294df5954925d2a2ab8db7 name: 'Flex temperature' type: SNMP_AGENT snmp_oid: 1.3.6.1.4.1.2.3.51.2.2.1.5.1.0 key: flex.temp delay: 2m history: 30d value_type: FLOAT description: 'This is surrounding temperature where the system is installed. (C)' preprocessing: - type: RTRIM parameters: - ' Centigrade' tags: - tag: Application value: System discovery_rules: - uuid: 1229fa5c26e24aadb55a0ccde9c6e32b name: 'Discovery blades' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.2.3.51.2.2.8.2.1.1.5]' key: discovery.flex.blades delay: 1h item_prototypes: - uuid: bec3ea0595e84e9c9b6f731e487b50f3 name: 'Flex blade {#SNMPINDEX}' type: SNMP_AGENT snmp_oid: '1.3.6.1.4.1.2.3.51.2.2.8.2.1.1.5.{#SNMPINDEX}' key: '1.3.6.1.4.1.2.3.51.2.2.8.2.1.1.5.[{#SNMPINDEX}]' delay: 2m history: 30d description: | unknown(0) good(1) warning(2) critical(3) kernelMode(4) discovering(5) commError(6) noPower(7) flashing(8) initFailure(9) insufficientPower(10) powerDenied(11) maintMode(12) firehoseDump(13) tags: - tag: Application value: Blades trigger_prototypes: - uuid: 4ce24e2d74cf48fc9114d1918de3a524 expression: 'last(/Lenovo Flex chassis/1.3.6.1.4.1.2.3.51.2.2.8.2.1.1.5.[{#SNMPINDEX}])>3 or (last(/Lenovo Flex chassis/1.3.6.1.4.1.2.3.51.2.2.8.2.1.1.5.[{#SNMPINDEX}])=0 and last(/Lenovo Flex chassis/1.3.6.1.4.1.2.3.51.2.2.8.2.1.1.5.[{#SNMPINDEX}],#2)>0)' name: 'Check blade {#SNMPINDEX} on {HOST.NAME}' priority: WARNING - uuid: e58fb9c82b60445db6cf8f31448318b9 expression: 'last(/Lenovo Flex chassis/1.3.6.1.4.1.2.3.51.2.2.8.2.1.1.5.[{#SNMPINDEX}])=3' name: '{HOST.NAME} has critical on blade {#SNMPINDEX}' priority: HIGH - uuid: 8133fb7c9afc400fb2d7bfaecdc2c82f expression: 'last(/Lenovo Flex chassis/1.3.6.1.4.1.2.3.51.2.2.8.2.1.1.5.[{#SNMPINDEX}])=2' name: '{HOST.NAME} has warning on blade {#SNMPINDEX}' priority: AVERAGE - uuid: 2e2952b193c84f57ac6c998c574db23c name: 'Discovery fan' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.2.3.51.2.2.3.50.1.2]' key: discovery.flex.fans delay: 1d item_prototypes: - uuid: 1a2e5ec8b9664cef9c423b2392eb7388 name: 'Flex fan speed {#SNMPINDEX}' type: SNMP_AGENT snmp_oid: '1.3.6.1.4.1.2.3.51.2.2.3.50.1.3.{#SNMPINDEX}' key: '1.3.6.1.4.1.2.3.51.2.2.3.50.1.3.[{#SNMPINDEX}]' delay: 2m history: 14d units: '%' description: 'Chassis fan speed expressed in percent(%) of maximum RPM.' preprocessing: - type: RTRIM parameters: - '% of maximum' tags: - tag: Application value: Fans - uuid: c8c7cd48ab894028ac24165b4c853d17 name: 'Flex fan status {#SNMPINDEX}' type: SNMP_AGENT snmp_oid: '1.3.6.1.4.1.2.3.51.2.2.3.50.1.4.{#SNMPINDEX}' key: '1.3.6.1.4.1.2.3.51.2.2.3.50.1.4.[{#SNMPINDEX}]' delay: 2m history: 30d description: | unknown(0) good(1) warning(2) bad(3) tags: - tag: Application value: Fans trigger_prototypes: - uuid: 991548befd8b48e78ac65b723687a888 expression: 'last(/Lenovo Flex chassis/1.3.6.1.4.1.2.3.51.2.2.3.50.1.4.[{#SNMPINDEX}])=0' name: 'Check fan module {#SNMPINDEX} on {HOST.NAME}' priority: WARNING - uuid: 7b2c35d9c8ec49c3b5bd5cd09f0b4c01 expression: 'last(/Lenovo Flex chassis/1.3.6.1.4.1.2.3.51.2.2.3.50.1.4.[{#SNMPINDEX}])=3' name: '{HOST.NAME} has critical on fan module {#SNMPINDEX}' priority: HIGH - uuid: c129b95d44c3434e820f924c7d639279 expression: 'last(/Lenovo Flex chassis/1.3.6.1.4.1.2.3.51.2.2.3.50.1.4.[{#SNMPINDEX}])=2' name: '{HOST.NAME} has warning on fan module {#SNMPINDEX}' priority: AVERAGE - uuid: 099fc451e3db4937abf6555fa571dc73 name: 'Discovery status power' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.2.3.51.2.2.4.1.1.3]' key: discovery.flex.power delay: 1d item_prototypes: - uuid: af0e51f75a3243e986790673c7bb0783 name: 'Flex power {#SNMPINDEX}' type: SNMP_AGENT snmp_oid: '1.3.6.1.4.1.2.3.51.2.2.4.1.1.3.{#SNMPINDEX}' key: '1.3.6.1.4.1.2.3.51.2.2.4.1.1.3.[{#SNMPINDEX}]' delay: 2m history: 30d description: | unknown(0) good(1) warning(2) notAvailable(3) critical(4) tags: - tag: Application value: Powers trigger_prototypes: - uuid: 3afcbfb4d4374ccc9c8e75eae7d518b6 expression: 'last(/Lenovo Flex chassis/1.3.6.1.4.1.2.3.51.2.2.4.1.1.3.[{#SNMPINDEX}])=0 or last(/Lenovo Flex chassis/1.3.6.1.4.1.2.3.51.2.2.4.1.1.3.[{#SNMPINDEX}])=2' name: 'Check power module {#SNMPINDEX} on {HOST.NAME}' priority: WARNING - uuid: 1d318cb4df344e6b8a3898ac1dd244ec expression: 'last(/Lenovo Flex chassis/1.3.6.1.4.1.2.3.51.2.2.4.1.1.3.[{#SNMPINDEX}])=4' name: '{HOST.NAME} has critical on power module {#SNMPINDEX}' priority: HIGH - uuid: 00e84b6b00ba4effb34f658870fa76fd expression: 'last(/Lenovo Flex chassis/1.3.6.1.4.1.2.3.51.2.2.4.1.1.3.[{#SNMPINDEX}])=2' name: '{HOST.NAME} has warning on power module {#SNMPINDEX}' priority: AVERAGE - uuid: 162a4bfa5f4547db835cabfbf896f60b name: 'Discovery switches' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.2.3.51.2.22.3.1.1.1.15]' key: discovery.flex.switch delay: 1d item_prototypes: - uuid: a86ab6a1fcf34e5e831d64c30f67a9f6 name: 'Flex switch {#SNMPINDEX}' type: SNMP_AGENT snmp_oid: '1.3.6.1.4.1.2.3.51.2.22.3.1.1.1.15.{#SNMPINDEX}' key: '1.3.6.1.4.1.2.3.51.2.22.3.1.1.1.15.[{#SNMPINDEX}]' delay: 2m history: 30d description: | Switchs: Ethernet, Fiber and etc. unknown(0) good(1) warning(2) bad(3) tags: - tag: Application value: Switches trigger_prototypes: - uuid: d11bb7f2caff4005a0e0038bfa016568 expression: 'last(/Lenovo Flex chassis/1.3.6.1.4.1.2.3.51.2.22.3.1.1.1.15.[{#SNMPINDEX}])=0' name: 'Check switch {#SNMPINDEX} on {HOST.NAME}' priority: WARNING - uuid: 08dc469707d04c13afd0699b182a81e6 expression: 'last(/Lenovo Flex chassis/1.3.6.1.4.1.2.3.51.2.22.3.1.1.1.15.[{#SNMPINDEX}])=3' name: '{HOST.NAME} has critical on switch {#SNMPINDEX}' priority: HIGH - uuid: 2356fb90c7f74c40aa588cb36c51c227 expression: 'last(/Lenovo Flex chassis/1.3.6.1.4.1.2.3.51.2.22.3.1.1.1.15.[{#SNMPINDEX}])=2' name: '{HOST.NAME} has warning on switch {#SNMPINDEX}' priority: AVERAGE macros: - macro: '{$FLEX_PASS}' - macro: '{$FLEX_USER}'