I created this command To call from telegrafHowever, it seems that some useless security nonsense means that the telegraf user can't run `vcgencmd`.
How can I get around this?
Code:
$ cat /usr/local/bin/influx-vcgencmd.sh#!/bin/shv=$( vcgencmd measure_volts | tr -c -d /[[:digit:].]/ )echo "cpu voltage=$v"
Code:
$ tail /etc/telegraf/telegraf.conf[[inputs.exec]] commands = ["/usr/local/bin/influx-vcgencmd.sh"] timeout = "3s" interval = "3m" data_format = "influx" [inputs.exec.tags] bucket = "system"
Code:
$ influx-vcgencmd.shcpu voltage=0.8403$ sudo -u telegraf influx-vcgencmd.shcpu voltage=////1000
How can I get around this?
Statistics: Posted by rwb — Wed Feb 26, 2025 10:42 am