pihole.conf 797 B

12345678910111213141516171819202122232425262728293031
  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. info: gravity.list (blocklist) file last update time
  13. to: sysadmin
  14. # Pi-hole's ability to block unwanted domains.
  15. # Should be enabled. The whole point of Pi-hole!
  16. template: pihole_status
  17. on: pihole.unwanted_domains_blocking_status
  18. class: Errors
  19. type: Ad Filtering
  20. component: Pi-hole
  21. every: 10s
  22. units: status
  23. calc: $disabled
  24. warn: $this != nan AND $this == 1
  25. delay: up 2m down 5m
  26. info: unwanted domains blocking is disabled
  27. to: sysadmin