cpu.conf 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. info: average CPU utilization over the last 10 minutes (excluding iowait, nice and steal)
  16. to: silent
  17. template: 10min_cpu_iowait
  18. on: system.cpu
  19. class: Utilization
  20. type: System
  21. component: CPU
  22. os: linux
  23. hosts: *
  24. lookup: average -10m unaligned of iowait
  25. units: %
  26. every: 1m
  27. warn: $this > (($status >= $WARNING) ? (20) : (40))
  28. delay: up 30m down 30m multiplier 1.5 max 2h
  29. info: average CPU iowait time over the last 10 minutes
  30. to: silent
  31. template: 20min_steal_cpu
  32. on: system.cpu
  33. class: Latency
  34. type: System
  35. component: CPU
  36. os: linux
  37. hosts: *
  38. lookup: average -20m unaligned of steal
  39. units: %
  40. every: 5m
  41. warn: $this > (($status >= $WARNING) ? (5) : (10))
  42. delay: down 1h multiplier 1.5 max 2h
  43. info: average CPU steal time over the last 20 minutes
  44. to: silent
  45. ## FreeBSD
  46. template: 10min_cpu_usage
  47. on: system.cpu
  48. class: Utilization
  49. type: System
  50. component: CPU
  51. os: freebsd
  52. hosts: *
  53. lookup: average -10m unaligned of user,system,interrupt
  54. units: %
  55. every: 1m
  56. warn: $this > (($status >= $WARNING) ? (75) : (85))
  57. crit: $this > (($status == $CRITICAL) ? (85) : (95))
  58. delay: down 15m multiplier 1.5 max 1h
  59. info: average CPU utilization over the last 10 minutes (excluding nice)
  60. to: silent