Open bjoern-r opened 3 years ago
@bjoern-r is the user monitoring
allowed to read /etc/wireguard/wg0.conf
? This was my problem.
You could try your above prometheus_wireguard_exporter
command without the -n
to verify this easily.
thanks for pointing out. i will try it out when i have the chance..
i'm running the exporter as an unprivileged user
monitoring
and added a sudoers entry to allow execution of thewg
tool by monitoring user without password. however the exporter just returnsPermission denied (os error 13)
via shell it works as expected:
via prometheus_wireguard_exporter it fails