Closed gmunday2 closed 1 year ago
Same here :(
This is the same as my issue: https://github.com/Qrome/Pi-hole-Monitor/issues/17
Basically if you logout from pi-hole you won't be getting the summary. They changed it at some point. Now, pi-hole monitor needs to be changed so that you enter the credentials in the settings, so that it can authenticate against pi-hole and get the summary properly.
That is correct.
Updated in 1.5 to include api key for all data calls. https://github.com/Qrome/Pi-hole-Monitor/releases/tag/V1.5
Set this up today pointed it to my docker server running pi hole..
It gets the date and ips that tried blocked domains, but nothing else, ive looked in serial monitor and get this
Sending: http://192.168.1.164:1010/admin/api.php?summary Response Code: 200 Response: [] Data Summary Parsing failed: http://192.168.1.164:1010/admin/api.php?summary Sending: http://192.168.1.164:1010/admin/api.php?overTimeData10mins Response Code: 200 Modified Response: { Data Parsing failed: http://192.168.1.164:1010/admin/api.php?overTimeData10mins Sending: http://192.168.1.164:1010/admin/api.php?topClientsBlocked=3&auth=3ed0140524f0e5571e0134b6153656db4efa37be7b09a11adfa61f7c5dfda72e Response Code: 200 Response: {"top_sources_blocked":{"192.168.1.191":3}} Blocked Client 1: 192.168.1.191 (3)
When i click in the pi hole monitor config test connection for summary i get the summary returned fine etc....
{"domains_being_blocked":"166,512","dns_queries_today":"533","ads_blocked_today":"4","ads_percentage_today":"0.8","unique_domains":"268","queries_forwarded":"515","queries_cached":"8","clients_ever_seen":"3","unique_clients":"3","dns_queries_all_types":"533","reply_UNKNOWN":"40","reply_NODATA":"109","reply_NXDOMAIN":"43","reply_CNAME":"220","reply_IP":"63","reply_DOMAIN":"0","reply_RRNAME":"0","reply_SERVFAIL":"0","reply_REFUSED":"0","reply_NOTIMP":"0","reply_OTHER":"0","reply_DNSSEC":"58","reply_NONE":"0","reply_BLOB":"0","dns_queries_all_replies":"533","privacy_level":"0","status":"enabled","gravity_last_updated":{"file_exists":true,"absolute":1673452010,"relative":{"days":0,"hours":0,"minutes":39}}}
but the pihole monitor not grabbing this info properly?