2 # make sure memcached is running
4 template: memcached_last_collected_secs
6 calc: $now - $last_collected_t
8 warn: $this > ( 5 * $update_every)
9 crit: $this > (60 * $update_every)
11 info: number of seconds since the last successful data collection
15 # detect if memcached cache is full
17 template: memcached_cache_memory_usage
19 calc: $used * 100 / ($used + $available)
24 info: current cache memory usage
28 # find the rate memcached cache is filling
30 template: cache_fill_rate
32 lookup: min -10m at -50m unaligned of available
33 calc: ($this - $available) / (($now - $after) / 3600)
36 info: average rate the cache fills up (positive), or frees up (negative) space, for the last hour
39 # find the hours remaining until memcached cache is full
41 template: out_of_cache_space_time
43 calc: $available / $cache_fill_rate
45 warn: $this > 0 and $this < 8
46 crit: $this > 0 and $this < 2
48 info: estimated time the cache will run out of space, if the system continues to add data with the rate of the last hour