ipmi_exporter
ipmi_exporter copied to clipboard
Error while calling ipmitool
I'm using the docker configuration as documented in the readme. When accessing the metrics endpoint the following is logged:
ERRO[0007] error while calling ipmitool: exit status 1 source=collector.go:44
ERRO[0007] exit status 1 source=collector.go:198
Starting the container with -log.level debug doesn't produce any more output.
However executing ipmitool sensor inside the container seems to work correctly:
root@server:~# docker run --rm -it --device=/dev/ipmi0 --entrypoint ipmitool lovoo/ipmi_exporter:latest sensor
CPU Temp | 42.000 | degrees C | ok | 0.000 | 0.000 | 0.000 | 95.000 | 98.000 | 100.000
System Temp | 37.000 | degrees C | ok | -9.000 | -7.000 | -5.000 | 80.000 | 85.000 | 90.000
Peripheral Temp | 43.000 | degrees C | ok | -9.000 | -7.000 | -5.000 | 80.000 | 85.000 | 90.000
PCH Temp | 59.000 | degrees C | ok | -11.000 | -8.000 | -5.000 | 90.000 | 95.000 | 100.000
P1-DIMMA1 Temp | na | | na | na | na | na | na | na | na
P1-DIMMA2 Temp | 36.000 | degrees C | ok | 1.000 | 2.000 | 4.000 | 80.000 | 85.000 | 90.000
P1-DIMMB1 Temp | na | | na | na | na | na | na | na | na
P1-DIMMB2 Temp | 36.000 | degrees C | ok | 1.000 | 2.000 | 4.000 | 80.000 | 85.000 | 90.000
FAN1 | na | | na | na | na | na | na | na | na
FAN2 | 300.000 | RPM | nc | 200.000 | 200.000 | 300.000 | 25300.000 | 25400.000 | 25500.000
FAN3 | 400.000 | RPM | ok | 200.000 | 200.000 | 300.000 | 25300.000 | 25400.000 | 25500.000
FAN4 | 300.000 | RPM | nc | 200.000 | 200.000 | 300.000 | 25300.000 | 25400.000 | 25500.000
FANA | 400.000 | RPM | ok | 200.000 | 200.000 | 300.000 | 25300.000 | 25400.000 | 25500.000
Vcpu | 1.791 | Volts | ok | 1.242 | 1.260 | 1.395 | 1.899 | 2.088 | 2.106
VDIMM | 1.488 | Volts | ok | 1.092 | 1.119 | 1.200 | 1.641 | 1.722 | 1.749
12V | 12.128 | Volts | ok | 10.144 | 10.272 | 10.784 | 12.960 | 13.280 | 13.408
5VCC | 4.973 | Volts | ok | 4.244 | 4.487 | 4.730 | 5.378 | 5.540 | 5.594
3.3VCC | 3.316 | Volts | ok | 2.789 | 2.823 | 2.959 | 3.554 | 3.656 | 3.690
VBAT | 3.084 | Volts | ok | 2.384 | 2.496 | 2.580 | 3.476 | 3.588 | 3.672
5V Dual | 5.000 | Volts | ok | 4.244 | 4.379 | 4.487 | 5.378 | 5.540 | 5.594
3.3V AUX | 3.299 | Volts | ok | 2.789 | 2.891 | 2.959 | 3.554 | 3.656 | 3.690
1.2V BMC | 1.269 | Volts | ok | 1.080 | 1.107 | 1.152 | 1.404 | 1.431 | 1.458
1.05V PCH | 1.050 | Volts | ok | 0.870 | 0.897 | 0.942 | 1.194 | 1.221 | 1.248
Chassis Intru | 0x1 | discrete | 0x0100| na | na | na | na | na | na
Hi @ulope, as explained in #21, the raw commands in collector/collector.go#L191 and collector/collector.go#L192 are not working, and are logged by line 198. I hope #21 or a similar solution will be fixing this issue soon.
#21 is merged, please test if your issue is solved with these PR