btrfs.conf 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. template: btrfs_allocated
  2. on: btrfs.disk
  3. class: Utilization
  4. type: System
  5. component: File system
  6. os: *
  7. hosts: *
  8. families: *
  9. calc: 100 - ($unallocated * 100 / ($unallocated + $data_used + $data_free + $meta_used + $meta_free + $sys_used + $sys_free))
  10. units: %
  11. every: 10s
  12. warn: $this > (($status >= $WARNING) ? (90) : (95))
  13. crit: $this > (($status == $CRITICAL) ? (95) : (98))
  14. delay: up 1m down 15m multiplier 1.5 max 1h
  15. info: percentage of allocated BTRFS physical disk space
  16. to: sysadmin
  17. template: btrfs_data
  18. on: btrfs.data
  19. class: Utilization
  20. type: System
  21. component: File system
  22. os: *
  23. hosts: *
  24. families: *
  25. calc: $used * 100 / ($used + $free)
  26. units: %
  27. every: 10s
  28. warn: $this > (($status >= $WARNING) ? (90) : (95)) && $btrfs_allocated > 98
  29. crit: $this > (($status == $CRITICAL) ? (95) : (98)) && $btrfs_allocated > 98
  30. delay: up 1m down 15m multiplier 1.5 max 1h
  31. info: utilization of BTRFS data space
  32. to: sysadmin
  33. template: btrfs_metadata
  34. on: btrfs.metadata
  35. class: Utilization
  36. type: System
  37. component: File system
  38. os: *
  39. hosts: *
  40. families: *
  41. calc: ($used + $reserved) * 100 / ($used + $free + $reserved)
  42. units: %
  43. every: 10s
  44. warn: $this > (($status >= $WARNING) ? (90) : (95)) && $btrfs_allocated > 98
  45. crit: $this > (($status == $CRITICAL) ? (95) : (98)) && $btrfs_allocated > 98
  46. delay: up 1m down 15m multiplier 1.5 max 1h
  47. info: utilization of BTRFS metadata space
  48. to: sysadmin
  49. template: btrfs_system
  50. on: btrfs.system
  51. class: Utilization
  52. type: System
  53. component: File system
  54. os: *
  55. hosts: *
  56. families: *
  57. calc: $used * 100 / ($used + $free)
  58. units: %
  59. every: 10s
  60. warn: $this > (($status >= $WARNING) ? (90) : (95)) && $btrfs_allocated > 98
  61. crit: $this > (($status == $CRITICAL) ? (95) : (98)) && $btrfs_allocated > 98
  62. delay: up 1m down 15m multiplier 1.5 max 1h
  63. info: utilization of BTRFS system space
  64. to: sysadmin