zabbix_export: version: '5.4' date: '2021-11-21T21:46:59Z' groups: - uuid: a9489e75d3464d7092a5eafa1162501f name: 'Adaptec RAID' templates: - uuid: 8fedf858a856490fbb827706daf4ef4f template: 'Adaptec PS' name: 'Adaptec PS' description: | ## Overview Description ----------- This template is for discovering and monitoring adaptec storage controllers by using outputs of arcconf cli tool. Useful only if you have one adaptec adapter in server (i don't have servers with more fore testing). Now it works only with zabbix 4.2 Main features ------------- * Discovery of controllers, logical discs, physical discs, batteries * Monitoring controllers, logical, physical discs, batteries * Comfortable changing of time intervals by macroses. groups: - name: 'Adaptec RAID' items: - uuid: 9e49a0767fe6456789a52bb16321f51a name: 'Controller model' type: DEPENDENT key: adaptec.ctl.model delay: '0' history: '{$ADAP_HISTORY_PERIOD}' trends: '0' value_type: TEXT preprocessing: - type: JSONPATH parameters: - '$[''adapter1''][''Model'']' - type: DISCARD_UNCHANGED_HEARTBEAT parameters: - '{$ADAP_THROTTLING_HB_PERIOD}' master_item: key: 'adaptec.raid[info,ad]' tags: - tag: Application value: 'Adadptec controller' - uuid: 0e9c477787a14338b904df702383cbf4 name: 'Controller serial number' type: DEPENDENT key: adaptec.ctl.sn delay: '0' history: '{$ADAP_HISTORY_PERIOD}' trends: '0' value_type: TEXT preprocessing: - type: JSONPATH parameters: - '$[''adapter1''][''SN'']' - type: DISCARD_UNCHANGED_HEARTBEAT parameters: - '{$ADAP_THROTTLING_HB_PERIOD}' master_item: key: 'adaptec.raid[info,ad]' tags: - tag: Application value: 'Adadptec controller' triggers: - uuid: e09e07fb4fc34eeb97e8eb576d9b06e3 expression: '(last(/Adaptec PS/adaptec.ctl.sn,#1)<>last(/Adaptec PS/adaptec.ctl.sn,#2))=1 and length(last(/Adaptec PS/adaptec.ctl.sn))>0' recovery_mode: NONE name: 'Adaptec controller was replaced by sn: {ITEM.LASTVALUE}' priority: INFO manual_close: 'YES' - uuid: d0b5432f75bc4002987c2e9d883f5a20 name: 'Controller state' type: DEPENDENT key: adaptec.ctl.state delay: '0' history: '{$ADAP_HISTORY_PERIOD}' trends: '0' value_type: TEXT preprocessing: - type: JSONPATH parameters: - '$[''adapter1''][''State'']' - type: DISCARD_UNCHANGED_HEARTBEAT parameters: - '{$ADAP_THROTTLING_HB_PERIOD}' master_item: key: 'adaptec.raid[info,ad]' tags: - tag: Application value: 'Adadptec controller' triggers: - uuid: f468b51ca7f54f50844daf1cc755737d expression: 'find(/Adaptec PS/adaptec.ctl.state,,"like","Optimal")=0' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'find(/Adaptec PS/adaptec.ctl.state,,"like","Optimal")=1' name: 'Adaptec controller state is "{ITEM.LASTVALUE}"' priority: AVERAGE manual_close: 'YES' - uuid: 1a49d2e74e3d485da64ae7b7146ff7b1 name: 'All Ctls info' key: 'adaptec.raid[info,ad]' delay: '{$ADAP_REQUEST_PERIOD}' history: '{$INTERNAL_ITEMS_HISTORY_PEIOD}' trends: '0' value_type: TEXT tags: - tag: Application value: 'Adaptec Internal items' - uuid: 57ddd0ac28664c36af50d544036b8ce2 name: 'All Lds info' key: 'adaptec.raid[info,ld]' delay: '{$LD_REQUEST_PERIOD}' history: '{$INTERNAL_ITEMS_HISTORY_PEIOD}' trends: '0' value_type: TEXT tags: - tag: Application value: 'Adaptec Internal items' - uuid: c81f0b3c822b4a67bcd5a1bb7669743d name: 'All Pds info' key: 'adaptec.raid[info,pd]' delay: '{$PD_REQUEST_PERIOD}' history: '{$INTERNAL_ITEMS_HISTORY_PEIOD}' trends: '0' value_type: TEXT tags: - tag: Application value: 'Adaptec Internal items' - uuid: bb5a2f1473a84273bade2d010a19de0c name: 'Controller battery state' type: DEPENDENT key: adaptec.zmm.state delay: '0' history: '{$ADAP_HISTORY_PERIOD}' trends: '0' value_type: TEXT preprocessing: - type: JSONPATH parameters: - '$[''adapter1''][''Battery state'']' - type: DISCARD_UNCHANGED_HEARTBEAT parameters: - '{$ADAP_THROTTLING_HB_PERIOD}' master_item: key: 'adaptec.raid[info,ad]' tags: - tag: Application value: 'Adadptec controller' triggers: - uuid: 87ae12a7974846d583ccb08156c67b0d expression: 'find(/Adaptec PS/adaptec.zmm.state,,"regexp","(.*Optimal.*)")=0 and find(/Adaptec PS/adaptec.zmm.state,,"regexp",".*no.*installed.*")=0' name: 'Adaptec controller battery state is "{ITEM.LASTVALUE}"' priority: AVERAGE manual_close: 'YES' discovery_rules: - uuid: af800a3b917f4a8c8a56bc657c7f9729 name: 'Logical disks discovery' key: 'adaptec.raid[lld,ld]' delay: '{$LD_DISCOVERY_PERIOD}' item_prototypes: - uuid: 5b4c5e5529e441a2b1e0751fb0b19d9b name: 'Logical disk "{#LDNAME}" level' type: DEPENDENT key: 'adaptec.raid.level.[{#LDNAME}]' delay: '0' history: '{$LD_HISTORY_PERIOD}' trends: '{$LD_TRENDS_PERIOD}' preprocessing: - type: JSONPATH parameters: - '$[''{#LDNAME}''][''Raid Level'']' - type: DISCARD_UNCHANGED_HEARTBEAT parameters: - '{$LD_THROTTLING_HB_PERIOD}' master_item: key: 'adaptec.raid[info,ld]' tags: - tag: Application value: 'Adaptec logical disks' - uuid: 3b56026f465847bc97ea9b727ed91432 name: 'Logical disk "{#LDNAME}" state' type: DEPENDENT key: 'adaptec.raid.state.[{#LDNAME}]' delay: '0' history: '{$LD_HISTORY_PERIOD}' trends: '0' value_type: TEXT preprocessing: - type: JSONPATH parameters: - '$[''{#LDNAME}''][''State'']' - type: DISCARD_UNCHANGED_HEARTBEAT parameters: - '{$LD_THROTTLING_HB_PERIOD}' master_item: key: 'adaptec.raid[info,ld]' tags: - tag: Application value: 'Adaptec logical disks' trigger_prototypes: - uuid: 6d07396be56c49888fb8595d3fffbd31 expression: 'find(/Adaptec PS/adaptec.raid.state.[{#LDNAME}],,"like","Optimal")=0' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'find(/Adaptec PS/adaptec.raid.state.[{#LDNAME}],,"like","Optimal")=1' name: 'Adaptec logical disk "{#LDNAME}" is {ITEM.LASTVALUE}' priority: HIGH - uuid: ee0f881c34da49ba9b3269cd098408d8 name: 'Physical disks discovery' key: 'adaptec.raid[lld,pd]' delay: '{$PD_DISCOVERY_PERIOD}' item_prototypes: - uuid: d790dd2466c44d4b9ff62dcb32737e7c name: 'Physical disk "{#SLOT}" model' type: DEPENDENT key: 'adaptec.pd.model.["{#SLOT}"]' delay: '0' history: '{$PD_HISTORY_PERIOD}' trends: '0' value_type: TEXT preprocessing: - type: JSONPATH parameters: - '$[''{#SLOT}''][''Model'']' - type: DISCARD_UNCHANGED_HEARTBEAT parameters: - '{$PD_THROTTLING_HB_PERIOD}' master_item: key: 'adaptec.raid[info,pd]' tags: - tag: Application value: 'Adaptec physical disks' - uuid: 773c3ebb5e2e400e98eb841cb73d77ae name: 'Physical disk "{#SLOT}" SMART warnings' type: DEPENDENT key: 'adaptec.pd.smartwarn.["{#SLOT}"]' delay: '0' history: '{$PD_HISTORY_PERIOD}' trends: '0' value_type: TEXT preprocessing: - type: JSONPATH parameters: - '$[''{#SLOT}''][''SMART warnings'']' - type: DISCARD_UNCHANGED_HEARTBEAT parameters: - '{$PD_THROTTLING_HB_PERIOD}' master_item: key: 'adaptec.raid[info,pd]' tags: - tag: Application value: 'Adaptec physical disks' trigger_prototypes: - uuid: 687f22828cd3445a82ee88f85affd727 expression: 'last(/Adaptec PS/adaptec.pd.smartwarn.["{#SLOT}"])>0' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'last(/Adaptec PS/adaptec.pd.smartwarn.["{#SLOT}"])=0' name: 'Adaptec physical disk "{#SLOT}" has {ITEM.LASTVALUE} smart warnings' priority: AVERAGE manual_close: 'YES' - uuid: bd88d79428b24b64876b72efebefa668 name: 'Physical disk "{#SLOT}" serial number' type: DEPENDENT key: 'adaptec.pd.sn.["{#SLOT}"]' delay: '0' history: '{$PD_HISTORY_PERIOD}' trends: '0' value_type: TEXT preprocessing: - type: JSONPATH parameters: - '$[''{#SLOT}''][''Serial number'']' - type: DISCARD_UNCHANGED_HEARTBEAT parameters: - '{$PD_THROTTLING_HB_PERIOD}' master_item: key: 'adaptec.raid[info,pd]' tags: - tag: Application value: 'Adaptec physical disks' trigger_prototypes: - uuid: b2e7659a0f294014a3560defd54eb855 expression: '(last(/Adaptec PS/adaptec.pd.sn.["{#SLOT}"],#1)<>last(/Adaptec PS/adaptec.pd.sn.["{#SLOT}"],#2))=1 and length(last(/Adaptec PS/adaptec.pd.sn.["{#SLOT}"]))>0' recovery_mode: NONE name: 'Adaptec physical disk "{#SLOT}" was replaced by: {ITEM.LASTVALUE}' priority: INFO - uuid: a47970428acf496a84c59a2da10cc5df name: 'Physical disk "{#SLOT}" state' type: DEPENDENT key: 'adaptec.pd.state.["{#SLOT}"]' delay: '0' history: '{$PD_HISTORY_PERIOD}' trends: '0' value_type: TEXT preprocessing: - type: JSONPATH parameters: - '$[''{#SLOT}''][''State'']' - type: DISCARD_UNCHANGED_HEARTBEAT parameters: - '{$PD_THROTTLING_HB_PERIOD}' master_item: key: 'adaptec.raid[info,pd]' tags: - tag: Application value: 'Adaptec physical disks' trigger_prototypes: - uuid: 2fdb3be073db4581a3a521308d553568 expression: 'find(/Adaptec PS/adaptec.pd.state.["{#SLOT}"],,"like","Online")=0 and find(/Adaptec PS/adaptec.pd.state.["{#SLOT}"],,"like","Global Hot-Spare")=0' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'find(/Adaptec PS/adaptec.pd.state.["{#SLOT}"],,"like","Online")=1 or find(/Adaptec PS/adaptec.pd.state.["{#SLOT}"],,"like","Global Hot-Spare")=1' name: 'Adaptec physical disk "{#SLOT}" state is {ITEM.LASTVALUE}' priority: AVERAGE manual_close: 'YES'