Is there a non-admin dashboard?

I'm wondering if there's a way to let in users on the stats and whatnot but without giving them the ability to edit settings.

Is there a non-admin dashboard?


BTW, when I finished typing in the post, the answer appeared on the box to the side, well, kind of…it wasn't answered, so I'm not holding my breath, I guess. :frowning:

If your looking for a stats page like the one you see in the admin page then I would say no.

You can use the API to get stats to a html page but it also involves exposing the API key which I'm sure poses its own security issues. The stats will be text summarys of the major stats etc.

Does the info from the FTL API meet your needs? In the Pi-hole terminal:

echo ">stats >quit" | nc 127.0.0.1 4711

If so, you can run a root cron job which takes that info and puts it in the pihole web root as a text file.

You can test with:

sudo -i    (to become root)
echo ">stats >quit" | nc 127.0.0.1 4711 > /var/www/html/pihole/stats.txt
exit    (to return to normal user)

Then view it in a browser from any computer on your network

http://IP_OF_PIHOLE/pihole/stats.txt

If you like that, you can become root as above, then run crontab -e to edit root's crontab file, and add an entry to run it as desired. For example run every 5 minutes:

*/5 * * * * echo ">stats >quit" | nc 127.0.0.1 4711 > /var/www/html/pihole/stats.txt

I use graylog and zabbix to capture data from Sqlite. Dashboards are done in Graylog.