diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2021-10-18 13:57:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-18 13:57:28 +0300 |
commit | 8662c5609026a056dab847b18e6eb125b099a740 (patch) | |
tree | f2124de1a4f4b6e87b78ef53d68853cad49112e9 /health | |
parent | 59d95ec88cd3663c5aaa7efd408fbbdca981a0b1 (diff) |
fix swap_used alarm calc (#11672)
Diffstat (limited to 'health')
-rw-r--r-- | health/health.d/swap.conf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/health/health.d/swap.conf b/health/health.d/swap.conf index 7a2fb16111..03c319320d 100644 --- a/health/health.d/swap.conf +++ b/health/health.d/swap.conf @@ -25,7 +25,7 @@ component: Memory component: Memory os: linux freebsd hosts: * - calc: $used * 100 / ( $used + $free ) + calc: ($used + $free) > 0 ? ($used * 100 / ($used + $free)) : 0 units: % every: 10s warn: $this > (($status >= $WARNING) ? (80) : (90)) |