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: memcached_cache_fill_rate
32 lookup: min -5m at -30m unaligned of available
33 calc: ($this - $available) / (($now - $after) / 60)
36 info: average rate the cache fills up (positive), or frees up (negative) space, for the last 30 minutes
39 # find the hours remaining until memcached cache is full
41 template: memcached_out_of_cache_space
43 calc: $available / ($memcached_cache_fill_rate * 60)
45 warn: $this > 0 and $this < 48
46 crit: $this > 0 and $this < 24
48 info: estimated time the cache will run out of space, if the system continues to add data with the rate of the last 30 minutes