mdstat.conf 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. template: mdstat_disks
  2. on: md.disks
  3. class: Errors
  4. type: System
  5. component: RAID
  6. units: failed devices
  7. every: 10s
  8. calc: $down
  9. warn: $this > 0
  10. summary: MD array device ${label:device} down
  11. info: Number of devices in the down state for the ${label:device} ${label:raid_level} array. \
  12. Any number > 0 indicates that the array is degraded.
  13. to: sysadmin
  14. template: mdstat_mismatch_cnt
  15. on: md.mismatch_cnt
  16. class: Errors
  17. type: System
  18. component: RAID
  19. chart labels: raid_level=!raid1 !raid10 *
  20. units: unsynchronized blocks
  21. calc: $count
  22. every: 60s
  23. warn: $this > 1024
  24. delay: up 30m
  25. summary: MD array device ${label:device} unsynchronized blocks
  26. info: Number of unsynchronized blocks for the ${label:device} ${label:raid_level} array
  27. to: silent
  28. template: mdstat_nonredundant_last_collected
  29. on: md.nonredundant
  30. class: Latency
  31. type: System
  32. component: RAID
  33. calc: $now - $last_collected_t
  34. units: seconds ago
  35. every: 10s
  36. warn: $this > (($status >= $WARNING) ? ($update_every) : ( 5 * $update_every))
  37. crit: $this > (($status == $CRITICAL) ? ($update_every) : (60 * $update_every))
  38. summary: MD array last collected
  39. info: Number of seconds since the last successful data collection
  40. to: sysadmin