From fa859d6b3f2178ef6f8ed66092a48eaaff1e8645 Mon Sep 17 00:00:00 2001 From: Daniele Date: Fri, 1 Apr 2022 00:34:50 +0200 Subject: [PATCH] Added available ram check --- healthcheck.cfg.example | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/healthcheck.cfg.example b/healthcheck.cfg.example index 2e880ab..00bdfb9 100644 --- a/healthcheck.cfg.example +++ b/healthcheck.cfg.example @@ -101,6 +101,12 @@ DISABLED=True COMMAND=free | grep Mem | awk '{print int($4/$2 * 100.0)}' ALARM_VALUE_LESS_THAN=20 +[available_ram] +# Like Free ram, but shows available instead of free. You may want to use this if you use a memcache. +DISABLED=True +COMMAND=free | grep Mem | awk '{print int($6/$2 * 100.0)}' +ALARM_VALUE_LESS_THAN=20 + [cpu_temperature] # CPU Temperature alarm: requires lm-sensors installed and configured (check your distribution's guide) # The regexp must be adapted to your configuration: run `sensors` in the command line