Enable FreeBSD CPU healthcheck FreeBSD CPU only supports a few dimensions, so add a new template specifically tailored for it.
Enable FreeBSD CPU healthcheck FreeBSD CPU only supports a few dimensions, so add a new template specifically tailored for it.
Jacob Ayres committed
Jan 23, 2018 at 22:17 UTC
af6ae1074e59eeba031eaa2c1467363ed4246108
1 file changed
+14
conf.d/health.d/cpu.conf
+14
@@ -39,3 +39,17 @@ template: 20min_steal_cpu
39
delay: down 1h multiplier 1.5 max 2h
40
info: average CPU steal time for the last 20 minutes
41
to: sysadmin
42
+
43
+## FreeBSD
44
+template: 10min_cpu_usage
45
+ on: system.cpu
46
+ os: freebsd
47
+ hosts: *
48
+ lookup: average -10m unaligned of user,system,interrupt
49
+ units: %
50
+ every: 1m
51
+ warn: $this > (($status >= $WARNING) ? (75) : (85))
52
+ crit: $this > (($status == $CRITICAL) ? (85) : (95))
53
+ delay: down 15m multiplier 1.5 max 1h
54
+ info: average cpu utilization for the last 10 minutes (excluding nice)
55
+ to: sysadmin