ram.conf 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # you can disable an alarm notification by setting the 'to' line to: silent
  2. alarm: ram_in_use
  3. on: system.ram
  4. class: Utilization
  5. type: System
  6. component: Memory
  7. os: linux
  8. hosts: *
  9. calc: $used * 100 / ($used + $cached + $free + $buffers)
  10. units: %
  11. every: 10s
  12. warn: $this > (($status >= $WARNING) ? (80) : (90))
  13. crit: $this > (($status == $CRITICAL) ? (90) : (98))
  14. delay: down 15m multiplier 1.5 max 1h
  15. info: system memory utilization
  16. to: sysadmin
  17. alarm: ram_available
  18. on: mem.available
  19. class: Utilization
  20. type: System
  21. component: Memory
  22. os: linux
  23. hosts: *
  24. calc: $avail * 100 / ($system.ram.used + $system.ram.cached + $system.ram.free + $system.ram.buffers)
  25. units: %
  26. every: 10s
  27. warn: $this < (($status >= $WARNING) ? (15) : (10))
  28. delay: down 15m multiplier 1.5 max 1h
  29. info: percentage of estimated amount of RAM available for userspace processes, without causing swapping
  30. to: sysadmin
  31. alarm: oom_kill
  32. on: mem.oom_kill
  33. os: linux
  34. hosts: *
  35. lookup: sum -30m unaligned
  36. units: kills
  37. every: 5m
  38. warn: $this > 0
  39. delay: down 10m
  40. host labels: _is_k8s_node = false
  41. info: number of out of memory kills in the last 30 minutes
  42. to: sysadmin
  43. ## FreeBSD
  44. alarm: ram_in_use
  45. on: system.ram
  46. class: Utilization
  47. type: System
  48. component: Memory
  49. os: freebsd
  50. hosts: *
  51. calc: ($active + $wired + $laundry + $buffers) * 100 / ($active + $wired + $laundry + $buffers + $cache + $free + $inactive)
  52. units: %
  53. every: 10s
  54. warn: $this > (($status >= $WARNING) ? (80) : (90))
  55. crit: $this > (($status == $CRITICAL) ? (90) : (98))
  56. delay: down 15m multiplier 1.5 max 1h
  57. info: system memory utilization
  58. to: sysadmin
  59. alarm: ram_available
  60. on: mem.available
  61. class: Utilization
  62. type: System
  63. component: Memory
  64. os: freebsd
  65. hosts: *
  66. calc: $avail * 100 / ($system.ram.free + $system.ram.active + $system.ram.inactive + $system.ram.wired + $system.ram.cache + $system.ram.laundry + $system.ram.buffers)
  67. units: %
  68. every: 10s
  69. warn: $this < (($status >= $WARNING) ? (15) : (10))
  70. delay: down 15m multiplier 1.5 max 1h
  71. info: percentage of estimated amount of RAM available for userspace processes, without causing swapping
  72. to: sysadmin