blob: 2e5c1cbfd5ccc0d080dc033e956a89433e397618 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Blocklist last update time.
# Default update interval is a week.
template: pihole_blocklist_last_update
on: pihole.blocklist_last_update
class: Errors
type: Ad Filtering
component: Pi-hole
every: 10s
units: seconds
calc: $ago
warn: $this > 60 * 60 * 24 * 8
crit: $this > 60 * 60 * 24 * 8 * 2
info: gravity.list (blocklist) file last update time
to: sysadmin
# Gravity file check (gravity.list).
template: pihole_blocklist_gravity_file
on: pihole.blocklist_last_update
class: Errors
type: Ad Filtering
component: Pi-hole
every: 10s
units: boolean
calc: $file_exists
crit: $this != 1
delay: up 2m down 5m
info: gravity.list (blocklist) file existence state (0: not-exists, 1: exists)
to: sysadmin
# Pi-hole's ability to block unwanted domains.
# Should be enabled. The whole point of Pi-hole!
template: pihole_status
on: pihole.unwanted_domains_blocking_status
class: Errors
type: Ad Filtering
component: Pi-hole
every: 10s
units: boolean
calc: $enabled
warn: $this != 1
delay: up 2m down 5m
info: unwanted domains blocking status (0: disabled, 1: enabled)
to: sysadmin
|