How to give Telegraf non-root user IPMITOOL permissions via udev

IronicBadger1 min read

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.

Keep reading

3 min read

Advanced Wireguard Hub

In a couple of prior articles (here and here) we showcased the capabilities of our WireGuard Docker container with some real world examples. At the time, our WireGuard container…