1 |
|
---|
2 | # make sure we can collect web log data
|
---|
3 |
|
---|
4 | template: last_collected_secs
|
---|
5 | on: rrdcached.Queue
|
---|
6 | families: *
|
---|
7 | calc: $now - $last_collected_t
|
---|
8 | units: seconds ago
|
---|
9 | every: 10s
|
---|
10 | warn: $this > (($status >= $WARNING) ? ($update_every) : ( 5 * $update_every))
|
---|
11 | crit: $this > (($status == $CRITICAL) ? ($update_every) : (60 * $update_every))
|
---|
12 | delay: down 5m multiplier 1.5 max 1h
|
---|
13 | info: number of seconds since the last successful data collection
|
---|
14 | to: webmaster
|
---|
15 |
|
---|
16 | alarm: 5m_queue
|
---|
17 | on: rrdcached.Queue
|
---|
18 | lookup: average -5m unaligned of QueueLength
|
---|
19 | hosts: *
|
---|
20 | units: items/s
|
---|
21 | every: 10s
|
---|
22 | warn: $this > 500
|
---|
23 | crit: $this > 1000
|
---|
24 | info: the length of queue over the last 5 minutes
|
---|
25 |
|
---|
26 |
|
---|