1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- # you can disable an alarm notification by setting the 'to' line to: silent
- template: 10min_cpu_usage
- on: system.cpu
- class: Utilization
- type: System
- component: CPU
- os: linux
- hosts: *
- lookup: average -10m unaligned of user,system,softirq,irq,guest
- units: %
- every: 1m
- warn: $this > (($status >= $WARNING) ? (75) : (85))
- crit: $this > (($status == $CRITICAL) ? (85) : (95))
- delay: down 15m multiplier 1.5 max 1h
- info: average CPU utilization over the last 10 minutes (excluding iowait, nice and steal)
- to: silent
- template: 10min_cpu_iowait
- on: system.cpu
- class: Utilization
- type: System
- component: CPU
- os: linux
- hosts: *
- lookup: average -10m unaligned of iowait
- units: %
- every: 1m
- warn: $this > (($status >= $WARNING) ? (20) : (40))
- delay: up 30m down 30m multiplier 1.5 max 2h
- info: average CPU iowait time over the last 10 minutes
- to: silent
- template: 20min_steal_cpu
- on: system.cpu
- class: Latency
- type: System
- component: CPU
- os: linux
- hosts: *
- lookup: average -20m unaligned of steal
- units: %
- every: 5m
- warn: $this > (($status >= $WARNING) ? (5) : (10))
- delay: down 1h multiplier 1.5 max 2h
- info: average CPU steal time over the last 20 minutes
- to: silent
- ## FreeBSD
- template: 10min_cpu_usage
- on: system.cpu
- class: Utilization
- type: System
- component: CPU
- os: freebsd
- hosts: *
- lookup: average -10m unaligned of user,system,interrupt
- units: %
- every: 1m
- warn: $this > (($status >= $WARNING) ? (75) : (85))
- crit: $this > (($status == $CRITICAL) ? (85) : (95))
- delay: down 15m multiplier 1.5 max 1h
- info: average CPU utilization over the last 10 minutes (excluding nice)
- to: silent
|