# Critical mdstat\_disks alert on 4-bay Synology NAS with 3 drives (SHR1)

**URL:** <https://community.netdata.cloud/t/critical-mdstat-disks-alert-on-4-bay-synology-nas-with-3-drives-shr1/3387>\
**Category:** Help\
**Tags:** cloud, linux, docker, platform\
**Created:** [October 15, 2022, 9:23am UTC](https://community.netdata.cloud/t/critical-mdstat-disks-alert-on-4-bay-synology-nas-with-3-drives-shr1/3387 "2022-10-15T09:23:54Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [October 16, 2022, 6:08pm UTC](https://community.netdata.cloud/t/critical-mdstat-disks-alert-on-4-bay-synology-nas-with-3-drives-shr1/3387/4 "2022-10-16T18:08:35Z")

</div>

Hi, @pk1966. The fix can be

- excluding your raid device from the default alarm.
- creating a custom alarm for your raid device (trigger if down \> 1).

To do that you need to [configure the “health.d/md.conf” file](https://learn.netdata.cloud/docs/agent/health/reference#health-configuration-files): we need to copy/paste “mdstat\_disks” and add [charts](https://learn.netdata.cloud/docs/agent/health/reference#alarm-line-charts) filter to both:

```auto
 template: mdstat_disks
       on: md.disks
    class: Errors
     type: System
component: RAID
   charts: !*md0* *
    units: failed devices
    every: 10s
     calc: $down
     crit: $this > 0
     info: number of devices in the down state for the $family array. \
           Any number > 0 indicates that the array is degraded.
       to: sysadmin

 template: mdstat_disks_md0
       on: md.disks
    class: Errors
     type: System
component: RAID
   charts: *md0* !*
    units: failed devices
    every: 10s
     calc: $down
     crit: $this > 1
     info: number of devices in the down state for the $family array. \
           Any number > 0 indicates that the array is degraded.
       to: sysadmin

```

---

_[View the full topic](https://community.netdata.cloud/t/critical-mdstat-disks-alert-on-4-bay-synology-nas-with-3-drives-shr1/3387)._
