Skip to content

Plugin not working with remote docker PiHole instance #6

Open
@Zanathoz

Description

@Zanathoz

Describe the bug
Graph's not loading with remote PiHole instance hosted as a Podman (docker) container. The container has storage on a remote NFS share for all databases and configuration and works perfectly.

To Reproduce
Steps to reproduce the behavior:
Remote PiHole instance installed in Docker/Podman environment with storage volume on remote NFS volume.

Install stand-alone Ubuntu server with munin-pihole-plugin plugin and configure accordingly:

Point /etc/munin/plugin-conf.d/pihole.conf to remote PiHole install:
[pihole_*]
user root
env.host 192.168.10.201
env.port 8080
env.api /admin/api.php
env.cachesuffix ?getCacheInfo&auth=
env.webpassword [omitted]

NOTE: I've tried entering the hashes password in my setupVars.conf file as well as the password I configure with the container for the env.webpassword variable and the same issue persists after reboots.

Check manual plugin if it can pull data:
mpp@dj-mpp-reports:~$ sudo munin-run pihole_clients
/etc/munin/plugins/pihole_clients: 101: cannot open /etc/pihole/setupVars.conf: No such file
clients_ever_seen.value 23
unique_clients.value 22

mpp@dj-mpp-reports:~$ sudo munin-run pihole_blocked
/etc/munin/plugins/pihole_blocked: 101: cannot open /etc/pihole/setupVars.conf: No such file
domains_being_blocked.value 5609966

mpp@dj-mpp-reports:~$ sudo munin-run pihole_cache
/etc/munin/plugins/pihole_cache: 101: cannot open /etc/pihole/setupVars.conf: No such file

NOTE: The setupVars.conf is available on my NFS share, but should still be available to /etc/pihole/setupVars.conf through the container/API call. Here is my Podman command line (Similar to Docker Compose):

podman run -d --name pihole -p 53:53/tcp -p 53:53/udp -p 8080:80/tcp --hostname pihole --cap-add=CAP_AUDIT_WRITE -e FTLCONF_REPLY_ADDR4=192.168.10.201 -e PIHOLE_DNS_="192.168.10.201#5335;192.168.10.202#5335" -e TZ="America/New York" -e WEBPASSWORD="ommitted" -v /var/pihole/pihole1:/etc/pihole -v /var/pihole/pihole1/piholedns/:/etc/dnsmasq.d --restart=unless-stopped --label="io.containers.autoupdate=registry" docker.io/pihole/pihole:latest

Expected behavior
SetupVars.conf to be accessible and graphs to load

Screenshots
image
image
image

Desktop (please complete the following information):

  • [ℹ] munin-pihole-plugins version is v06.04.00 (Latest: v06.04.00)
  • munin-pihole-plugins branch [e.g. master, development]
  • master
  • development
  • OS: Ubuntu
  • Version: Ubuntu 20.04.4 LTS

Additional context
Add any other context about the problem here.

Metadata

Metadata

Labels

bugSomething isn't working or works unexpectedlyinvestigatingCurrently being investigated

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions