zabbix_export: version: '6.0' date: '2021-11-21T21:50:44Z' groups: - uuid: 7df96b18c230490a9a0a9e2307226338 name: Templates templates: - uuid: b85d1eab1d1a4c29936542501ba7c08f template: 'Huawei OceanStor Rest-API v2' name: 'Huawei OceanStor Rest-API v2' description: | ## Overview Python script for monitoring huawei storages Tested on 5500 V5, 5600 V5, 2600 V3, 5500 V3, dorado 5000 V3, 18800 V3 and dorado 5000 V6 groups: - name: Templates items: - uuid: 7ba62248521a4fc89245e930c191547a name: 'get discovery' type: EXTERNAL key: 'huawei_get_state.py["--api_ip={HOST.IP}","--api_port={$API_PORT}","--api_user={$API_USER}","--api_password={$API_PASSWORD}","--storage_name={HOST.NAME}","--discovery"]' delay: 1h request_method: POST tags: - tag: Application value: get_data_from_script - uuid: 91fe4f47e3c6442bb88a4cddf2d22f34 name: 'get health state' type: EXTERNAL key: 'huawei_get_state.py["--api_ip={HOST.IP}","--api_port={$API_PORT}","--api_user={$API_USER}","--api_password={$API_PASSWORD}","--storage_name={HOST.NAME}","--status"]' request_method: POST tags: - tag: Application value: get_data_from_script triggers: - uuid: 80853a25b9f743adab02788395a3df4a expression: 'count(/Huawei OceanStor Rest-API v2/huawei_get_state.py["--api_ip={HOST.IP}","--api_port={$API_PORT}","--api_user={$API_USER}","--api_password={$API_PASSWORD}","--storage_name={HOST.NAME}","--status"],2h,"ge","1")=40 or count(/Huawei OceanStor Rest-API v2/huawei_get_state.py["--api_ip={HOST.IP}","--api_port={$API_PORT}","--api_user={$API_USER}","--api_password={$API_PASSWORD}","--storage_name={HOST.NAME}","--status"],2h,"ge","2")=40' name: 'Error occurs on sending metrics' priority: HIGH - uuid: 91b6ccef8bde42b29e6cadecbbfc49f6 expression: 'nodata(/Huawei OceanStor Rest-API v2/huawei_get_state.py["--api_ip={HOST.IP}","--api_port={$API_PORT}","--api_user={$API_USER}","--api_password={$API_PASSWORD}","--storage_name={HOST.NAME}","--status"],3600s)=1' name: 'No data from storage in next 1 hour' priority: HIGH discovery_rules: - uuid: 2be41fe3ad2f43b199a6fd6c2f455d4d name: BBU type: TRAP key: backup_power delay: '0' lifetime: 1d item_prototypes: - uuid: 86ed1801dbf44d99bef7b6a8304743c2 name: 'Health status of a BBU "{#LOCATION}"' type: TRAP key: 'health.backup_power.[{#LOCATION}]' delay: '0' history: 1w trends: 90d valuemap: name: Huawei_HEALTH_STATUS request_method: POST tags: - tag: Application value: 'BBU health' trigger_prototypes: - uuid: a232a1678ace4ae09b23825b7785c11c expression: 'min(/Huawei OceanStor Rest-API v2/health.backup_power.[{#LOCATION}],43200s)=12 or last(/Huawei OceanStor Rest-API v2/health.backup_power.[{#LOCATION}])=2 or last(/Huawei OceanStor Rest-API v2/health.backup_power.[{#LOCATION}])=3 or last(/Huawei OceanStor Rest-API v2/health.backup_power.[{#LOCATION}])=0' name: 'BBU "{#LOCATION}" health status is {ITEM.VALUE}' priority: HIGH - uuid: 8473b8e6fcd84a32af1487dc1647e340 name: 'Running status of a BBU "{#LOCATION}"' type: TRAP key: 'running.backup_power.[{#LOCATION}]' delay: '0' history: 1w trends: 90d valuemap: name: Huawei_RUNNING_STATUS request_method: POST tags: - tag: Application value: 'BBU health' trigger_prototypes: - uuid: dd70438d60004680a4b764eca99ac2e9 expression: 'last(/Huawei OceanStor Rest-API v2/running.backup_power.[{#LOCATION}])=28 or last(/Huawei OceanStor Rest-API v2/running.backup_power.[{#LOCATION}])=0' name: 'BBU "{#LOCATION}" running status is {ITEM.VALUE}' priority: HIGH request_method: POST - uuid: ece9b7f6bebc47398ce024c0c9eb2dd1 name: Controller type: TRAP key: controller delay: '0' lifetime: 1d item_prototypes: - uuid: bf72ff171c15405b9566704fe9a47735 name: 'Health status of a Controller "{#LOCATION}"' type: TRAP key: 'health.controller.[{#LOCATION}]' delay: '0' history: 1w trends: 90d valuemap: name: Huawei_HEALTH_STATUS request_method: POST tags: - tag: Application value: 'Controller health' trigger_prototypes: - uuid: ddd7dfa08f074d0ca89445bc30e520a5 expression: 'last(/Huawei OceanStor Rest-API v2/health.controller.[{#LOCATION}])<>1' name: 'Controller "{#LOCATION}" health status is {ITEM.VALUE}' priority: HIGH - uuid: 6abbcf55f9b64376a09f3cd60aca2471 name: 'Running status of a Controller "{#LOCATION}"' type: TRAP key: 'running.controller.[{#LOCATION}]' delay: '0' history: 1w trends: 90d valuemap: name: Huawei_RUNNING_STATUS request_method: POST tags: - tag: Application value: Controller trigger_prototypes: - uuid: 3e8a74af3eb4492594a12e03d306b863 expression: 'last(/Huawei OceanStor Rest-API v2/running.controller.[{#LOCATION}])<>27' name: 'Controller "{#LOCATION}" running status is {ITEM.VALUE}' priority: HIGH request_method: POST - uuid: 8a9bd88cf622461fa4c8ddb5f278ec77 name: Disk type: TRAP key: disk delay: '0' lifetime: 1d item_prototypes: - uuid: 1685fbaf9cc14e55b5fac745f0211891 name: 'Health status of disk "{#LOCATION}"' type: TRAP key: 'health.disk.[{#LOCATION}]' delay: '0' history: 1w trends: 90d valuemap: name: Huawei_HEALTH_STATUS request_method: POST tags: - tag: Application value: 'Disk health' trigger_prototypes: - uuid: 1dba7d69031541059d9c007dec6f19ea expression: 'last(/Huawei OceanStor Rest-API v2/health.disk.[{#LOCATION}])<>1' name: 'Hard disk "{#LOCATION}" health status is {ITEM.VALUE}' priority: HIGH - uuid: e9ee7d58ab5143f9825486dcf0ba7dc0 name: 'Running status of disk "{#LOCATION}"' type: TRAP key: 'running.disk.[{#LOCATION}]' delay: '0' history: 1w trends: 90d valuemap: name: Huawei_RUNNING_STATUS request_method: POST tags: - tag: Application value: Disk trigger_prototypes: - uuid: fc644d68a3314082b08c0e5ac65175c7 expression: 'last(/Huawei OceanStor Rest-API v2/running.disk.[{#LOCATION}])<>27' name: 'Hard disk "{#LOCATION}" running status is {ITEM.VALUE}' priority: HIGH request_method: POST - uuid: 285109d6e5184699a5a07241efb7a6e9 name: DiskDomain type: TRAP key: diskpool delay: '0' lifetime: 1d item_prototypes: - uuid: b7b8c63a11dc486084f71fc28279506d name: 'Health status of a DiskDomain "{#NAME}"' type: TRAP key: 'health.diskpool.[{#NAME}]' delay: '0' history: 1w trends: 90d valuemap: name: Huawei_HEALTH_STATUS request_method: POST tags: - tag: Application value: DiskDomain trigger_prototypes: - uuid: d5fa94477aa94cada69efb838970915a expression: 'last(/Huawei OceanStor Rest-API v2/health.diskpool.[{#NAME}])=2' name: 'DiskDomain "{#NAME}" health status is {ITEM.VALUE}' priority: DISASTER - uuid: 41712ba6fff446049764a56c6f9622fb name: 'Running status of a DiskDomain "{#NAME}"' type: TRAP key: 'running.diskpool.[{#NAME}]' delay: '0' history: 1w trends: 90d valuemap: name: Huawei_RUNNING_STATUS request_method: POST tags: - tag: Application value: DiskDomain trigger_prototypes: - uuid: 0f28dbbcfea84af3ba01e6e0240445e2 expression: 'last(/Huawei OceanStor Rest-API v2/running.diskpool.[{#NAME}])=28' name: 'DiskDomain "{#NAME}" running status is {ITEM.VALUE}' priority: DISASTER request_method: POST - uuid: cdcadcd437044067a9800cf6a3c4fcab name: Enclosure type: TRAP key: enclosure delay: '0' lifetime: 1d item_prototypes: - uuid: 22f078878235432d971a2a90d368fae1 name: 'Health status of an enclosure "{#LOCATION}"' type: TRAP key: 'health.enclosure.[{#LOCATION}]' delay: '0' history: 1w trends: 90d valuemap: name: Huawei_HEALTH_STATUS request_method: POST tags: - tag: Application value: 'Enclosure health' trigger_prototypes: - uuid: 3d4453a1cd0548e59550f4ff38f3f9a5 expression: 'last(/Huawei OceanStor Rest-API v2/health.enclosure.[{#LOCATION}])<>1' name: 'Enclosure "{#LOCATION}" health status is {ITEM.VALUE}' priority: HIGH - uuid: d2926bdf92434c94b0a156ef5ae0c37a name: 'Running status of an enclosure "{#LOCATION}"' type: TRAP key: 'running.enclosure.[{#LOCATION}]' delay: '0' history: 1w trends: 90d valuemap: name: Huawei_RUNNING_STATUS request_method: POST tags: - tag: Application value: Enclosure trigger_prototypes: - uuid: 9f7d97bd78fa415f8952b21632290d53 expression: 'last(/Huawei OceanStor Rest-API v2/running.enclosure.[{#LOCATION}])<>27' name: 'Enclosure "{#LOCATION}" running status is {ITEM.VALUE}' priority: HIGH request_method: POST - uuid: d62e6ff0fd5b4389a914e186b531d7a9 name: PortEth type: TRAP key: eth_port delay: '0' lifetime: 1d item_prototypes: - uuid: b7206a8a5c6f4ddb833160591a24a921 name: 'Health status of an Ethernet port "{#LOCATION}"' type: TRAP key: 'health.eth_port.[{#LOCATION}]' delay: '0' history: 1w trends: 90d valuemap: name: Huawei_HEALTH_STATUS request_method: POST tags: - tag: Application value: 'Eth health' trigger_prototypes: - uuid: 5b880d34086a4e21beef334e19b4205b expression: 'last(/Huawei OceanStor Rest-API v2/health.eth_port.[{#LOCATION}])<>1' name: 'PortEth "{#LOCATION}" health status is {ITEM.VALUE}' priority: HIGH - uuid: 1dadeae46f964f8a8d9fde5a29ef5bc1 name: 'Running status of an Ethernet port "{#LOCATION}"' type: TRAP key: 'running.eth_port.[{#LOCATION}]' delay: '0' history: 1w trends: 90d valuemap: name: Huawei_RUNNING_STATUS request_method: POST tags: - tag: Application value: Eth trigger_prototypes: - uuid: 0886aa71721840abb87fdc35a8584335 expression: 'last(/Huawei OceanStor Rest-API v2/running.eth_port.[{#LOCATION}])=11' name: 'PortEth "{#LOCATION}" running status is {ITEM.VALUE}' priority: HIGH request_method: POST - uuid: f746e02e64a34222b5db2d0c4ca3afdb name: ExpBoard type: TRAP key: expboard delay: '0' lifetime: 1d item_prototypes: - uuid: 40ef799a98754c368f3d2215f1ac35cc name: 'Health status of an expansion module "{#LOCATION}"' type: TRAP key: 'health.expboard.[{#LOCATION}]' delay: '0' history: 1w trends: 90d valuemap: name: Huawei_HEALTH_STATUS request_method: POST tags: - tag: Application value: 'ExpBoard health' trigger_prototypes: - uuid: 59fbd19b47e64c5c9204b37f4a79cc75 expression: 'last(/Huawei OceanStor Rest-API v2/health.expboard.[{#LOCATION}])<>1' name: 'ExpBoard "{#LOCATION}" health status is {ITEM.VALUE}' priority: HIGH - uuid: ba578a42194245dea81c576fea601115 name: 'Running status of an expansion module "{#LOCATION}"' type: TRAP key: 'running.expboard.[{#LOCATION}]' delay: '0' history: 1w trends: 90d valuemap: name: Huawei_RUNNING_STATUS request_method: POST tags: - tag: Application value: ExpBoard trigger_prototypes: - uuid: 788e63c9c0e44a66905056b3dd76f854 expression: 'last(/Huawei OceanStor Rest-API v2/running.expboard.[{#LOCATION}])<>27 and last(/Huawei OceanStor Rest-API v2/running.expboard.[{#LOCATION}])<>2' name: 'ExpBoard "{#LOCATION}" running status is {ITEM.VALUE}' priority: HIGH request_method: POST - uuid: 0e3c813e21fa4abbae332bbb30fde44b name: FAN type: TRAP key: fan delay: '0' lifetime: 3d item_prototypes: - uuid: ac4d1d2d21544754bdfe719454fd4c88 name: 'Health Status of a FAN "{#LOCATION}"' type: TRAP key: 'health.fan.[{#LOCATION}]' delay: '0' history: 1w trends: 90d valuemap: name: Huawei_HEALTH_STATUS request_method: POST tags: - tag: Application value: 'FAN health' trigger_prototypes: - uuid: 9edd6f7a4df94f01916a0f58b074faca expression: 'last(/Huawei OceanStor Rest-API v2/health.fan.[{#LOCATION}])<>1' name: 'FAN "{#LOCATION}" health status is {ITEM.VALUE}' priority: HIGH - uuid: fb94a77ed2734f5aa9e774a880f11149 name: 'Running status of a FAN "{#LOCATION}"' type: TRAP key: 'running.fan.[{#LOCATION}]' delay: '0' history: 1w trends: 90d valuemap: name: Huawei_RUNNING_STATUS request_method: POST tags: - tag: Application value: FAN trigger_prototypes: - uuid: dbaee13921b34b76aeb239c7117c276f expression: 'last(/Huawei OceanStor Rest-API v2/running.fan.[{#LOCATION}])<>27 and last(/Huawei OceanStor Rest-API v2/running.fan.[{#LOCATION}])<>2' name: 'FAN "{#LOCATION}" running status is {ITEM.VALUE}' priority: HIGH request_method: POST - uuid: 826f5bd860964597a4fa08f4743957a4 name: PortFibreChannel type: TRAP key: fc_port delay: '0' lifetime: 1d item_prototypes: - uuid: 36043f32a0a84d3593a56b9604c50ae8 name: 'Health status of a Fibre Channel port "{#LOCATION}"' type: TRAP key: 'health.fc_port.[{#LOCATION}]' delay: '0' history: 1w trends: 90d valuemap: name: Huawei_HEALTH_STATUS request_method: POST tags: - tag: Application value: 'FC health' trigger_prototypes: - uuid: 5e2327905e9a46ca9a650f40e51bc198 expression: 'last(/Huawei OceanStor Rest-API v2/health.fc_port.[{#LOCATION}])<>1' name: 'PortFibreChannel "{#LOCATION}" health status is {ITEM.VALUE}' priority: HIGH - uuid: 79eecc6452fd465b86893f90a6af7999 name: 'Running status of a Fibre Channel port "{#LOCATION}"' type: TRAP key: 'running.fc_port.[{#LOCATION}]' delay: '0' history: 1w trends: 90d valuemap: name: Huawei_RUNNING_STATUS request_method: POST tags: - tag: Application value: FC trigger_prototypes: - uuid: c3d0724c6d644eab949ec73cba2c739e expression: 'last(/Huawei OceanStor Rest-API v2/running.fc_port.[{#LOCATION}])=11' name: 'PortFibreChannel "{#LOCATION}" running status is {ITEM.VALUE}' priority: HIGH request_method: POST - uuid: 4e5a028d11c14a7f8231575b2bba1b1f name: InterfaceModule type: TRAP key: intf_module delay: '0' lifetime: 1d item_prototypes: - uuid: 0f459967b4044d01b21ddc34f11932f4 name: 'Health status of an interface module "{#LOCATION}"' type: TRAP key: 'health.intf_module.[{#LOCATION}]' delay: '0' history: 1w trends: 90d valuemap: name: Huawei_HEALTH_STATUS request_method: POST tags: - tag: Application value: 'Interface Module health' trigger_prototypes: - uuid: 1993ca5f07d84003b8786239fd7eca04 expression: 'last(/Huawei OceanStor Rest-API v2/health.intf_module.[{#LOCATION}])<>1' name: 'InterfaceModule "{#LOCATION}" health status is {ITEM.VALUE}' priority: HIGH - uuid: 81d88930f16b4905aadbe9f8f515613a name: 'Running status of an interface module "{#LOCATION}"' type: TRAP key: 'running.intf_module.[{#LOCATION}]' delay: '0' history: 1w trends: 90d valuemap: name: Huawei_RUNNING_STATUS request_method: POST tags: - tag: Application value: 'Interface Module' trigger_prototypes: - uuid: a4174cb454894035a84ea766b205f9ac expression: 'last(/Huawei OceanStor Rest-API v2/running.intf_module.[{#LOCATION}])<>27 and last(/Huawei OceanStor Rest-API v2/running.intf_module.[{#LOCATION}])<>2' name: 'InterfaceModule "{#LOCATION}" running status is {ITEM.VALUE}' priority: HIGH request_method: POST - uuid: 03a238f4dcc34f4cb3720211754e4e72 name: Lun type: TRAP key: lun delay: '0' lifetime: 1d item_prototypes: - uuid: d84974644e204158bc6d3ec9027faa17 name: 'Health status of the LUN "{#NAME}"' type: TRAP key: 'health.lun.[{#NAME}]' delay: '0' history: 1w trends: 60d valuemap: name: Huawei_HEALTH_STATUS request_method: POST tags: - tag: Application value: 'LUN health' trigger_prototypes: - uuid: 7044e7da4d6d40059db36edbe45b0402 expression: 'last(/Huawei OceanStor Rest-API v2/health.lun.[{#NAME}])<>1' name: 'LUN "{#NAME}" health status is {ITEM.VALUE}' priority: HIGH - uuid: ea801c546566441584c2ac5242853bd9 name: 'Running status of the LUN "{#NAME}"' type: TRAP key: 'running.lun.[{#NAME}]' delay: '0' history: 1w trends: 60d valuemap: name: Huawei_RUNNING_STATUS request_method: POST tags: - tag: Application value: 'LUN health' trigger_prototypes: - uuid: d4eea452cff0401c9387519cba972688 expression: 'last(/Huawei OceanStor Rest-API v2/running.lun.[{#NAME}])<>27' name: 'LUN "{#NAME}" running status is {ITEM.VALUE}' priority: HIGH request_method: POST - uuid: 2efbd4bcb7a341dbba28e9636b362631 name: PSU type: TRAP key: power delay: '0' lifetime: 1d item_prototypes: - uuid: 6bc1bcf100144407975490803b609c03 name: 'Health Status of a PSU "{#LOCATION}"' type: TRAP key: 'health.power.[{#LOCATION}]' delay: '0' history: 1w trends: 90d valuemap: name: Huawei_HEALTH_STATUS request_method: POST tags: - tag: Application value: 'PSU health' trigger_prototypes: - uuid: e81c007f04d549f280829eb1ee997f7d expression: 'last(/Huawei OceanStor Rest-API v2/health.power.[{#LOCATION}])<>1' name: 'PSU "{#LOCATION}" health status is {ITEM.VALUE}' priority: HIGH - uuid: f1680d8f6ac44a3f9428a829cc9a3066 name: 'Running Status of a PSU "{#LOCATION}"' type: TRAP key: 'running.power.[{#LOCATION}]' delay: '0' history: 1w trends: 90d valuemap: name: Huawei_RUNNING_STATUS request_method: POST tags: - tag: Application value: PSU trigger_prototypes: - uuid: 51037b933ef2479fbc3599eb932150d2 expression: 'last(/Huawei OceanStor Rest-API v2/running.power.[{#LOCATION}])<>27' name: 'PSU "{#LOCATION}" running status is {ITEM.VALUE}' priority: HIGH request_method: POST - uuid: 15ccc73e7d6f448faef3ac7141ff96ca name: PortSAS type: TRAP key: sas_port delay: '0' lifetime: 1d item_prototypes: - uuid: c698513ed34740ac81514555a2a29c15 name: 'Health status of a SAS port "{#LOCATION}"' type: TRAP key: 'health.sas_port.[{#LOCATION}]' delay: '0' history: 1w trends: 90d valuemap: name: Huawei_HEALTH_STATUS request_method: POST tags: - tag: Application value: 'SAS health' trigger_prototypes: - uuid: 85f78da6f6f947758a32bf7d6e85fe36 expression: 'last(/Huawei OceanStor Rest-API v2/health.sas_port.[{#LOCATION}])<>1' name: 'PortSAS "{#LOCATION}" health status is {ITEM.VALUE}' priority: HIGH - uuid: b21a933d01b14afebbc6476a0d6df15e name: 'Running status of a SAS port "{#LOCATION}"' type: TRAP key: 'running.sas_port.[{#LOCATION}]' delay: '0' history: 1w trends: 90d valuemap: name: Huawei_RUNNING_STATUS request_method: POST tags: - tag: Application value: SAS trigger_prototypes: - uuid: 4e7f7a4a0d5242c9bfd6732a70862b00 expression: 'last(/Huawei OceanStor Rest-API v2/running.sas_port.[{#LOCATION}])=11' name: 'PortSAS "{#LOCATION}" running status is {ITEM.VALUE}' priority: HIGH request_method: POST - uuid: 52df3d82a69142ad9dc7c3d7429ac969 name: Pool type: TRAP key: storagepool delay: '0' lifetime: 1d item_prototypes: - uuid: 27632f6a90b14cb1a5842d1b1512795b name: 'Free capacity of a Pool "{#NAME}"' type: TRAP key: 'free.capacity.storagepool.[{#NAME}]' delay: '0' history: 1w trends: 90d units: B request_method: POST tags: - tag: Application value: Pool - uuid: f3c397cbb0594f039c1db29b2e4c4316 name: 'Health status of a Pool "{#NAME}"' type: TRAP key: 'health.storagepool.[{#NAME}]' delay: '0' history: 1w trends: 90d valuemap: name: Huawei_HEALTH_STATUS request_method: POST tags: - tag: Application value: Pool trigger_prototypes: - uuid: 6093637e12234eb98d828e126e94ff74 expression: 'last(/Huawei OceanStor Rest-API v2/health.storagepool.[{#NAME}])=2' name: 'Pool "{#NAME}" health status is {ITEM.VALUE}' priority: DISASTER - uuid: 530ecfce8db54a9384b33c9d310e3f1f name: 'Running status of a Pool "{#NAME}"' type: TRAP key: 'running.storagepool.[{#NAME}]' delay: '0' history: 1w trends: 90d valuemap: name: Huawei_RUNNING_STATUS request_method: POST tags: - tag: Application value: Pool trigger_prototypes: - uuid: 895e9f151c8146b4b1d36704422641b7 expression: 'last(/Huawei OceanStor Rest-API v2/running.storagepool.[{#NAME}])=28' name: 'Pool "{#NAME}" running status is {ITEM.VALUE}' priority: DISASTER - uuid: 1a50cac5ec524ee19f4da7a9aeb64045 name: 'Subscribed capacity of a Pool "{#NAME}" in percent' type: CALCULATED key: 'subscribed.capacity.percent.storagepool.[{#NAME}]' delay: 3m history: 1w trends: 90d value_type: FLOAT units: '%' params: '(100*last(//subscribed.capacity.storagepool.[{#NAME}]))/last(//total.capacity.storagepool.[{#NAME}])' request_method: POST tags: - tag: Application value: Pool trigger_prototypes: - uuid: 8a18c2dc1c444914b1448482982e81f6 expression: 'last(/Huawei OceanStor Rest-API v2/subscribed.capacity.percent.storagepool.[{#NAME}])>{$SUBSCRIBED_PERCENT:"{#NAME}"}' name: 'Subscribed capacity on pool "{#NAME}" > {$SUBSCRIBED_PERCENT:"{#NAME}"}%' priority: HIGH - uuid: c06ac7ccab174ab9bf5f0819953f9747 name: 'Subscribed capacity of a Pool "{#NAME}"' type: TRAP key: 'subscribed.capacity.storagepool.[{#NAME}]' delay: '0' history: 1w trends: 90d units: B request_method: POST tags: - tag: Application value: Pool - uuid: f998e184ef9544bd935873d4c122b143 name: 'Total capacity of a Pool "{#NAME}"' type: TRAP key: 'total.capacity.storagepool.[{#NAME}]' delay: '0' history: 1w trends: 90d units: B request_method: POST tags: - tag: Application value: Pool - uuid: ac99ec0f043b4dcc8772cfba52bc243c name: 'Used capacity of a Pool "{#NAME}" in percent' type: CALCULATED key: 'used.capacity.percent.storagepool.[{#NAME}]' delay: 3m value_type: FLOAT units: '%' params: '(100*last(//used.capacity.storagepool.[{#NAME}]))/last(//total.capacity.storagepool.[{#NAME}])' request_method: POST tags: - tag: Application value: Pool trigger_prototypes: - uuid: f5e3c746a33b4638808c9bc73a1a85e0 expression: 'last(/Huawei OceanStor Rest-API v2/used.capacity.percent.storagepool.[{#NAME}])>{$USED_PERCENT:"{#NAME}"}' name: 'Used capacity on pool "{#NAME}" > {$USED_PERCENT:"{#NAME}"}%' priority: HIGH - uuid: 45419d8c3c3449b9bb25aadaed3e531b name: 'Used capacity of a Pool "{#NAME}"' type: TRAP key: 'used.capacity.storagepool.[{#NAME}]' delay: '0' history: 1w trends: 90d units: B request_method: POST tags: - tag: Application value: Pool request_method: POST macros: - macro: '{$API_PASSWORD}' - macro: '{$API_PORT}' value: '8088' - macro: '{$API_USER}' - macro: '{$SUBSCRIBED_PERCENT}' value: '91' - macro: '{$USED_PERCENT}' value: '91' valuemaps: - uuid: ae08ec8fb5f8438381a2c79fd9f9fcb0 name: Huawei_HEALTH_STATUS mappings: - value: '0' newvalue: Unknown - value: '1' newvalue: Normal - value: '2' newvalue: Fault - value: '3' newvalue: Pre-fail - value: '4' newvalue: 'Partially broken' - value: '5' newvalue: Degraded - value: '6' newvalue: 'Bad sectors found' - value: '7' newvalue: 'Bit errors found' - value: '8' newvalue: Consistent - value: '9' newvalue: Inconsistent - value: '10' newvalue: Busy - value: '11' newvalue: 'No input' - value: '12' newvalue: 'Low battery' - value: '13' newvalue: 'Single link fault' - value: '14' newvalue: Invalid - value: '15' newvalue: 'Write protect' - uuid: 17df05ccc3944e6fbd0c6a4d46861604 name: Huawei_RUNNING_STATUS mappings: - value: '0' newvalue: Unknown - value: '1' newvalue: Normal - value: '2' newvalue: Running - value: '5' newvalue: 'sleep in high temperature' - value: '10' newvalue: Link_up - value: '11' newvalue: Link_down - value: '12' newvalue: 'powering on' - value: '13' newvalue: 'powered off' - value: '14' newvalue: pre-copy - value: '16' newvalue: reconstruction - value: '27' newvalue: online - value: '28' newvalue: offline - value: '32' newvalue: balancing - value: '48' newvalue: charging - value: '49' newvalue: 'charging completed' - value: '50' newvalue: discharging - value: '53' newvalue: initializing - value: '103' newvalue: 'power-on failed'