prevent division by zero in memcached fill rate
Costa Tsaousis (ktsaou) committed
Nov 12, 2016 at 19:43 UTC
3b965edbda151e63f378638ef0f96c6c6e92d543
1 file changed
+1
-1
conf.d/health.d/memcached.conf
+1
-1
@@ -42,7 +42,7 @@ template: cache_fill_rate
42
43
template: out_of_cache_space_time
44
on: memcached.cache
45
- calc: $available / $cache_fill_rate
45
+ calc: ($cache_fill_rate > 0) ? ($available / $cache_fill_rate) : (0)
46
units: hours
47
every: 10s
48
warn: $this > 0 and $this < (($status >= $WARNING) ? (48) : (8))