pihole.conf 881 B

123456789101112131415161718192021222324252627282930313233
  1. # Blocklist last update time.
  2. # Default update interval is a week.
  3. template: pihole_blocklist_last_update
  4. on: pihole.blocklist_last_update
  5. class: Errors
  6. type: Ad Filtering
  7. component: Pi-hole
  8. every: 10s
  9. units: seconds
  10. calc: $ago
  11. warn: $this > 60 * 60 * 24 * 30
  12. summary: Pi-hole blocklist last update
  13. info: gravity.list (blocklist) file last update time
  14. to: sysadmin
  15. # Pi-hole's ability to block unwanted domains.
  16. # Should be enabled. The whole point of Pi-hole!
  17. template: pihole_status
  18. on: pihole.unwanted_domains_blocking_status
  19. class: Errors
  20. type: Ad Filtering
  21. component: Pi-hole
  22. every: 10s
  23. units: status
  24. calc: $disabled
  25. warn: $this != nan AND $this == 1
  26. delay: up 2m down 5m
  27. summary: Pi-hole domains blocking status
  28. info: Unwanted domains blocking is disabled
  29. to: sysadmin