2 # make sure memcached is running
4 template: memcached_last_collected_secs
5 on: memcached.connections
6 calc: $now - $last_collected_t
8 warn: $this > ( 5 * $update_every)
9 crit: $this > (10 * $update_every)
13 # detect if memcached cache is full
15 template: cache_full_pcent
17 calc: $used * 100 / ($used + $available)
24 # find the rate memcached cache is filling
26 template: cache_fill_rate
28 lookup: max -1s at -30m unaligned of available
29 calc: ($this - $available) / ($now - $after)
34 # find the hours remaining until memcached cache is full
36 template: cache_full_after_hours
38 calc: $available / $cache_fill_rate / 3600
40 warn: $this > 0 and $this < 48
41 crit: $this > 0 and $this < 24