Add Zabbix template for storageDevices
This commit is contained in:
parent
c1e46207da
commit
ff4a05ae59
195
zabbix_templates/Template_HW_storageDevices.yaml
Normal file
195
zabbix_templates/Template_HW_storageDevices.yaml
Normal file
|
@ -0,0 +1,195 @@
|
||||||
|
zabbix_export:
|
||||||
|
version: '6.0'
|
||||||
|
date: '2023-12-21T14:57:39Z'
|
||||||
|
groups:
|
||||||
|
- uuid: 7df96b18c230490a9a0a9e2307226338
|
||||||
|
name: Templates
|
||||||
|
templates:
|
||||||
|
- uuid: 98cb8260bbeb4a94a8b07b54608521c8
|
||||||
|
template: Template_HW_storageDevices
|
||||||
|
name: Template_HW_storageDevices
|
||||||
|
groups:
|
||||||
|
- name: Templates
|
||||||
|
discovery_rules:
|
||||||
|
- uuid: 12b9a456943f49aca440958063a5bfe2
|
||||||
|
name: 'SMART capable Storage devices discovery'
|
||||||
|
key: 'stor.dev.discovery[smart]'
|
||||||
|
delay: 1h
|
||||||
|
filter:
|
||||||
|
conditions:
|
||||||
|
- macro: '{#STOR_DEV_SMART}'
|
||||||
|
value: ^1$
|
||||||
|
formulaid: A
|
||||||
|
lifetime: 7d
|
||||||
|
item_prototypes:
|
||||||
|
- uuid: 0743506e1c1b49f5b47bd5cef5462c55
|
||||||
|
name: 'Stor dev {#STOR_DEV_SN} ({#STOR_DEV_DESC}): Pending sectors'
|
||||||
|
type: DEPENDENT
|
||||||
|
key: 'stor.dev.info[{#STOR_DEV_NAME},{#STOR_DEV_TYPE},current_pending_sector]'
|
||||||
|
delay: '0'
|
||||||
|
history: 30d
|
||||||
|
value_type: FLOAT
|
||||||
|
units: '!sector(s)'
|
||||||
|
preprocessing:
|
||||||
|
- type: JSONPATH
|
||||||
|
parameters:
|
||||||
|
- $.current_pending_sector
|
||||||
|
master_item:
|
||||||
|
key: 'stor.dev.info[{#STOR_DEV_NAME},{#STOR_DEV_TYPE}]'
|
||||||
|
trigger_prototypes:
|
||||||
|
- uuid: 9ffa5efc061542e8a5f227936396e5ab
|
||||||
|
expression: 'change(/Template_HW_storageDevices/stor.dev.info[{#STOR_DEV_NAME},{#STOR_DEV_TYPE},current_pending_sector])>0'
|
||||||
|
recovery_mode: NONE
|
||||||
|
name: '{ITEM.LASTVALUE1} pending on {#STOR_DEV_SN} ({#STOR_DEV_DESC})'
|
||||||
|
priority: AVERAGE
|
||||||
|
manual_close: 'YES'
|
||||||
|
- uuid: 3da3d8491a024c7ab4f0bb3fc3887a64
|
||||||
|
name: 'Stor dev {#STOR_DEV_SN} ({#STOR_DEV_DESC}): Firmware version'
|
||||||
|
type: DEPENDENT
|
||||||
|
key: 'stor.dev.info[{#STOR_DEV_NAME},{#STOR_DEV_TYPE},firmware_version]'
|
||||||
|
delay: '0'
|
||||||
|
history: 30d
|
||||||
|
trends: '0'
|
||||||
|
value_type: CHAR
|
||||||
|
preprocessing:
|
||||||
|
- type: JSONPATH
|
||||||
|
parameters:
|
||||||
|
- $.firmware_version
|
||||||
|
master_item:
|
||||||
|
key: 'stor.dev.info[{#STOR_DEV_NAME},{#STOR_DEV_TYPE}]'
|
||||||
|
- uuid: 6d4967ca28f549048a507209737fa7bd
|
||||||
|
name: 'Stor dev {#STOR_DEV_SN} ({#STOR_DEV_DESC}): Offline uncorrectable'
|
||||||
|
type: DEPENDENT
|
||||||
|
key: 'stor.dev.info[{#STOR_DEV_NAME},{#STOR_DEV_TYPE},offline_uncorrectable]'
|
||||||
|
delay: '0'
|
||||||
|
history: 30d
|
||||||
|
value_type: FLOAT
|
||||||
|
units: '!sector(s)'
|
||||||
|
preprocessing:
|
||||||
|
- type: JSONPATH
|
||||||
|
parameters:
|
||||||
|
- $.offline_uncorrectable
|
||||||
|
master_item:
|
||||||
|
key: 'stor.dev.info[{#STOR_DEV_NAME},{#STOR_DEV_TYPE}]'
|
||||||
|
trigger_prototypes:
|
||||||
|
- uuid: 66c5fc3a96354eb3aae8d5a08eea4544
|
||||||
|
expression: 'change(/Template_HW_storageDevices/stor.dev.info[{#STOR_DEV_NAME},{#STOR_DEV_TYPE},offline_uncorrectable])>0'
|
||||||
|
recovery_mode: NONE
|
||||||
|
name: '{ITEM.LASTVALUE1} offline uncorrectable on {#STOR_DEV_SN} ({#STOR_DEV_DESC})'
|
||||||
|
priority: HIGH
|
||||||
|
manual_close: 'YES'
|
||||||
|
- uuid: df1ef0de1bc54200895a5d173a583905
|
||||||
|
name: 'Stor dev {#STOR_DEV_SN} ({#STOR_DEV_DESC}): Percent Lifetime Remain'
|
||||||
|
type: DEPENDENT
|
||||||
|
key: 'stor.dev.info[{#STOR_DEV_NAME},{#STOR_DEV_TYPE},percent_lifetime_remain]'
|
||||||
|
delay: '0'
|
||||||
|
history: 30d
|
||||||
|
value_type: FLOAT
|
||||||
|
units: '%'
|
||||||
|
preprocessing:
|
||||||
|
- type: JSONPATH
|
||||||
|
parameters:
|
||||||
|
- $.percent_lifetime_remain
|
||||||
|
master_item:
|
||||||
|
key: 'stor.dev.info[{#STOR_DEV_NAME},{#STOR_DEV_TYPE}]'
|
||||||
|
trigger_prototypes:
|
||||||
|
- uuid: caaa6496f8e941a08f37c8746bb34bc2
|
||||||
|
expression: 'last(/Template_HW_storageDevices/stor.dev.info[{#STOR_DEV_NAME},{#STOR_DEV_TYPE},percent_lifetime_remain])<{$STOR_LIFETIME_REMAINING_CRITICAL:"{#STOR_DEV_SN}"}'
|
||||||
|
name: '{ITEM.LASTVALUE1} lifetime remaining for {#STOR_DEV_SN} ({#STOR_DEV_DESC})'
|
||||||
|
priority: HIGH
|
||||||
|
manual_close: 'YES'
|
||||||
|
- uuid: 1df675ca6c4649a081ea315599ce4284
|
||||||
|
expression: 'last(/Template_HW_storageDevices/stor.dev.info[{#STOR_DEV_NAME},{#STOR_DEV_TYPE},percent_lifetime_remain])<{$STOR_LIFETIME_REMAINING_WARN:"{#STOR_DEV_SN}"}'
|
||||||
|
name: '{ITEM.LASTVALUE1} lifetime remaining for {#STOR_DEV_SN} ({#STOR_DEV_DESC})'
|
||||||
|
priority: WARNING
|
||||||
|
manual_close: 'YES'
|
||||||
|
dependencies:
|
||||||
|
- name: '{ITEM.LASTVALUE1} lifetime remaining for {#STOR_DEV_SN} ({#STOR_DEV_DESC})'
|
||||||
|
expression: 'last(/Template_HW_storageDevices/stor.dev.info[{#STOR_DEV_NAME},{#STOR_DEV_TYPE},percent_lifetime_remain])<{$STOR_LIFETIME_REMAINING_CRITICAL:"{#STOR_DEV_SN}"}'
|
||||||
|
- uuid: 70dd4bcd3994423594f7330bbb448038
|
||||||
|
name: 'Stor dev {#STOR_DEV_SN} ({#STOR_DEV_DESC}): Power Cycle Count'
|
||||||
|
type: DEPENDENT
|
||||||
|
key: 'stor.dev.info[{#STOR_DEV_NAME},{#STOR_DEV_TYPE},power_cycle_count]'
|
||||||
|
delay: '0'
|
||||||
|
history: 30d
|
||||||
|
value_type: FLOAT
|
||||||
|
preprocessing:
|
||||||
|
- type: JSONPATH
|
||||||
|
parameters:
|
||||||
|
- $.power_cycle_count
|
||||||
|
master_item:
|
||||||
|
key: 'stor.dev.info[{#STOR_DEV_NAME},{#STOR_DEV_TYPE}]'
|
||||||
|
- uuid: f68f569400954636a7e4231c97c57c81
|
||||||
|
name: 'Stor dev {#STOR_DEV_SN} ({#STOR_DEV_DESC}): Power on hours'
|
||||||
|
type: DEPENDENT
|
||||||
|
key: 'stor.dev.info[{#STOR_DEV_NAME},{#STOR_DEV_TYPE},power_on_hours]'
|
||||||
|
delay: '0'
|
||||||
|
history: 30d
|
||||||
|
value_type: FLOAT
|
||||||
|
units: s
|
||||||
|
preprocessing:
|
||||||
|
- type: JSONPATH
|
||||||
|
parameters:
|
||||||
|
- $.power_on_hours
|
||||||
|
- type: MULTIPLIER
|
||||||
|
parameters:
|
||||||
|
- '3600'
|
||||||
|
master_item:
|
||||||
|
key: 'stor.dev.info[{#STOR_DEV_NAME},{#STOR_DEV_TYPE}]'
|
||||||
|
- uuid: 76e724749c304d7da9c38b81bfb9b711
|
||||||
|
name: 'Stor dev {#STOR_DEV_SN} ({#STOR_DEV_DESC}): Reallocated Sectors'
|
||||||
|
type: DEPENDENT
|
||||||
|
key: 'stor.dev.info[{#STOR_DEV_NAME},{#STOR_DEV_TYPE},reallocated_sector_count]'
|
||||||
|
delay: '0'
|
||||||
|
history: 30d
|
||||||
|
value_type: FLOAT
|
||||||
|
units: '!sector(s)'
|
||||||
|
preprocessing:
|
||||||
|
- type: JSONPATH
|
||||||
|
parameters:
|
||||||
|
- $.reallocated_sector_count
|
||||||
|
master_item:
|
||||||
|
key: 'stor.dev.info[{#STOR_DEV_NAME},{#STOR_DEV_TYPE}]'
|
||||||
|
trigger_prototypes:
|
||||||
|
- uuid: f7b3fa0f6a8347e3b67387da531a2d1a
|
||||||
|
expression: 'change(/Template_HW_storageDevices/stor.dev.info[{#STOR_DEV_NAME},{#STOR_DEV_TYPE},reallocated_sector_count])>0'
|
||||||
|
recovery_mode: NONE
|
||||||
|
name: '{ITEM.LASTVALUE1} reallocated on {#STOR_DEV_SN} ({#STOR_DEV_DESC})'
|
||||||
|
priority: WARNING
|
||||||
|
manual_close: 'YES'
|
||||||
|
dependencies:
|
||||||
|
- name: '{ITEM.LASTVALUE1} reallocated on {#STOR_DEV_SN} ({#STOR_DEV_DESC})'
|
||||||
|
expression: 'last(/Template_HW_storageDevices/stor.dev.info[{#STOR_DEV_NAME},{#STOR_DEV_TYPE},reallocated_sector_count])>{$STOR_REALLOC_SECTOR_WARN:"{#STOR_DEV_SN}"}'
|
||||||
|
- uuid: 85d6eb29ca7b4175bf8ad15414a44936
|
||||||
|
expression: 'last(/Template_HW_storageDevices/stor.dev.info[{#STOR_DEV_NAME},{#STOR_DEV_TYPE},reallocated_sector_count])>{$STOR_REALLOC_SECTOR_WARN:"{#STOR_DEV_SN}"}'
|
||||||
|
name: '{ITEM.LASTVALUE1} reallocated on {#STOR_DEV_SN} ({#STOR_DEV_DESC})'
|
||||||
|
priority: AVERAGE
|
||||||
|
manual_close: 'YES'
|
||||||
|
- uuid: 28117d0d998f467ea542821e4a6507c9
|
||||||
|
name: 'Stor dev {#STOR_DEV_SN} ({#STOR_DEV_DESC}): Temperature'
|
||||||
|
type: DEPENDENT
|
||||||
|
key: 'stor.dev.info[{#STOR_DEV_NAME},{#STOR_DEV_TYPE},temperature_celsius]'
|
||||||
|
delay: '0'
|
||||||
|
history: 30d
|
||||||
|
value_type: FLOAT
|
||||||
|
units: °C
|
||||||
|
preprocessing:
|
||||||
|
- type: JSONPATH
|
||||||
|
parameters:
|
||||||
|
- $.temperature_celsius
|
||||||
|
master_item:
|
||||||
|
key: 'stor.dev.info[{#STOR_DEV_NAME},{#STOR_DEV_TYPE}]'
|
||||||
|
- uuid: 6d3da698590e43f4be62d5daab7f72f0
|
||||||
|
name: 'Stor dev {#STOR_DEV_SN} ({#STOR_DEV_DESC}) info'
|
||||||
|
key: 'stor.dev.info[{#STOR_DEV_NAME},{#STOR_DEV_TYPE}]'
|
||||||
|
delay: 8m
|
||||||
|
history: '0'
|
||||||
|
trends: '0'
|
||||||
|
value_type: TEXT
|
||||||
|
macros:
|
||||||
|
- macro: '{$STOR_LIFETIME_REMAINING_CRITICAL}'
|
||||||
|
value: '6'
|
||||||
|
- macro: '{$STOR_LIFETIME_REMAINING_WARN}'
|
||||||
|
value: '10'
|
||||||
|
- macro: '{$STOR_REALLOC_SECTOR_WARN}'
|
||||||
|
value: '40'
|
Loading…
Reference in New Issue
Block a user