load.conf 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # you can disable an alarm notification by setting the 'to' line to: silent
  2. # Calculate the base trigger point for the load average alarms.
  3. # This is the maximum number of CPU's in the system over the past 1
  4. # minute, with a special case for a single CPU of setting the trigger at 2.
  5. alarm: load_cpu_number
  6. on: system.load
  7. class: Utilization
  8. type: System
  9. component: Load
  10. os: linux
  11. hosts: *
  12. calc: ($active_processors == nan or $active_processors == 0) ? (nan) : ( ($active_processors < 2) ? ( 2 ) : ( $active_processors ) )
  13. units: cpus
  14. every: 1m
  15. info: number of active CPU cores in the system
  16. # Send alarms if the load average is unusually high.
  17. # These intentionally _do not_ calculate the average over the sampled
  18. # time period because the values being checked already are averages.
  19. alarm: load_average_15
  20. on: system.load
  21. class: Utilization
  22. type: System
  23. component: Load
  24. os: linux
  25. hosts: *
  26. lookup: max -1m unaligned of load15
  27. calc: ($load_cpu_number == nan) ? (nan) : ($this)
  28. units: load
  29. every: 1m
  30. warn: ($this * 100 / $load_cpu_number) > (($status >= $WARNING) ? 175 : 200)
  31. delay: down 15m multiplier 1.5 max 1h
  32. info: system fifteen-minute load average
  33. to: sysadmin
  34. alarm: load_average_5
  35. on: system.load
  36. class: Utilization
  37. type: System
  38. component: Load
  39. os: linux
  40. hosts: *
  41. lookup: max -1m unaligned of load5
  42. calc: ($load_cpu_number == nan) ? (nan) : ($this)
  43. units: load
  44. every: 1m
  45. warn: ($this * 100 / $load_cpu_number) > (($status >= $WARNING) ? 350 : 400)
  46. delay: down 15m multiplier 1.5 max 1h
  47. info: system five-minute load average
  48. to: sysadmin
  49. alarm: load_average_1
  50. on: system.load
  51. class: Utilization
  52. type: System
  53. component: Load
  54. os: linux
  55. hosts: *
  56. lookup: max -1m unaligned of load1
  57. calc: ($load_cpu_number == nan) ? (nan) : ($this)
  58. units: load
  59. every: 1m
  60. warn: ($this * 100 / $load_cpu_number) > (($status >= $WARNING) ? 700 : 800)
  61. delay: down 15m multiplier 1.5 max 1h
  62. info: system one-minute load average
  63. to: sysadmin