prometheus-community / ipmi_exporter

Remote IPMI exporter for Prometheus
MIT License
459 stars 131 forks source link

ipmi_ctx_open_outofband_2_0: internal system error #188

Closed lklkxcxc closed 5 months ago

lklkxcxc commented 5 months ago

ipmi_exporter report error:

ts=2024-03-19T07:30:34.229Z caller=collector_bmc.go:53 level=error msg="Failed to collect BMC data" target=172.21.21.23 error="error running bmc-info: exit status 1: ipmi_ctx_open_outofband_2_0: internal system error\n"
ts=2024-03-19T07:30:34.239Z caller=collector_ipmi.go:151 level=error msg="Failed to collect sensor data" target=172.21.21.23 error="error running ipmimonitoring: exit status 1: ipmi_ctx_open_outofband_2_0: internal system error\n"
ts=2024-03-19T07:30:34.245Z caller=collector_chassis.go:65 level=error msg="Failed to collect chassis data" target=172.21.21.23 error="error running ipmi-chassis: exit status 1: ipmi_ctx_open_outofband_2_0: internal system error\n"

freeipa version: freeipmi-1.6.14-2.el8.x86_64 ipmi_exporter version: 1.8.0

bitfehler commented 5 months ago

The error is from FreeIPMI, this is outside the scope of this exporter. If you can provide a working command line invocation of e.g. bmc-info I can help you translate that into a corresponding exporter config.

lklkxcxc commented 5 months ago

@bitfehler thanks!bmc-info:

root@xingzai-init:/etc/netplan# bmc-info
Device ID             : 32
Device Revision       : 1
Device SDRs           : unsupported
Firmware Revision     : 1.08
Device Available      : yes (normal operation)
IPMI Version          : 2.0
Sensor Device         : supported
SDR Repository Device : supported
SEL Device            : supported
FRU Inventory Device  : supported
IPMB Event Receiver   : supported
IPMB Event Generator  : supported
Bridge                : unsupported
Chassis Device        : supported
Manufacturer ID       : Reserved (0)
Product ID            : 514
Auxiliary Firmware Revision Information : 00000000h

System Firmware Version       : G3DE0009
System Name                   : RMManager
Primary Operating System Name : SUSEServer1.0
Operating System Name         : 
Present OS Version Number     : 

Channel Information

Channel Number       : 0
Medium Type          : IPMB (I2C)
Protocol Type        : IPMB-1.0
Active Session Count : 0
Session Support      : session-less
Vendor ID            : Intelligent Platform Management Interface forum (7154)

Channel Number       : 1
Medium Type          : 802.3 LAN
Protocol Type        : IPMB-1.0
Active Session Count : 0
Session Support      : multi-session
Vendor ID            : Intelligent Platform Management Interface forum (7154)

Channel Number       : 2
Medium Type          : Asynch. Serial/Modem (RS-232)
Protocol Type        : IPMB-1.0
Active Session Count : 0
Session Support      : single-session
Vendor ID            : Intelligent Platform Management Interface forum (7154)

Channel Number       : 4
Medium Type          : SMBus v2.0
Protocol Type        : IPMI-SMBus
Active Session Count : 0
Session Support      : session-less
Vendor ID            : Intelligent Platform Management Interface forum (7154)

Channel Number       : 5
Medium Type          : IPMB (I2C)
Protocol Type        : IPMB-1.0
Active Session Count : 0
Session Support      : session-less
Vendor ID            : Intelligent Platform Management Interface forum (7154)

Channel Number       : 7
Medium Type          : 802.3 LAN
Protocol Type        : IPMB-1.0
Active Session Count : 0
Session Support      : multi-session
Vendor ID            : Intelligent Platform Management Interface forum (7154)

Channel Number       : 8
Medium Type          : 802.3 LAN
Protocol Type        : IPMB-1.0
Active Session Count : 0
Session Support      : multi-session
Vendor ID            : Intelligent Platform Management Interface forum (7154)

Channel Number       : 10
Medium Type          : IPMB (I2C)
Protocol Type        : IPMB-1.0
Active Session Count : 0
Session Support      : session-less
Vendor ID            : Intelligent Platform Management Interface forum (7154)

Channel Number       : 254
Medium Type          : OEM
Protocol Type        : Reserved
Active Session Count : 0
Session Support      : unknown
Vendor ID            : Capricode (32766)

Channel Number       : 176
Medium Type          : unknown
Protocol Type        : unknown
Active Session Count : 152
Session Support      : unknown
Vendor ID             : 2564855232

Channel Number       : 177
Medium Type          : unknown
Protocol Type        : unknown
Active Session Count : 247
Session Support      : unknown
Vendor ID             : 2136827584

Channel Number       : 254
Medium Type          : OEM
Protocol Type        : Reserved
Active Session Count : 0
Session Support      : unknown
Vendor ID            : Reserved (0)

[root@monitor ~]# bmc-info -h 172.21.21.36 -u admin -p xxxx -D LAN ipmi_ctx_open_outofband: command invalid or unsupported

bitfehler commented 5 months ago

[root@monitor ~]# bmc-info -h 172.21.21.36 -u admin -p xxxx -D LAN ipmi_ctx_open_outofband: command invalid or unsupported

This is the one you'll have to get to work, which I cannot help you with. I can give you one hint, though: you most likely want LAN_2_0, not LAN.