1
2
- # Make sure Pi-hole is responding.
2
+# Make sure Pi-hole is responding.
3
4
template: pihole_last_collected_secs
5
on: pihole.dns_queries_total
12
info: number of seconds since the last successful data collection
13
to: webmaster
14
15
- # Blocked DNS queries.
15
+# Blocked DNS queries.
16
17
- template: pihole_blocked_queries
18
- on: pihole.dns_queries_percentage
19
- every: 10s
20
- units: %
21
- calc: $blocked
22
- warn: $this > ( ($status >= $WARNING ) ? ( 45 ) : ( 55 ) )
23
- crit: $this > ( ($status >= $CRITICAL) ? ( 55 ) : ( 75 ) )
24
- delay: up 2m down 5m
25
- info: percentage of blocked dns queries for the last 24 hour
26
- to: sysadmin
27
-
28
-
29
- # Blocklist last update time.
30
- # Default update interval is a week.
17
+template: pihole_blocked_queries
18
+ on: pihole.dns_queries_percentage
19
+ every: 10s
20
+ units: %
21
+ calc: $blocked
22
+ warn: $this > ( ($status >= $WARNING ) ? ( 45 ) : ( 55 ) )
23
+ crit: $this > ( ($status >= $CRITICAL) ? ( 55 ) : ( 75 ) )
24
+ delay: up 2m down 5m
25
+ info: percentage of blocked dns queries for the last 24 hour
26
+ to: sysadmin
27
32
- template: pihole_blocklist_last_update
33
- on: pihole.blocklist_last_update
34
- every: 10s
35
- units: seconds
36
- calc: $ago
37
- warn: $this > 60 * 60 * 24 * 8
38
- crit: $this > 60 * 60 * 24 * 8 * 2
39
- info: blocklist last update time
40
- to: sysadmin
28
29
+# Blocklist last update time.
30
+# Default update interval is a week.
31
43
- # Gravity file check (gravity.list).
32
+template: pihole_blocklist_last_update
33
+ on: pihole.blocklist_last_update
34
+ every: 10s
35
+ units: seconds
36
+ calc: $ago
37
+ warn: $this > 60 * 60 * 24 * 8
38
+ crit: $this > 60 * 60 * 24 * 8 * 2
39
+ info: blocklist last update time
40
+ to: sysadmin
41
45
- template: pihole_blocklist_gravity_file
46
- on: pihole.blocklist_last_update
47
- every: 10s
48
- units: boolean
49
- calc: $file_exists
50
- crit: $this != 1
51
- delay: up 2m down 5m
52
- info: gravity file existence
53
- to: sysadmin
42
+# Gravity file check (gravity.list).
43
44
+template: pihole_blocklist_gravity_file
45
+ on: pihole.blocklist_last_update
46
+ every: 10s
47
+ units: boolean
48
+ calc: $file_exists
49
+ crit: $this != 1
50
+ delay: up 2m down 5m
51
+ info: gravity file existence
52
+ to: sysadmin
53
56
- # Pi-hole's ability to block unwanted domains.
57
- # Should be enabled. The whole point of Pi-hole!
54
+# Pi-hole's ability to block unwanted domains.
55
+# Should be enabled. The whole point of Pi-hole!
56
59
- template: pihole_status
60
- on: pihole.unwanted_domains_blocking_status
61
- every: 10s
62
- units: boolean
63
- calc: $enabled
64
- warn: $this != 1
65
- delay: up 2m down 5m
66
- info: unwanted domains blocking status
67
- to: sysadmin
57
+template: pihole_status
58
+ on: pihole.unwanted_domains_blocking_status
59
+ every: 10s
60
+ units: boolean
61
+ calc: $enabled
62
+ warn: $this != 1
63
+ delay: up 2m down 5m
64
+ info: unwanted domains blocking status
65
+ to: sysadmin