I'm creating a munin plugin to fetch temp values from my Pi's.
When running the script, as root, everything is fine:
pi /etc/munin/plugins # ./temp
temp.value 47.1
But when running it directly from Munin, it gives an error:
pi /etc/munin/plugins # telnet localhost 4949
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
# munin node at pi.yeri.be
fetch temp
temp.value VCHI initialization failed
Some users suggested to add the user (munin in my case) that would need access to */opt/vc/bin/vcgencmd measure_temp* to the plugdev or video group. I've tried both and neither worked.
I don't want to run a cron from root that writes the value to a file and have munin cat that file. Is there a way to give Munin access to that command?
Thanks.