btrfs.conf 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. template: btrfs_allocated
  2. on: btrfs.disk
  3. class: Utilization
  4. type: System
  5. component: File system
  6. os: *
  7. hosts: *
  8. calc: 100 - ($unallocated * 100 / ($unallocated + $data_used + $data_free + $meta_used + $meta_free + $sys_used + $sys_free))
  9. units: %
  10. every: 10s
  11. warn: $this > (($status >= $WARNING) ? (90) : (95))
  12. crit: $this > (($status == $CRITICAL) ? (95) : (98))
  13. delay: up 1m down 15m multiplier 1.5 max 1h
  14. info: percentage of allocated BTRFS physical disk space
  15. to: sysadmin
  16. template: btrfs_data
  17. on: btrfs.data
  18. class: Utilization
  19. type: System
  20. component: File system
  21. os: *
  22. hosts: *
  23. calc: $used * 100 / ($used + $free)
  24. units: %
  25. every: 10s
  26. warn: $this > (($status >= $WARNING) ? (90) : (95)) && $btrfs_allocated > 98
  27. crit: $this > (($status == $CRITICAL) ? (95) : (98)) && $btrfs_allocated > 98
  28. delay: up 1m down 15m multiplier 1.5 max 1h
  29. info: utilization of BTRFS data space
  30. to: sysadmin
  31. template: btrfs_metadata
  32. on: btrfs.metadata
  33. class: Utilization
  34. type: System
  35. component: File system
  36. os: *
  37. hosts: *
  38. calc: ($used + $reserved) * 100 / ($used + $free + $reserved)
  39. units: %
  40. every: 10s
  41. warn: $this > (($status >= $WARNING) ? (90) : (95)) && $btrfs_allocated > 98
  42. crit: $this > (($status == $CRITICAL) ? (95) : (98)) && $btrfs_allocated > 98
  43. delay: up 1m down 15m multiplier 1.5 max 1h
  44. info: utilization of BTRFS metadata space
  45. to: sysadmin
  46. template: btrfs_system
  47. on: btrfs.system
  48. class: Utilization
  49. type: System
  50. component: File system
  51. os: *
  52. hosts: *
  53. calc: $used * 100 / ($used + $free)
  54. units: %
  55. every: 10s
  56. warn: $this > (($status >= $WARNING) ? (90) : (95)) && $btrfs_allocated > 98
  57. crit: $this > (($status == $CRITICAL) ? (95) : (98)) && $btrfs_allocated > 98
  58. delay: up 1m down 15m multiplier 1.5 max 1h
  59. info: utilization of BTRFS system space
  60. to: sysadmin
  61. template: btrfs_device_read_errors
  62. on: btrfs.device_errors
  63. class: Errors
  64. type: System
  65. component: File system
  66. os: *
  67. hosts: *
  68. units: errors
  69. lookup: max -10m every 1m of read_errs
  70. warn: $this > 0
  71. delay: up 1m down 15m multiplier 1.5 max 1h
  72. info: number of encountered BTRFS read errors
  73. to: sysadmin
  74. template: btrfs_device_write_errors
  75. on: btrfs.device_errors
  76. class: Errors
  77. type: System
  78. component: File system
  79. os: *
  80. hosts: *
  81. units: errors
  82. lookup: max -10m every 1m of write_errs
  83. warn: $this > 0
  84. delay: up 1m down 15m multiplier 1.5 max 1h
  85. info: number of encountered BTRFS write errors
  86. to: sysadmin
  87. template: btrfs_device_flush_errors
  88. on: btrfs.device_errors
  89. class: Errors
  90. type: System
  91. component: File system
  92. os: *
  93. hosts: *
  94. units: errors
  95. lookup: max -10m every 1m of flush_errs
  96. warn: $this > 0
  97. delay: up 1m down 15m multiplier 1.5 max 1h
  98. info: number of encountered BTRFS flush errors
  99. to: sysadmin
  100. template: btrfs_device_corruption_errors
  101. on: btrfs.device_errors
  102. class: Errors
  103. type: System
  104. component: File system
  105. os: *
  106. hosts: *
  107. units: errors
  108. lookup: max -10m every 1m of corruption_errs
  109. warn: $this > 0
  110. delay: up 1m down 15m multiplier 1.5 max 1h
  111. info: number of encountered BTRFS corruption errors
  112. to: sysadmin
  113. template: btrfs_device_generation_errors
  114. on: btrfs.device_errors
  115. class: Errors
  116. type: System
  117. component: File system
  118. os: *
  119. hosts: *
  120. units: errors
  121. lookup: max -10m every 1m of generation_errs
  122. warn: $this > 0
  123. delay: up 1m down 15m multiplier 1.5 max 1h
  124. info: number of encountered BTRFS generation errors
  125. to: sysadmin