This plugin relies in the freeIPMI Library for monitoring IPMI devices.
Before compiling the plugin, modify the following content (in ipmi_plugin_v2.c) to add or remove the metrics you want to collect:
/* Initialize w/ record id numbers to only monitor specific record ids */
/*
88 | CPU0 Pwr | Power Supply | 134.00 | W | 'OK'
89 | CPU1 Pwr | Power Supply | 66.00 | W | 'OK'
90 | CPU0 DIM01 Pwr | Power Supply | 5.00 | W | 'OK'
91 | CPU0 DIM23 Pwr | Power Supply | 4.00 | W | 'OK'
92 | CPU1 DIM01 Pwr | Power Supply | 5.00 | W | 'OK'
93 | CPU1 DIM23 Pwr | Power Supply | 4.00 | W | 'OK'
94 | Blade Pwr | Power Supply | 246.00 | W | 'OK'
*/
unsigned int record_ids[] = {88, 89, 90, 91, 92, 93, 94};
unsigned int record_ids_length = 7;Then, execute the following to compile the plugin:
gcc -DHAVE_CONFIG_H -Wall -Werror -g -O2 -shared -fPIC -I/COLLECTD_SOURCES_/ -I/COLLECTD_SOURCES/daemon/ - lipmimonitoring -o ipmi_plugin.so ipmi_plugin_v2.cCOLLECTD__SOURCES ... path to collectd sources
This plugin gets the values from the following metrics:
- power (from CPU)
88 | CPU0 Pwr | Power Supply | 134.00 | W | 'OK'
89 | CPU1 Pwr | Power Supply | 66.00 | W | 'OK'
90 | CPU0 DIM01 Pwr | Power Supply | 5.00 | W | 'OK'
91 | CPU0 DIM23 Pwr | Power Supply | 4.00 | W | 'OK'
92 | CPU1 DIM01 Pwr | Power Supply | 5.00 | W | 'OK'
93 | CPU1 DIM23 Pwr | Power Supply | 4.00 | W | 'OK'
94 | Blade Pwr | Power Supply | 246.00 | W | 'OK'© Atos 2017