fix for load alarms (#4180)
* updated configs.signatures * fix for load average alarms; fixes #4175 * updated configs.signatures
Costa Tsaousis committed
Sep 12, 2018 at 22:32 UTC
84fbcbad4482f67db31c9dd8bb8c8a36ea3afc62
2 files changed
+7
-6
conf.d/health.d/load.conf
+6
-6
@@ -4,11 +4,11 @@
4
# Calculate the base trigger point for the load average alarms.
5
# This is the maximum number of CPU's in the system over the past 1
6
# minute, with a special case for a single CPU of setting the trigger at 2.
7
-template: load_trigger
8
- on: system.cpu
7
+ alarm: load_trigger
8
+ on: system.load
9
os: linux
10
hosts: *
11
- calc: ($processors <= 2) ? ( 2 ) : ( $processors )
11
+ calc: ($system.cpu.processors <= 2) ? ( 2 ) : ( $system.cpu.processors )
12
units: cpus
13
every: 1m
14
info: trigger point for load average alarms
@@ -16,7 +16,7 @@ template: load_trigger
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
-template: load_average_15
19
+ alarm: load_average_15
20
on: system.load
21
os: linux
22
hosts: *
@@ -29,7 +29,7 @@ template: load_average_15
29
info: fifteen-minute load average
30
to: sysadmin
31
32
-template: load_average_5
32
+ alarm: load_average_5
33
on: system.load
34
os: linux
35
hosts: *
@@ -42,7 +42,7 @@ template: load_average_5
42
info: five-minute load average
43
to: sysadmin
44
45
-template: load_average_1
45
+ alarm: load_average_1
46
on: system.load
47
os: linux
48
hosts: *
configs.signatures
+1
@@ -672,6 +672,7 @@ declare -A configs_signatures=(
672
['e449e5582279742496550df14b6fca95']='health.d/entropy.conf'
673
['e4ed13f996434ac17b40a2228c96283b']='python.d/tomcat.conf'
674
['e5f32f54d6d6728f21f9ac26f37d6573']='python.d/example.conf'
675
+ ['e707ad89a146004ae281d66a4e01e5c1']='health.d/load.conf'
676
['e70a7ee4999f30c6ceb75f31088a3a34']='python.d/powerdns.conf'
677
['e734c5951a8764d4d9de046dd7cf7407']='health.d/softnet.conf'
678
['e7ae3f2b00b9e5178acfe4f5e46228b7']='health.d/tcp_resets.conf'