zabbix_export: version: '5.4' date: '2021-11-21T21:51:21Z' groups: - uuid: 7df96b18c230490a9a0a9e2307226338 name: Templates templates: - uuid: 91bec0acfa9a41e1b1166966b26a011f template: 'IBM-Storwize-3700 CLI v2' name: 'IBM-Storwize-3700 CLI v2' description: | ## Overview Tested on Storwize 3700. This script get next metrics: Disk, Enclosure, Battery, Enclosure Canister, PSU, Mdisk, Pool, PortFibreChannel, PortSas, Volume groups: - name: Templates items: - uuid: 739a85e8cc29469f92aceed97f9dff5d name: 'Count of enclosure' type: TRAP key: is_there_expansion_enclosure delay: '0' request_method: POST - uuid: a5482cc7a7a64a36ada05cc9eefc0aff name: 'get discovery' type: EXTERNAL key: 'storwize_get_state.py["--storwize_ip={HOST.IP}","--storwize_port={$STORWIZE_PORT}","--storwize_user={$STORWIZE_USER}","--storwize_password={$STORWIZE_PASSWORD}","--storage_name={HOST.NAME}","--discovery"]' delay: 30m request_method: POST - uuid: 18bd127d89b54ac79cf15c082519b84b name: 'get status' type: EXTERNAL key: 'storwize_get_state.py["--storwize_ip={HOST.IP}","--storwize_port={$STORWIZE_PORT}","--storwize_user={$STORWIZE_USER}","--storwize_password={$STORWIZE_PASSWORD}","--storage_name={HOST.NAME}","--status"]' delay: 3m request_method: POST triggers: - uuid: 356427cd59d148e483a165a472e75163 expression: 'last(/IBM-Storwize-3700 CLI v2/storwize_get_state.py["--storwize_ip={HOST.IP}","--storwize_port={$STORWIZE_PORT}","--storwize_user={$STORWIZE_USER}","--storwize_password={$STORWIZE_PASSWORD}","--storage_name={HOST.NAME}","--status"])=1000' name: '{HOST.NAME} -> Error connecting to storage device' priority: AVERAGE - uuid: 5dafe518480b459bac1fc2fdba496b82 expression: 'last(/IBM-Storwize-3700 CLI v2/storwize_get_state.py["--storwize_ip={HOST.IP}","--storwize_port={$STORWIZE_PORT}","--storwize_user={$STORWIZE_USER}","--storwize_password={$STORWIZE_PASSWORD}","--storage_name={HOST.NAME}","--status"])=1100' name: '{HOST.NAME} -> Error getting metrics from storage device' priority: AVERAGE - uuid: 60f99c9bb8f8431d916ee848d0dc06b1 expression: 'count(/IBM-Storwize-3700 CLI v2/storwize_get_state.py["--storwize_ip={HOST.IP}","--storwize_port={$STORWIZE_PORT}","--storwize_user={$STORWIZE_USER}","--storwize_password={$STORWIZE_PASSWORD}","--storage_name={HOST.NAME}","--status"],2h,"eq","2")>35' name: '{HOST.NAME} -> Error processing metrics on zabbix' priority: AVERAGE description: 'Кол-во значений равных 2 и полученных за последний час больше или равно 35' - uuid: 9ad16a17b40e4d3590d958bbde04710c expression: 'count(/IBM-Storwize-3700 CLI v2/storwize_get_state.py["--storwize_ip={HOST.IP}","--storwize_port={$STORWIZE_PORT}","--storwize_user={$STORWIZE_USER}","--storwize_password={$STORWIZE_PASSWORD}","--storage_name={HOST.NAME}","--status"],2h,"eq","1")>35' name: '{HOST.NAME} -> Error sending metrics to zabbix' priority: AVERAGE description: 'Кол-во значений равных 1 и полученных за последний час больше или равно 35' - uuid: 9a85335210ee4635b2a989ec80815a91 expression: 'nodata(/IBM-Storwize-3700 CLI v2/storwize_get_state.py["--storwize_ip={HOST.IP}","--storwize_port={$STORWIZE_PORT}","--storwize_user={$STORWIZE_USER}","--storwize_password={$STORWIZE_PASSWORD}","--storage_name={HOST.NAME}","--status"],3600s)=1' name: '{HOST.NAME} -> No data from storage device for 1 hour' priority: AVERAGE - uuid: 51958f22725e44deb29e0647fe152175 name: 'Count of unsupported items' type: INTERNAL key: 'zabbix[host,,items_unsupported]' delay: 10m tags: - tag: Application value: Internal triggers: - uuid: c6ff85d838d84335b774cabf4f89ec6e expression: '(last(/IBM-Storwize-3700 CLI v2/zabbix[host,,items_unsupported])-1)>1' name: '{HOST.NAME} -> Exist unsupported items' priority: AVERAGE discovery_rules: - uuid: 7dc59e279e47418c808c5730f36fcda3 name: Disk type: TRAP key: lsdrive delay: '0' lifetime: 1d item_prototypes: - uuid: 576d5ae020bd48c1a62b9da309fd4b6a name: 'Health status of disk "{#SLOT_ID}" in enclosure "{#ENCLOSURE_ID}"' type: TRAP key: 'health.lsdrive.[{#ENCLOSURE_ID}.{#SLOT_ID}]' delay: '0' description: | online - which indicates that the drive is available through all drive ports degraded - which indicates that the drive is available but not through all drive ports offline - which indicates that the drive is unavailable valuemap: name: Storwize_HEALTH_STATUS request_method: POST tags: - tag: Application value: 'Disk health' trigger_prototypes: - uuid: ba97b695acee402cba32194e1d013fea expression: 'last(/IBM-Storwize-3700 CLI v2/health.lsdrive.[{#ENCLOSURE_ID}.{#SLOT_ID}])>0' name: '{HOST.NAME} -> Hard disk {#SLOT_ID} in enclosure {#ENCLOSURE_ID} health status is {ITEM.VALUE}' priority: HIGH request_method: POST - uuid: fe4aa141ef914228a7352ead9a7925c6 name: Enclosure type: TRAP key: lsenclosure delay: '0' lifetime: 1d item_prototypes: - uuid: dd96085b362f444ba7b740b7ae823f8e name: 'Fault LED of enclosure ID - "{#ID}", Serial Number - "{#SERIAL_NUMBER}"' type: TRAP key: 'faultLED.lsenclosure.[{#ID}.{#SERIAL_NUMBER}]' delay: '0' valuemap: name: Storwize_HEALTH_STATUS request_method: POST tags: - tag: Application value: 'Enclosure health' trigger_prototypes: - uuid: 434b6d58e5e54269be690b8db48024b5 expression: 'last(/IBM-Storwize-3700 CLI v2/faultLED.lsenclosure.[{#ID}.{#SERIAL_NUMBER}])=8 or last(/IBM-Storwize-3700 CLI v2/faultLED.lsenclosure.[{#ID}.{#SERIAL_NUMBER}])=10' name: '{HOST.NAME} -> Enclosure ID - "{#ID}", Serial Number - "{#SERIAL_NUMBER}" LED status is failed' priority: HIGH description: | Indicates the status of the fault light-emitting diode (LED) on the enclosure: on - if a service action is required immediately on the enclosure or a component within the enclosure (including a canister, power unit, or non-spared drive). slow_flashing - if there is insufficient battery power to run I/O off - if there are not faults on the enclosure or its components - uuid: 06ba9a4341be4062809281267124426a name: 'Health status of enclosure ID - "{#ID}", Serial Number - "{#SERIAL_NUMBER}"' type: TRAP key: 'health.lsenclosure.[{#ID}.{#SERIAL_NUMBER}]' delay: '0' valuemap: name: Storwize_HEALTH_STATUS request_method: POST tags: - tag: Application value: 'Enclosure health' trigger_prototypes: - uuid: 268a272391994af498c87e9f663f315e expression: 'last(/IBM-Storwize-3700 CLI v2/health.lsenclosure.[{#ID}.{#SERIAL_NUMBER}])>0' name: '{HOST.NAME} -> Enclosure ID - "{#ID}", Serial Number - "{#SERIAL_NUMBER}" health status is {ITEM.VALUE}' priority: HIGH request_method: POST - uuid: f1754cbc6553474496baef31e720e25b name: 'Enclosure Battery' type: TRAP key: lsenclosurebattery delay: '0' lifetime: 1d item_prototypes: - uuid: b19e842f2e4241dbb062924af12fc72a name: 'Health status of BBU "{#BATTERY_ID}" in enclosure "{#ENCLOSURE_ID}"' type: TRAP key: 'health.lsenclosurebattery.[{#ENCLOSURE_ID}.{#BATTERY_ID}]' delay: '0' valuemap: name: Storwize_HEALTH_STATUS request_method: POST tags: - tag: Application value: 'BBU health' trigger_prototypes: - uuid: d37417388a4b41deb285aed353c8c6a8 expression: 'last(/IBM-Storwize-3700 CLI v2/health.lsenclosurebattery.[{#ENCLOSURE_ID}.{#BATTERY_ID}])>0' name: '{HOST.NAME} -> BBU "{#BATTERY_ID}" in enclosure "{#ENCLOSURE_ID}" health status is {ITEM.VALUE}' priority: HIGH request_method: POST - uuid: 46de292672c2450ab625247b7933537e name: 'Enclosure Canister' type: TRAP key: lsenclosurecanister delay: '0' lifetime: 1d description: | Node Canister Контроллер, голова item_prototypes: - uuid: 30fcff96a3ad4dd38f20824ad57e1eff name: 'Health status of Canister "{#CANISTER_ID}" in enclosure "{#ENCLOSURE_ID}"' type: TRAP key: 'health.lsenclosurecanister.[{#ENCLOSURE_ID}.{#CANISTER_ID}]' delay: '0' valuemap: name: Storwize_HEALTH_STATUS request_method: POST tags: - tag: Application value: 'Canister health' trigger_prototypes: - uuid: 796b43828822460a8a6271c8a1bc3cc8 expression: 'last(/IBM-Storwize-3700 CLI v2/health.lsenclosurecanister.[{#ENCLOSURE_ID}.{#CANISTER_ID}])>0' name: '{HOST.NAME} -> Canister "{#CANISTER_ID}" in enclosure "{#ENCLOSURE_ID}" health status is {ITEM.VALUE}' priority: HIGH request_method: POST - uuid: 56f5061da1e14683bfd36d1e958cfafa name: 'Enclosure PSU' type: TRAP key: lsenclosurepsu delay: '0' lifetime: 1d item_prototypes: - uuid: 8dc1642743a4413a95ebbe0486bb85a1 name: 'Fan of PSU "{#PSU_ID}" in enclosure "{#ENCLOSURE_ID}"' type: TRAP key: 'fanFailed.lsenclosurepsu.[{#ENCLOSURE_ID}.{#PSU_ID}]' delay: '0' valuemap: name: Storwize_HEALTH_STATUS request_method: POST tags: - tag: Application value: 'PSU health' trigger_prototypes: - uuid: bf8d4bfaf1744399bad86a9f8b2c824c expression: 'last(/IBM-Storwize-3700 CLI v2/fanFailed.lsenclosurepsu.[{#ENCLOSURE_ID}.{#PSU_ID}])=8' name: '{HOST.NAME} -> PSU "{#PSU_ID}" in enclosure "{#ENCLOSURE_ID}" fan status is failed' priority: HIGH - uuid: 94f56ad878cf4588b215912492242a5b name: 'Health status of PSU "{#PSU_ID}" in enclosure "{#ENCLOSURE_ID}"' type: TRAP key: 'health.lsenclosurepsu.[{#ENCLOSURE_ID}.{#PSU_ID}]' delay: '0' valuemap: name: Storwize_HEALTH_STATUS request_method: POST tags: - tag: Application value: 'PSU health' trigger_prototypes: - uuid: ff39f90cdf4b4a23887f0e9e3a6d6651 expression: 'last(/IBM-Storwize-3700 CLI v2/health.lsenclosurepsu.[{#ENCLOSURE_ID}.{#PSU_ID}])>0' name: '{HOST.NAME} -> PSU "{#PSU_ID}" in enclosure "{#ENCLOSURE_ID}" health status is {ITEM.VALUE}' priority: HIGH - uuid: d6837264aca9435c8fcb58aac6dc44c6 name: 'Input Power of PSU "{#PSU_ID}" in enclosure "{#ENCLOSURE_ID}"' type: TRAP key: 'inFailed.lsenclosurepsu.[{#ENCLOSURE_ID}.{#PSU_ID}]' delay: '0' valuemap: name: Storwize_HEALTH_STATUS request_method: POST tags: - tag: Application value: 'PSU health' trigger_prototypes: - uuid: 78e591517515482f9ccd2b7ac3765edb expression: 'last(/IBM-Storwize-3700 CLI v2/inFailed.lsenclosurepsu.[{#ENCLOSURE_ID}.{#PSU_ID}])=8' name: '{HOST.NAME} -> PSU "{#PSU_ID}" in enclosure "{#ENCLOSURE_ID}" input power status is failed' priority: HIGH - uuid: f3540feae36343e6806eebc4ccc161d8 name: 'Output Power of PSU "{#PSU_ID}" in enclosure "{#ENCLOSURE_ID}"' type: TRAP key: 'outFailed.lsenclosurepsu.[{#ENCLOSURE_ID}.{#PSU_ID}]' delay: '0' valuemap: name: Storwize_HEALTH_STATUS request_method: POST tags: - tag: Application value: 'PSU health' trigger_prototypes: - uuid: 3e0411f53e644e9d906d571e15b011a6 expression: 'last(/IBM-Storwize-3700 CLI v2/outFailed.lsenclosurepsu.[{#ENCLOSURE_ID}.{#PSU_ID}])=8' name: '{HOST.NAME} -> PSU "{#PSU_ID}" in enclosure "{#ENCLOSURE_ID}" output power status is failed' priority: HIGH request_method: POST - uuid: a50fc25de4d24cceb5da5863fb066e47 name: Mdisk type: TRAP key: lsmdisk delay: '0' lifetime: 1d description: | Display a concise list or a detailed view of managed disks (MDisks). RAID-массивы показывает item_prototypes: - uuid: 420632e9dfe640e69e48da42b53e8b33 name: 'Health status of Mdisk "{#NAME}"' type: TRAP key: 'health.lsmdisk.[{#NAME}]' delay: '0' valuemap: name: Storwize_HEALTH_STATUS request_method: POST tags: - tag: Application value: 'Mdisk health' trigger_prototypes: - uuid: 6c412321a9624655a1997be968f5a0b9 expression: 'last(/IBM-Storwize-3700 CLI v2/health.lsmdisk.[{#NAME}])>0' name: '{HOST.NAME} -> Mdisk "{#NAME}" health status is {ITEM.VALUE}' priority: HIGH request_method: POST - uuid: 9bca25a8115d45b3a095576ac8f8c384 name: Pool type: TRAP key: lsmdiskgrp delay: '0' lifetime: 1d item_prototypes: - uuid: edf3a8d77e4545a28689d0cc393e7799 name: 'Free capacity of a Pool "{#NAME}"' type: TRAP key: 'free.lsmdiskgrp.[{#NAME}]' delay: '0' trends: '0' units: B request_method: POST tags: - tag: Application value: Pool - uuid: 2aef35a20d7c4f0e8b799db03128bdb8 name: 'Health status of a Pool "{#NAME}"' type: TRAP key: 'health.lsmdiskgrp.[{#NAME}]' delay: '0' valuemap: name: Storwize_HEALTH_STATUS request_method: POST tags: - tag: Application value: Pool trigger_prototypes: - uuid: f0d0319869484396bded2e1342961e61 expression: 'last(/IBM-Storwize-3700 CLI v2/health.lsmdiskgrp.[{#NAME}])>0' name: '{HOST.NAME} -> Pool "{#NAME}" health status is {ITEM.VALUE}' priority: HIGH - uuid: 2c02329525404e92933d4e9215e87788 name: 'Percent overallocation on Pool "{#NAME}"' type: TRAP key: 'overallocation.lsmdiskgrp.[{#NAME}]' delay: '0' units: '%' request_method: POST tags: - tag: Application value: Pool trigger_prototypes: - uuid: ede8f012f14642b7ba39220cf41473eb expression: 'last(/IBM-Storwize-3700 CLI v2/overallocation.lsmdiskgrp.[{#NAME}])>{$SUBSCRIBED_PERCENT:"{#NAME}"}' name: '{HOST.NAME} -> Subscribed capacity on pool "{#NAME}" > {$SUBSCRIBED_PERCENT:"{#NAME}"}%' priority: HIGH - uuid: 86f0490306ad4d3aa07f84b6d5c0e675 name: 'Real capacity of a Pool "{#NAME}"' type: TRAP key: 'real.lsmdiskgrp.[{#NAME}]' delay: '0' trends: '0' units: B request_method: POST tags: - tag: Application value: Pool - uuid: 7540cbff639449be8d0ca5a0a0f0c1ce name: 'Total capacity of a Pool "{#NAME}"' type: TRAP key: 'total.lsmdiskgrp.[{#NAME}]' delay: '0' trends: '0' units: B request_method: POST tags: - tag: Application value: Pool - uuid: bc2648b38da24e15b587e6618bb642a7 name: 'Used capacity of a Pool "{#NAME}"' type: TRAP key: 'used.lsmdiskgrp.[{#NAME}]' delay: '0' trends: '0' units: B request_method: POST tags: - tag: Application value: Pool - uuid: 42b786d8ff044eb591d719806e50b693 name: 'Virtual capacity of a Pool "{#NAME}"' type: TRAP key: 'virtual.lsmdiskgrp.[{#NAME}]' delay: '0' trends: '0' units: B request_method: POST tags: - tag: Application value: Pool request_method: POST - uuid: 00baa49ca03b454bb36a0ce4dfce61f2 name: PortFibreChannel type: TRAP key: lsportfc delay: '0' lifetime: 1d item_prototypes: - uuid: ee9ac3b096e54577a0b234d5eabef668 name: 'Running status of Fibre Channel port ID - "{#PORT_ID}", node name - "{#NODE_NAME}"' type: TRAP key: 'running.lsportfc.[{#PORT_ID}.{#NODE_NAME}]' delay: '0' valuemap: name: Storwize_HEALTH_STATUS request_method: POST tags: - tag: Application value: 'FC health' trigger_prototypes: - uuid: 7920e55f5ed84468983baca0f703ee4e expression: 'last(/IBM-Storwize-3700 CLI v2/running.lsportfc.[{#PORT_ID}.{#NODE_NAME}])=4' name: '{HOST.NAME} - > PortFibreChannel ID - "{#PORT_ID}", node name - "{#NODE_NAME}" running status is {ITEM.VALUE}' priority: HIGH description: | Indicates whether the port is configured to a device of Fibre Channel (FC) port. The values are: active inactive_configured inactive_unconfigured request_method: POST - uuid: 3b77e1a7741245faa71efc0013b10dd9 name: PortSAS type: TRAP key: lsportsas delay: '0' lifetime: 1d item_prototypes: - uuid: 837ff56c87d54840856cd4f0cc50ac9f name: 'Running status of SAS port ID - "{#PORT_ID}", node name - "{#NODE_NAME}"' type: TRAP key: 'running.lsportsas.[{#PORT_ID}.{#NODE_NAME}]' delay: '0' valuemap: name: Storwize_HEALTH_STATUS request_method: POST tags: - tag: Application value: 'SAS health' trigger_prototypes: - uuid: 6c51093789fb4dfca8923166842d0bde expression: '({TRIGGER.VALUE}=0 and last(/IBM-Storwize-3700 CLI v2/running.lsportsas.[{#PORT_ID}.{#NODE_NAME}])<>0 and change(/IBM-Storwize-3700 CLI v2/running.lsportsas.[{#PORT_ID}.{#NODE_NAME}])=1) or ({TRIGGER.VALUE}=1 and last(/IBM-Storwize-3700 CLI v2/is_there_expansion_enclosure)<>0)' name: '{HOST.NAME} -> PortSas ID - "{#PORT_ID}", node name - "{#NODE_NAME}" running status is {ITEM.VALUE}' priority: HIGH description: | Indicates the status of the port (numeric string). The values can be: online - if the port is functioning offline - if the port is not functioning offline_unconfigured - if not functioning but not configured by the user degraded - if one or more ports are not functioning or have a lower speed than others excluded - if excluded by the user or system Если на сторвайзе нет полок-расширения, то SAS-порты на контроллере будут оффлайн request_method: POST - uuid: 230bdcb992384c22a8d9151ea45d0f43 name: Volume type: TRAP key: lsvdisk delay: '0' lifetime: 1d item_prototypes: - uuid: 5c44188512c94995acad8a55489164a7 name: 'Health status of Volume "{#NAME}"' type: TRAP key: 'health.lsvdisk.[{#NAME}]' delay: '0' valuemap: name: Storwize_HEALTH_STATUS request_method: POST tags: - tag: Application value: 'Volume Health' trigger_prototypes: - uuid: fe908517fa7c4cb9ab80d5f26e247faf expression: 'last(/IBM-Storwize-3700 CLI v2/health.lsvdisk.[{#NAME}])>0' name: '{HOST.NAME} -> Volume "{#NAME}" health status is {ITEM.VALUE}' priority: HIGH request_method: POST macros: - macro: '{$STORWIZE_PASSWORD}' - macro: '{$STORWIZE_PORT}' value: '22' - macro: '{$STORWIZE_USER}' - macro: '{$SUBSCRIBED_PERCENT}' value: '91' valuemaps: - uuid: 849df54b86d54a3f916dad20cbfc8c3f name: Storwize_HEALTH_STATUS mappings: - value: '0' newvalue: ONLINE - value: '1' newvalue: OFFLINE - value: '2' newvalue: Degraded - value: '3' newvalue: Active - value: '4' newvalue: Inactive_Configured - value: '5' newvalue: Inactive_Unconfigured - value: '6' newvalue: Offline_unconfigured - value: '7' newvalue: Excluded - value: '8' newvalue: 'on' - value: '9' newvalue: 'off' - value: '10' newvalue: slow_flashing - value: '11' newvalue: degraded_paths - value: '12' newvalue: degraded_ports - value: '100' newvalue: Unknown