cpu.conf 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # you can disable an alarm notification by setting the 'to' line to: silent
  2. template: 10min_cpu_usage
  3. on: system.cpu
  4. class: Utilization
  5. type: System
  6. component: CPU
  7. os: linux
  8. hosts: *
  9. lookup: average -10m unaligned of user,system,softirq,irq,guest
  10. units: %
  11. every: 1m
  12. warn: $this > (($status >= $WARNING) ? (75) : (85))
  13. crit: $this > (($status == $CRITICAL) ? (85) : (95))
  14. delay: down 15m multiplier 1.5 max 1h
  15. summary: System CPU utilization
  16. info: Average CPU utilization over the last 10 minutes (excluding iowait, nice and steal)
  17. to: silent
  18. template: 10min_cpu_iowait
  19. on: system.cpu
  20. class: Utilization
  21. type: System
  22. component: CPU
  23. os: linux
  24. hosts: *
  25. lookup: average -10m unaligned of iowait
  26. units: %
  27. every: 1m
  28. warn: $this > (($status >= $WARNING) ? (20) : (40))
  29. delay: up 30m down 30m multiplier 1.5 max 2h
  30. summary: System CPU iowait time
  31. info: Average CPU iowait time over the last 10 minutes
  32. to: silent
  33. template: 20min_steal_cpu
  34. on: system.cpu
  35. class: Latency
  36. type: System
  37. component: CPU
  38. os: linux
  39. hosts: *
  40. lookup: average -20m unaligned of steal
  41. units: %
  42. every: 5m
  43. warn: $this > (($status >= $WARNING) ? (5) : (10))
  44. delay: down 1h multiplier 1.5 max 2h
  45. summary: System CPU steal time
  46. info: Average CPU steal time over the last 20 minutes
  47. to: silent
  48. ## FreeBSD
  49. template: 10min_cpu_usage
  50. on: system.cpu
  51. class: Utilization
  52. type: System
  53. component: CPU
  54. os: freebsd
  55. hosts: *
  56. lookup: average -10m unaligned of user,system,interrupt
  57. units: %
  58. every: 1m
  59. warn: $this > (($status >= $WARNING) ? (75) : (85))
  60. crit: $this > (($status == $CRITICAL) ? (85) : (95))
  61. delay: down 15m multiplier 1.5 max 1h
  62. summary: System CPU utilization
  63. info: Average CPU utilization over the last 10 minutes (excluding nice)
  64. to: silent