pihole.conf 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. # Gravity file check (gravity.list).
  16. template: pihole_blocklist_gravity_file
  17. on: pihole.blocklist_last_update
  18. class: Errors
  19. type: Ad Filtering
  20. component: Pi-hole
  21. every: 10s
  22. units: boolean
  23. calc: $file_exists
  24. crit: $this != 1
  25. delay: up 2m down 5m
  26. info: gravity.list (blocklist) file existence state (0: not-exists, 1: exists)
  27. to: sysadmin
  28. # Pi-hole's ability to block unwanted domains.
  29. # Should be enabled. The whole point of Pi-hole!
  30. template: pihole_status
  31. on: pihole.unwanted_domains_blocking_status
  32. class: Errors
  33. type: Ad Filtering
  34. component: Pi-hole
  35. every: 10s
  36. units: boolean
  37. calc: $enabled
  38. warn: $this != 1
  39. delay: up 2m down 5m
  40. info: unwanted domains blocking status (0: disabled, 1: enabled)
  41. to: sysadmin