summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Pardyl <adam@pardyl.com>2019-05-27 10:46:43 +0200
committerChris Akritidis <43294513+cakrit@users.noreply.github.com>2019-05-27 10:46:42 +0200
commit47d0c8854c8d737b6b1b3bb3d73b59fa3b389c43 (patch)
tree01022b79a82d6f5babbfcee36df4813372bca9d1
parent9410b63ee9168c80e6b0aedd8abe4ee0944d8047 (diff)
Active pid number alert (#6116)
-rw-r--r--health/Makefile.am1
-rw-r--r--health/health.d/processes.conf27
2 files changed, 28 insertions, 0 deletions
diff --git a/health/Makefile.am b/health/Makefile.am
index 8967037fde..11e1090c91 100644
--- a/health/Makefile.am
+++ b/health/Makefile.am
@@ -65,6 +65,7 @@ dist_healthconfig_DATA = \
health.d/phpfpm.conf \
health.d/portcheck.conf \
health.d/postgres.conf \
+ health.d/processes.conf \
health.d/qos.conf \
health.d/ram.conf \
health.d/redis.conf \
diff --git a/health/health.d/processes.conf b/health/health.d/processes.conf
new file mode 100644
index 0000000000..d96998fdfc
--- /dev/null
+++ b/health/health.d/processes.conf
@@ -0,0 +1,27 @@
+# you can disable an alarm notification by setting the 'to' line to: silent
+
+ alarm: active_processes_limit_freebsd
+ on: system.active_processes
+ os: freebsd
+ hosts: *
+ calc: $active
+ units: processes
+ every: 5s
+ warn: $this > (($status >= $WARNING) ? (75000) : (80000))
+ crit: $this > (($status == $CRITICAL) ? (85000) : (90000))
+ 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
+ to: sysadmin