In order to use ipmitool to gather metrics as part of my Telegraf, Grafana and InfluxDB (TIG) setup (read more about how I set that up here) I needed to find a way give non-root access to run ipmitool
.
The solution turned out to be quite simple in the end. Modify a udev rule to give the telegraf
group permission to access the kernel module ipmi
.
I added the following content to /etc/udev/rules.d/10-telegraf-ipmi.rules
...
KERNEL=="ipmi*", MODE="660", GROUP="telegraf"
Reboot and done.
This was tested on a Supermicro X11SAE-F on Arch Linux but should work on anything that can utilise ipmitool
.