mdstat.conf 1.5 KB

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