In order to use Telegraf to monitor IPMI enabled servers you first need to do two things:
- Install the IPMI tool.
- Setup your server to allow IPMI login.
1. Edit telegraf.conf
[[inputs.ipmi_sensor]] path = "/user/bin/ipmitool" # This is the default install location of ipmitool servers = ["USERNAME:[email protected](IP.OF.IPMI.SERVER)"] interval = "30s" timeout = "20s" metric_version = "SUPPORTED METRIC VERSION OF SERVER" # Usually 1 or 2
2. Restart Telegraf
3. Adding panels to Grafana.
Setup a single stat panel in Grafana with the following query against your IPMI Telegraf data source.
FROM default ipmi_sensor WHERE server = IP.OF.IPMI.SERVER AND name = cpu1_temp SELECT field(value) mean() GROUP BY time(30s) full(null)
IPMI Metrics are listed under different names depending on the motherboard manufacturer. So "cpu1_temp" might be something different for your host!
You can test your IPMI tool installation by using the following command:
ipmitool -H IP.OF.SERVER.HERE -U username -P password sensor
IPMI Tool Github: https://github.com/ipmitool/ipmitool