Browse Source

fix for load alarms (#4180)

* updated configs.signatures

* fix for load average alarms; fixes #4175

* updated configs.signatures
Costa Tsaousis 6 years ago
parent
commit
84fbcbad44
2 changed files with 7 additions and 6 deletions
  1. 6 6
      conf.d/health.d/load.conf
  2. 1 0
      configs.signatures

+ 6 - 6
conf.d/health.d/load.conf

@@ -4,11 +4,11 @@
 # Calculate the base trigger point for the load average alarms.
 # This is the maximum number of CPU's in the system over the past 1
 # minute, with a special case for a single CPU of setting the trigger at 2.
-template: load_trigger
-      on: system.cpu
+   alarm: load_trigger
+      on: system.load
       os: linux
    hosts: *
-    calc: ($processors <= 2) ? ( 2 ) : ( $processors )
+    calc: ($system.cpu.processors <= 2) ? ( 2 ) : ( $system.cpu.processors )
    units: cpus
    every: 1m
     info: trigger point for load average alarms
@@ -16,7 +16,7 @@ template: load_trigger
 # Send alarms if the load average is unusually high.
 # These intentionally _do not_ calculate the average over the sampled
 # time period because the values being checked already are averages.
-template: load_average_15
+   alarm: load_average_15
       on: system.load
       os: linux
    hosts: *
@@ -29,7 +29,7 @@ template: load_average_15
     info: fifteen-minute load average
       to: sysadmin
 
-template: load_average_5
+   alarm: load_average_5
       on: system.load
       os: linux
    hosts: *
@@ -42,7 +42,7 @@ template: load_average_5
     info: five-minute load average
       to: sysadmin
 
-template: load_average_1
+   alarm: load_average_1
       on: system.load
       os: linux
    hosts: *

+ 1 - 0
configs.signatures

@@ -672,6 +672,7 @@ declare -A configs_signatures=(
   ['e449e5582279742496550df14b6fca95']='health.d/entropy.conf'
   ['e4ed13f996434ac17b40a2228c96283b']='python.d/tomcat.conf'
   ['e5f32f54d6d6728f21f9ac26f37d6573']='python.d/example.conf'
+  ['e707ad89a146004ae281d66a4e01e5c1']='health.d/load.conf'
   ['e70a7ee4999f30c6ceb75f31088a3a34']='python.d/powerdns.conf'
   ['e734c5951a8764d4d9de046dd7cf7407']='health.d/softnet.conf'
   ['e7ae3f2b00b9e5178acfe4f5e46228b7']='health.d/tcp_resets.conf'