pihole.conf 836 B

1234567891011121314151617181920212223242526272829303132
  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 * 8
  12. crit: $this > 60 * 60 * 24 * 8 * 2
  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. info: unwanted domains blocking is disabled
  28. to: sysadmin