btrfs.conf 3.7 KB

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