Permalink
Browse files

prevent division by zero in memcached fill rate

  • Loading branch information...
1 parent 6a7d7c4 commit 3b965edbda151e63f378638ef0f96c6c6e92d543 @ktsaou ktsaou committed Nov 12, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 conf.d/health.d/memcached.conf
@@ -42,7 +42,7 @@ template: cache_fill_rate
template: out_of_cache_space_time
on: memcached.cache
- calc: $available / $cache_fill_rate
+ calc: ($cache_fill_rate > 0) ? ($available / $cache_fill_rate) : (0)
units: hours
every: 10s
warn: $this > 0 and $this < (($status >= $WARNING) ? (48) : (8))

0 comments on commit 3b965ed

Please sign in to comment.