summaryrefslogtreecommitdiffstats
path: root/health/health.d/pihole.conf
blob: c4db835cee4a034158076c123860eeabf175b623 (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
# 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 * 30
  summary: Pi-hole blocklist last update
     info: gravity.list (blocklist) file last update time
       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: status
     calc: $disabled
     warn: $this != nan AND $this == 1
    delay: up 2m down 5m
  summary: Pi-hole domains blocking status
     info: Unwanted domains blocking is disabled
       to: sysadmin