summaryrefslogtreecommitdiffstats
path: root/health
diff options
context:
space:
mode:
authorFotis Voutsas <fjvoutsas@gmail.com>2020-09-01 17:43:19 +0300
committerGitHub <noreply@github.com>2020-09-01 17:43:19 +0300
commit586424c4dfe8e74d33607d752adb15dc49ec20f4 (patch)
treed6ef1cba60d3e75ae36e1c1cc24dffab2a36d2f6 /health
parent907a3b3e964e36ee34a1347172d9cd4788f76fd5 (diff)
collect active processes limit feature v2 (#9843)
* Add VARIABLE of pid_max to active_processes chart to use on alarms * use function for pid_max and use a single alarm * fix in alarm
Diffstat (limited to 'health')
-rw-r--r--health/health.d/processes.conf26
1 files changed, 6 insertions, 20 deletions
diff --git a/health/health.d/processes.conf b/health/health.d/processes.conf
index d96998fdfc..293f1aa0d3 100644
--- a/health/health.d/processes.conf
+++ b/health/health.d/processes.conf
@@ -1,27 +1,13 @@
# you can disable an alarm notification by setting the 'to' line to: silent
- alarm: active_processes_limit_freebsd
+ alarm: active_processes
on: system.active_processes
- os: freebsd
hosts: *
- calc: $active
- units: processes
+ calc: $active * 100 / $pidmax
+ units: %
every: 5s
- warn: $this > (($status >= $WARNING) ? (75000) : (80000))
- crit: $this > (($status == $CRITICAL) ? (85000) : (90000))
+ warn: $this > (($status >= $WARNING) ? (75) : (80))
+ crit: $this > (($status == $CRITICAL) ? (85) : (90))
delay: down 5m multiplier 1.5 max 1h
- info: the number of active processes
- to: sysadmin
-
- alarm: active_processes_limit
- on: system.active_processes
- os: linux
- hosts: *
- calc: $active
- units: processes
- every: 5s
- warn: $this > (($status >= $WARNING) ? (25000) : (26000))
- crit: $this > (($status == $CRITICAL) ? (28000) : (30000))
- delay: down 5m multiplier 1.5 max 1h
- info: number of active processes
+ info: the percentage of active processes
to: sysadmin