ram.conf 2.5 KB

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