Pi-Hole API Popular
Pi-Hole API
Auth integration:
Simply execute this command on Pi-Hole to retrieve API Token:
sudo cat /etc/pihole/setupVars.conf | grep PASSWORD | cut -d "=" -f2
Or go in the Pi-Hole WebUI > Settings > tab Api / Web Interface > button Show API Token.
Report the value in Zabbix:
Configuration > Hosts > [your Pi-Hole] > Macros Tab > new macro:
- Macro: {$WEBPASSWORD}
- Value: [the result of the command executed on your Pi-Hole]
Changelog:
Update 2020.8.3 (v1.4):
- added getQueryTypes dependent items + graph:
- MX
- DS
- RRSIG
- DNSKEY
- OTHER
Update 2020.7.9 (v1.3):
- added Auth support
Update 2020.7.8 (v1.2):
- bugfixes in existing items (preprocessing stuff)
- switch to "summaryRaw" URL (http://{HOST.IP}/admin/api.php?summaryRaw)
- link this page to Pi-Hole API FAQ
- template graphics
- new API metrics: http://{HOST.IP}/admin/api.php?getQueryTypes
getQueryTypes dependent items:
- A (IPv4)
- AAAA (IPv6)
- ANY
- NAPTR
- PTR
- SOA
- SRV
- TXT
Initiale release (v1.1):
API SummaryRaw (no auth needed): http://{HOST.IP}/admin/api.php?summaryRaw
API Dependent items:
- Ads blocked today
- Ads percentage today
- DNS queries all types
- DNS queries today
- Domains being blocked
- Queries cached
- Queries forwarded
- Reply CNAME
- Reply IP
- Reply NODATA
- Reply NXDOMAIN
- Clients ever seen
- Unique clients
- Unique domain
Listing Details
1 version, '2020-08-03 18:12' modified