ram.conf 2.3 KB

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