Pihole Stats Monitoring

perhaps it is usefull for someone.

#!/bin/bash
#####piggyback for host: Firewall-Home
device="Firewall-Home"
echo "<<<<$device>>>>"
echo "<<<local:sep(0)>>>"
#stats=$(/usr/bin/docker exec pihole pihole -c -j)
stats=$(pihole pihole -c -j)
dns_queries_today=$(echo $stats |jq '.dns_queries_today')
domains_being_blocked=$(echo $stats |jq '.domains_being_blocked')
ads_blocked_today=$(echo $stats |jq '.ads_blocked_today')
ads_percentage_today=$(echo $stats |jq '.ads_percentage_today')
echo "0 PiHole State dns_queries_today=${dns_queries_today}|domains_being_blocked=${domains_being_blocked}|queries_blocked_today=${ads_blocked_today}|percentage_blocked_today=${ads_percentage_today} OK - ${ads_percentage_today}% queries blocked today"
echo "<<<<>>>>"

interesting. Looks like there is one pihole too much, or not?

stats=$(pihole pihole -c -j)

Question, the jq command is this a default with your dirstribution?