yum install OpenIPMI ipmitool systemctl enable ipmi.service service ipmi start
# ipmitool sdr type "Power Supply" PS Redundancy | 74h | ok | 7.1 | Fully Redundant Status | 62h | ok | 10.1 | Presence detected Status | 63h | ok | 10.2 | Presence detected
Nagios/Icinga plugin to check IPMI sensors
yum -y install perl-IPC-Run freeipmi cd /usr/lib64/nagios/plugins/ wget https://raw.githubusercontent.com/thomas-krenn/check_ipmi_sensor_v3/master/check_ipmi_sensor chmod +x check_ipmi_sensor /usr/sbin/ipmi-sel --clear
# /usr/lib64/nagios/plugins/check_ipmi_sensor -T 'Power_Supply' Sensor Type(s) Power_Supply Status: OK | 'Current Power'=150 # /usr/lib64/nagios/plugins/check_ipmi_sensor -T 'Power_Supply' -v Sensor Type(s) Power_Supply Status: OK | 'Current Power'=152 # /usr/lib64/nagios/plugins/check_ipmi_sensor -T 'Power_Supply' -vv Sensor Type(s) Power_Supply Status: OK | 'Current Power'=158 PS Redundancy = 'Fully Redundant' (Status: Nominal) Status = 'Presence detected' (Status: Nominal) Status = 'Presence detected' (Status: Nominal) # /usr/lib64/nagios/plugins/check_ipmi_sensor -T 'Power_Supply' -vvv ... ID | Name | Type | State | Event 118 | PS Redundancy | Power Supply | Nominal | 'Fully Redundant' 119 | Status | Power Supply | Nominal | 'Presence detected' 120 | Status | Power Supply | Nominal | 'Presence detected' --------------------- end of debug output --------------------- Sensor Type(s) Power_Supply Status: OK | 'Current Power'=148 PS Redundancy = 'Fully Redundant' (Status: Nominal) Status = 'Presence detected' (Status: Nominal) Status = 'Presence detected' (Status: Nominal)