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 > (10 * $update_every)
11 info: number of seconds since the last successful data collection
14 # detect if memcached cache is full
16 template: cache_full_pcent
18 calc: $used * 100 / ($used + $available)
23 info: current cache memory usage
26 # find the rate memcached cache is filling
28 template: cache_fill_rate
30 lookup: max -1s at -30m unaligned of available
31 calc: ($this - $available) / ($now - $after)
34 info: average rate the cache fills up (positive), or frees up (negative) space, for the last 30 minutes
37 # find the hours remaining until memcached cache is full
39 template: cache_full_after_hours
41 calc: $available / $cache_fill_rate / 3600
43 warn: $this > 0 and $this < 48
44 crit: $this > 0 and $this < 24
46 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