load.conf 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 == inf or $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. units: load
  28. every: 1m
  29. warn: ($this * 100 / $load_cpu_number) > (($status >= $WARNING) ? 175 : 200)
  30. delay: down 15m multiplier 1.5 max 1h
  31. info: system fifteen-minute load average
  32. to: sysadmin
  33. alarm: load_average_5
  34. on: system.load
  35. class: Utilization
  36. type: System
  37. component: Load
  38. os: linux
  39. hosts: *
  40. lookup: max -1m unaligned of load5
  41. units: load
  42. every: 1m
  43. warn: ($this * 100 / $load_cpu_number) > (($status >= $WARNING) ? 350 : 400)
  44. delay: down 15m multiplier 1.5 max 1h
  45. info: system five-minute load average
  46. to: sysadmin
  47. alarm: load_average_1
  48. on: system.load
  49. class: Utilization
  50. type: System
  51. component: Load
  52. os: linux
  53. hosts: *
  54. lookup: max -1m unaligned of load1
  55. units: load
  56. every: 1m
  57. warn: ($this * 100 / $load_cpu_number) > (($status >= $WARNING) ? 700 : 800)
  58. delay: down 15m multiplier 1.5 max 1h
  59. info: system one-minute load average
  60. to: sysadmin