summaryrefslogtreecommitdiffstats
path: root/conf.d
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@tsaousis.gr>2018-09-12 22:32:20 +0300
committerGitHub <noreply@github.com>2018-09-12 22:32:20 +0300
commit84fbcbad4482f67db31c9dd8bb8c8a36ea3afc62 (patch)
tree2aaf425a3f0b694a0cfacb8adb7ffd4933e63986 /conf.d
parentb5a547c719f02a3d4281f65be05dd7d22810f7cb (diff)
fix for load alarms (#4180)
* updated configs.signatures * fix for load average alarms; fixes #4175 * updated configs.signatures
Diffstat (limited to 'conf.d')
-rw-r--r--conf.d/health.d/load.conf12
1 files changed, 6 insertions, 6 deletions
diff --git a/conf.d/health.d/load.conf b/conf.d/health.d/load.conf
index 11a89fa878..0a59522aeb 100644
--- a/conf.d/health.d/load.conf
+++ b/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: *