mdstat.conf 1.2 KB

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