diff options
author | Vyacheslav Khaliev <vyacheslav.khaliev@zabbix.com> | 2022-05-16 13:29:04 +0300 |
---|---|---|
committer | Vyacheslav Khaliev <vyacheslav.khaliev@zabbix.com> | 2022-05-16 13:29:04 +0300 |
commit | 4418148c00f4e09d201c7920dd3acc0d156e2d73 (patch) | |
tree | 9fe0c1f98eb1ffbbec94181e0f02e24bfb4de8e8 /templates/san | |
parent | d45aed2921a101e9f58166ca10d354d815eafb78 (diff) |
.........T [ZBXNEXT-7632] updated HPE Primera template
Diffstat (limited to 'templates/san')
-rw-r--r-- | templates/san/hpe_primera_http/README.md | 22 | ||||
-rw-r--r-- | templates/san/hpe_primera_http/template_san_hpe_primera_http.yaml | 16 |
2 files changed, 26 insertions, 12 deletions
diff --git a/templates/san/hpe_primera_http/README.md b/templates/san/hpe_primera_http/README.md index cbafe404555..de5bd861dcb 100644 --- a/templates/san/hpe_primera_http/README.md +++ b/templates/san/hpe_primera_http/README.md @@ -71,20 +71,20 @@ There are no template links in this template. |HPE |HPE Primera: Get system information |<p>General system information.</p> |SCRIPT |hpe.primera.system.info<p>**Preprocessing**:</p><p>- CHECK_NOT_SUPPORTED: ``</p><p>⛔️ON_FAIL: `CUSTOM_VALUE -> {}`</p><p>**Expression**:</p>`The text is too long. Please see the template.` | |HPE |HPE Primera: Get tasks |<p>A list of latest executed, in progress or failed tasks.</p> |SCRIPT |hpe.primera.tasks<p>**Preprocessing**:</p><p>- JSONPATH: `$.members`</p><p>- JAVASCRIPT: `The text is too long. Please see the template.`</p><p>**Expression**:</p>`The text is too long. Please see the template.` | |HPE |HPE Primera: Get volumes |<p>A list of storage volumes.</p> |SCRIPT |hpe.primera.volumes<p>**Preprocessing**:</p><p>- JSONPATH: `$.members`</p><p>**Expression**:</p>`The text is too long. Please see the template.` | -|HPE |HPE Primera: Capacity allocated |<p>Allocated capacity in the system.</p> |DEPENDENT |hpe.primera.system.capacity.allocated<p>**Preprocessing**:</p><p>- JSONPATH: `$.allocatedCapacityMiB`</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1h`</p><p>- MULTIPLIER: `1048576`</p> | -|HPE |HPE Primera: Chunklet size |<p>Chunklet size.</p> |DEPENDENT |hpe.primera.system.chunklet.size<p>**Preprocessing**:</p><p>- JSONPATH: `$.chunkletSizeMiB`</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1h`</p><p>- MULTIPLIER: `1048576`</p> | +|HPE |HPE Primera: Capacity allocated |<p>Allocated capacity in the system.</p> |DEPENDENT |hpe.primera.system.capacity.allocated<p>**Preprocessing**:</p><p>- JSONPATH: `$.allocatedCapacityMiB`</p><p>⛔️ON_FAIL: `DISCARD_VALUE -> `</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1h`</p><p>- MULTIPLIER: `1048576`</p> | +|HPE |HPE Primera: Chunklet size |<p>Chunklet size.</p> |DEPENDENT |hpe.primera.system.chunklet.size<p>**Preprocessing**:</p><p>- JSONPATH: `$.chunkletSizeMiB`</p><p>⛔️ON_FAIL: `DISCARD_VALUE -> `</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1h`</p><p>- MULTIPLIER: `1048576`</p> | |HPE |HPE Primera: System contact |<p>Contact of the system.</p> |DEPENDENT |hpe.primera.system.contact<p>**Preprocessing**:</p><p>- JSONPATH: `$.contact`</p><p>⛔️ON_FAIL: `DISCARD_VALUE -> `</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1d`</p> | -|HPE |HPE Primera: Capacity failed |<p>Failed capacity in the system.</p> |DEPENDENT |hpe.primera.system.capacity.failed<p>**Preprocessing**:</p><p>- JSONPATH: `$.failedCapacityMiB`</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1h`</p><p>- MULTIPLIER: `1048576`</p> | -|HPE |HPE Primera: Capacity free |<p>Free capacity in the system.</p> |DEPENDENT |hpe.primera.system.capacity.free<p>**Preprocessing**:</p><p>- JSONPATH: `$.freeCapacityMiB`</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `10m`</p><p>- MULTIPLIER: `1048576`</p> | +|HPE |HPE Primera: Capacity failed |<p>Failed capacity in the system.</p> |DEPENDENT |hpe.primera.system.capacity.failed<p>**Preprocessing**:</p><p>- JSONPATH: `$.failedCapacityMiB`</p><p>⛔️ON_FAIL: `DISCARD_VALUE -> `</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1h`</p><p>- MULTIPLIER: `1048576`</p> | +|HPE |HPE Primera: Capacity free |<p>Free capacity in the system.</p> |DEPENDENT |hpe.primera.system.capacity.free<p>**Preprocessing**:</p><p>- JSONPATH: `$.freeCapacityMiB`</p><p>⛔️ON_FAIL: `DISCARD_VALUE -> `</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `10m`</p><p>- MULTIPLIER: `1048576`</p> | |HPE |HPE Primera: System health |<p>System availability by WSAPI.</p> |DEPENDENT |hpe.primera.system.health<p>**Preprocessing**:</p><p>- JSONPATH: `$.id`</p><p>⛔️ON_FAIL: `CUSTOM_VALUE -> 0`</p> | |HPE |HPE Primera: System location |<p>Location of the system.</p> |DEPENDENT |hpe.primera.system.location<p>**Preprocessing**:</p><p>- JSONPATH: `$.location`</p><p>⛔️ON_FAIL: `DISCARD_VALUE -> `</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1d`</p> | -|HPE |HPE Primera: Model |<p>System model.</p> |DEPENDENT |hpe.primera.system.model<p>**Preprocessing**:</p><p>- JSONPATH: `$.model`</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1d`</p> | -|HPE |HPE Primera: System name |<p>System name.</p> |DEPENDENT |hpe.primera.system.name<p>**Preprocessing**:</p><p>- JSONPATH: `$.name`</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `6h`</p> | -|HPE |HPE Primera: Serial number |<p>System serial number.</p> |DEPENDENT |hpe.primera.system.serial_number<p>**Preprocessing**:</p><p>- JSONPATH: `$.serialNumber`</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1d`</p> | -|HPE |HPE Primera: Software version number |<p>Storage system software version number.</p> |DEPENDENT |hpe.primera.system.sw_version<p>**Preprocessing**:</p><p>- JSONPATH: `$.systemVersion`</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1d`</p> | -|HPE |HPE Primera: Capacity total |<p>Total capacity in the system.</p> |DEPENDENT |hpe.primera.system.capacity.total<p>**Preprocessing**:</p><p>- JSONPATH: `$.totalCapacityMiB`</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1h`</p><p>- MULTIPLIER: `1048576`</p> | -|HPE |HPE Primera: Nodes total |<p>Total number of nodes in the system.</p> |DEPENDENT |hpe.primera.system.nodes.total<p>**Preprocessing**:</p><p>- JSONPATH: `$.totalNodes`</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1h`</p> | -|HPE |HPE Primera: Nodes online |<p>Number of online nodes in the system.</p> |DEPENDENT |hpe.primera.system.nodes.online<p>**Preprocessing**:</p><p>- JSONPATH: `$.onlineNodes.length()`</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1h`</p> | +|HPE |HPE Primera: Model |<p>System model.</p> |DEPENDENT |hpe.primera.system.model<p>**Preprocessing**:</p><p>- JSONPATH: `$.model`</p><p>⛔️ON_FAIL: `DISCARD_VALUE -> `</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1d`</p> | +|HPE |HPE Primera: System name |<p>System name.</p> |DEPENDENT |hpe.primera.system.name<p>**Preprocessing**:</p><p>- JSONPATH: `$.name`</p><p>⛔️ON_FAIL: `DISCARD_VALUE -> `</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `6h`</p> | +|HPE |HPE Primera: Serial number |<p>System serial number.</p> |DEPENDENT |hpe.primera.system.serial_number<p>**Preprocessing**:</p><p>- JSONPATH: `$.serialNumber`</p><p>⛔️ON_FAIL: `DISCARD_VALUE -> `</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1d`</p> | +|HPE |HPE Primera: Software version number |<p>Storage system software version number.</p> |DEPENDENT |hpe.primera.system.sw_version<p>**Preprocessing**:</p><p>- JSONPATH: `$.systemVersion`</p><p>⛔️ON_FAIL: `DISCARD_VALUE -> `</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1d`</p> | +|HPE |HPE Primera: Capacity total |<p>Total capacity in the system.</p> |DEPENDENT |hpe.primera.system.capacity.total<p>**Preprocessing**:</p><p>- JSONPATH: `$.totalCapacityMiB`</p><p>⛔️ON_FAIL: `DISCARD_VALUE -> `</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1h`</p><p>- MULTIPLIER: `1048576`</p> | +|HPE |HPE Primera: Nodes total |<p>Total number of nodes in the system.</p> |DEPENDENT |hpe.primera.system.nodes.total<p>**Preprocessing**:</p><p>- JSONPATH: `$.totalNodes`</p><p>⛔️ON_FAIL: `DISCARD_VALUE -> `</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1h`</p> | +|HPE |HPE Primera: Nodes online |<p>Number of online nodes in the system.</p> |DEPENDENT |hpe.primera.system.nodes.online<p>**Preprocessing**:</p><p>- JSONPATH: `$.onlineNodes.length()`</p><p>⛔️ON_FAIL: `DISCARD_VALUE -> `</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1h`</p> | |HPE |HPE Primera: Disks total |<p>Number of physical disks.</p> |SCRIPT |hpe.primera.disks.total<p>**Preprocessing**:</p><p>- JSONPATH: `$.total`</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1h`</p><p>**Expression**:</p>`The text is too long. Please see the template.` | |HPE |HPE Primera: Service ping |<p>Checks if the service is running and accepting TCP connections.</p> |SIMPLE |net.tcp.service["{$HPE.PRIMERA.API.SCHEME}","{HOST.CONN}","{$HPE.PRIMERA.API.PORT}"]<p>**Preprocessing**:</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `10m`</p> | |HPE |CPG [{#NAME}]: Degraded state |<p>Detailed state of the CPG:</p><p>LDS_NOT_STARTED (1) - LDs not started.</p><p>NOT_STARTED (2) - VV not started.</p><p>NEEDS_CHECK (3) - check for consistency.</p><p>NEEDS_MAINT_CHECK (4) - maintenance check is required.</p><p>INTERNAL_CONSISTENCY_ERROR (5) - internal consistency error.</p><p>SNAPDATA_INVALID (6) - invalid snapshot data.</p><p>PRESERVED (7) - unavailable LD sets due to missing chunklets. Preserved remaining VV data.</p><p>STALE (8) - parts of the VV contain old data because of a copy-on-write operation.</p><p>COPY_FAILED (9) - a promote or copy operation to this volume failed.</p><p>DEGRADED_AVAIL (10) - degraded due to availability.</p><p>DEGRADED_PERF (11) - degraded due to performance.</p><p>PROMOTING (12) - volume is the current target of a promote operation.</p><p>COPY_TARGET (13) - volume is the current target of a physical copy operation.</p><p>RESYNC_TARGET (14) - volume is the current target of a resynchronized copy operation.</p><p>TUNING (15) - volume tuning is in progress.</p><p>CLOSING (16) - volume is closing.</p><p>REMOVING (17) - removing the volume.</p><p>REMOVING_RETRY (18) - retrying a volume removal operation.</p><p>CREATING (19) - creating a volume.</p><p>COPY_SOURCE (20) - copy source.</p><p>IMPORTING (21) - importing a volume.</p><p>CONVERTING (22) - converting a volume.</p><p>INVALID (23) - invalid.</p><p>EXCLUSIVE (24) - local storage system has exclusive access to the volume.</p><p>CONSISTENT (25) - volume is being imported consistently along with other volumes in the VV set.</p><p>STANDBY (26) - volume in standby mode.</p><p>SD_META_INCONSISTENT (27) - SD Meta Inconsistent.</p><p>SD_NEEDS_FIX (28) - SD needs fix.</p><p>SD_META_FIXING (29) - SD meta fix.</p><p>UNKNOWN (999) - unknown state.</p><p>NOT_SUPPORTED_BY_WSAPI (1000) - state not supported by WSAPI.</p> |DEPENDENT |hpe.primera.cpg.state["{#ID}",degraded]<p>**Preprocessing**:</p><p>- JSONPATH: `$[?(@.id == "{#ID}")].degradedStates.first()`</p><p>- JAVASCRIPT: `return JSON.stringify(JSON.parse(value));`</p> | diff --git a/templates/san/hpe_primera_http/template_san_hpe_primera_http.yaml b/templates/san/hpe_primera_http/template_san_hpe_primera_http.yaml index 831857d09ee..35af42971a5 100644 --- a/templates/san/hpe_primera_http/template_san_hpe_primera_http.yaml +++ b/templates/san/hpe_primera_http/template_san_hpe_primera_http.yaml @@ -1,6 +1,6 @@ zabbix_export: version: '6.0' - date: '2022-05-13T10:31:57Z' + date: '2022-05-16T10:23:21Z' groups: - uuid: 7c2cb727f85b492d88cd56e17127c64d @@ -526,6 +526,7 @@ zabbix_export: type: JSONPATH parameters: - $.allocatedCapacityMiB + error_handler: DISCARD_VALUE - type: DISCARD_UNCHANGED_HEARTBEAT parameters: @@ -557,6 +558,7 @@ zabbix_export: type: JSONPATH parameters: - $.failedCapacityMiB + error_handler: DISCARD_VALUE - type: DISCARD_UNCHANGED_HEARTBEAT parameters: @@ -588,6 +590,7 @@ zabbix_export: type: JSONPATH parameters: - $.freeCapacityMiB + error_handler: DISCARD_VALUE - type: DISCARD_UNCHANGED_HEARTBEAT parameters: @@ -619,6 +622,7 @@ zabbix_export: type: JSONPATH parameters: - $.totalCapacityMiB + error_handler: DISCARD_VALUE - type: DISCARD_UNCHANGED_HEARTBEAT parameters: @@ -650,6 +654,7 @@ zabbix_export: type: JSONPATH parameters: - $.chunkletSizeMiB + error_handler: DISCARD_VALUE - type: DISCARD_UNCHANGED_HEARTBEAT parameters: @@ -873,6 +878,7 @@ zabbix_export: type: JSONPATH parameters: - $.model + error_handler: DISCARD_VALUE - type: DISCARD_UNCHANGED_HEARTBEAT parameters: @@ -899,6 +905,7 @@ zabbix_export: type: JSONPATH parameters: - $.name + error_handler: DISCARD_VALUE - type: DISCARD_UNCHANGED_HEARTBEAT parameters: @@ -922,6 +929,7 @@ zabbix_export: type: JSONPATH parameters: - $.onlineNodes.length() + error_handler: DISCARD_VALUE - type: DISCARD_UNCHANGED_HEARTBEAT parameters: @@ -945,6 +953,7 @@ zabbix_export: type: JSONPATH parameters: - $.totalNodes + error_handler: DISCARD_VALUE - type: DISCARD_UNCHANGED_HEARTBEAT parameters: @@ -971,6 +980,7 @@ zabbix_export: type: JSONPATH parameters: - $.serialNumber + error_handler: DISCARD_VALUE - type: DISCARD_UNCHANGED_HEARTBEAT parameters: @@ -996,6 +1006,7 @@ zabbix_export: type: JSONPATH parameters: - $.systemVersion + error_handler: DISCARD_VALUE - type: DISCARD_UNCHANGED_HEARTBEAT parameters: @@ -1360,6 +1371,9 @@ zabbix_export: tag: component value: cpg - + tag: component + value: storage + - tag: cpg value: '{#NAME}' - |