1 |
|
---|
2 | # make sure we can collect web log data
|
---|
3 |
|
---|
4 | template: last_collected_secs
|
---|
5 | on: dhcpd_log.message_types
|
---|
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: 1m_discovers
|
---|
17 | on: dhcpd_log.message_types
|
---|
18 | lookup: average -5m unaligned of DISCOVER
|
---|
19 | hosts: *
|
---|
20 | units: messages/s
|
---|
21 | every: 10s
|
---|
22 | warn: $this > 40
|
---|
23 | crit: $this > 50
|
---|
24 | info: the rate of DHCPDISCOVER messages over the last minute
|
---|
25 |
|
---|
26 | alarm: 1m_requests
|
---|
27 | on: dhcpd_log.message_types
|
---|
28 | lookup: average -15m unaligned of REQUEST
|
---|
29 | hosts: *
|
---|
30 | units: messages/s
|
---|
31 | every: 10s
|
---|
32 | warn: $this > 40
|
---|
33 | crit: $this < 1
|
---|
34 | info: the rate of DHCPREQUEST messages over the last minute
|
---|
35 |
|
---|