ram.conf 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. crit: $this < (($status == $CRITICAL) ? (10) : ( 5))
  29. delay: down 15m multiplier 1.5 max 1h
  30. info: percentage of estimated amount of RAM available for userspace processes, without causing swapping
  31. to: sysadmin
  32. alarm: oom_kill
  33. on: mem.oom_kill
  34. os: linux
  35. hosts: *
  36. lookup: sum -30m unaligned
  37. units: kills
  38. every: 5m
  39. warn: $this > 0
  40. delay: down 10m
  41. host labels: _is_k8s_node = false
  42. info: number of out of memory kills in the last 30 minutes
  43. to: sysadmin
  44. ## FreeBSD
  45. alarm: ram_in_use
  46. on: system.ram
  47. class: Utilization
  48. type: System
  49. component: Memory
  50. os: freebsd
  51. hosts: *
  52. calc: ($active + $wired + $laundry + $buffers) * 100 / ($active + $wired + $laundry + $buffers + $cache + $free + $inactive)
  53. units: %
  54. every: 10s
  55. warn: $this > (($status >= $WARNING) ? (80) : (90))
  56. crit: $this > (($status == $CRITICAL) ? (90) : (98))
  57. delay: down 15m multiplier 1.5 max 1h
  58. info: system memory utilization
  59. to: sysadmin
  60. alarm: ram_available
  61. on: mem.available
  62. class: Utilization
  63. type: System
  64. component: Memory
  65. os: freebsd
  66. hosts: *
  67. calc: $avail * 100 / ($system.ram.free + $system.ram.active + $system.ram.inactive + $system.ram.wired + $system.ram.cache + $system.ram.laundry + $system.ram.buffers)
  68. units: %
  69. every: 10s
  70. warn: $this < (($status >= $WARNING) ? (15) : (10))
  71. crit: $this < (($status == $CRITICAL) ? (10) : ( 5))
  72. delay: down 15m multiplier 1.5 max 1h
  73. info: percentage of estimated amount of RAM available for userspace processes, without causing swapping
  74. to: sysadmin