|
@@ -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: *
|