Skip to content

Commit

Permalink
add disk health from dms 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Elkropac committed Aug 5, 2024
1 parent bc48b55 commit b85940a
Showing 1 changed file with 50 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,33 @@ zabbix_export:
delay: 1h
description: 'For all disk entry.'
item_prototypes:
-
uuid: 23866f0f8c634283bd9ac6f06fda4533
name: "{#SNMPVALUE} HealthStatus"
type: SNMP_AGENT
snmp_oid: ".1.3.6.1.4.1.6574.2.1.1.13.{#SNMPINDEX}"
key: "synoDisk.diskTable.diskEntry.diskHealthStatus.[{#SNMPINDEX}]"
delay: 5m
description: |
Synology disk health status (DSM 7.1 and above): each meanings of status represented describe below:
[1] Normal
[2] Warning
[3] Critical
[4] Failing
valuemap:
name: "SYNOLOGY-DISK-MIB::diskHealthStatus"
tags:
-
tag: Application
value: "Synology Disk"
trigger_prototypes:
-
uuid: 4e673554a7f94715a1453d61a32827c0
expression: "last(/Synology DiskStation/synoDisk.diskTable.diskEntry.diskHealthStatus.[{#SNMPINDEX}])<>1"
name: "{#SNMPVALUE} disk health status"
opdata: "Current status: {ITEM.LASTVALUE1}"
priority: HIGH
description: "The disk is damaged"
-
uuid: 8d8dd79307c04518a19a164507fdac5c
name: '{#SNMPVALUE} Model'
Expand Down Expand Up @@ -966,6 +993,13 @@ zabbix_export:
uuid: 42706ae3d0784f7a8647da128a49e062
expression: 'last(/Synology DiskStation/synoDisk.diskTable.diskEntry.diskStatus.[{#SNMPINDEX}])=5'
name: '{#SNMPVALUE} disk damaged'
opdata: "Current status: {ITEM.LASTVALUE1}"
priority: HIGH
description: "The disk is damaged"
- uuid: a3b8163abab045e38affd30d404a2524
expression: "last(/Synology DiskStation/synoDisk.diskTable.diskEntry.diskStatus.[{#SNMPINDEX}])<>1"
name: "{#SNMPVALUE} disk status"
opdata: "Current status: {ITEM.LASTVALUE1}"
priority: HIGH
description: 'The disk is damaged'
-
Expand Down Expand Up @@ -1332,6 +1366,22 @@ zabbix_export:
macro: '{$DISK_UTIL_WARN}'
value: '80'
valuemaps:
-
uuid: 5e152fbd70b64e93b7be5d1533207852
name: "SYNOLOGY-DISK-MIB::diskHealthStatus"
mappings:
-
value: "1"
newvalue: Normal
-
value: "2"
newvalue: Warning
-
value: "3"
newvalue: Critical
-
value: "4"
newvalue: Failing
-
uuid: 3a17c5b68b454649893d7e32f0c55db7
name: 'SYNOLOGY-DISK-MIB::diskStatus'
Expand Down

0 comments on commit b85940a

Please sign in to comment.