Redfish hardware health (redfish)
Reads a server's baseboard management controller (iDRAC, iLO, XClarity, OpenBMC and others) over DMTF Redfish. It reports the health roll-up of the system and its chassis, the power state, the hottest temperature, fans and power supplies. Reads only: it never sends a command to the controller.
Channels
| Key | Name | Unit | Default limits |
|---|---|---|---|
health | Health roll-up | none | 0 OK, 1 Warning (warning), 2 Critical (down). The worst of every system and chassis found, using HealthRollup where present. |
power_on | Powered on | none | 1 on, 0 off (down) |
temp_max_c | Hottest sensor | °C | warning above 75, error above 90 |
temps_unhealthy | Unhealthy temperature sensors | none | none |
fans_unhealthy | Unhealthy fans | none | none |
psus_unhealthy | Unhealthy power supplies | none | none |
fan_min_reading | Slowest fan reading | none | none. RPM or percent, as the controller reports it. |
power_watts | Power consumed | W | none |
api_ms | Time to read | ms | none |
With components on, one more channel appears for each temperature sensor (temp_<name>, °C), fan (fan_<name>, the reading) and power supply (psu_<name>, 0 OK, 1 Warning, 2 Critical), at most 48. Sensors that are disabled and have no reading, and empty power supply bays, are left out. The names come from the controller, so the keys change if the controller renames a part.
The sensor's verdict follows the roll-up: Warning is a warning, Critical is Down, and a system that is powered off is Down. The message names what is unhealthy, for example power supply PSU 2 is Critical.
Parameters
| Parameter | Default | Meaning |
|---|---|---|
scheme | https | http or https. |
port | 80 or 443 | TCP port. |
auth | basic | basic: HTTP basic authentication on every request. session: log in once per poll, use the session token, log out again at the end. Use it for controllers that refuse basic authentication or limit it. |
verify_tls | true | Check the controller's certificate. Controllers ship self-signed ones, so turn this off until you install your own. |
tls_fingerprint | none | Trust exactly the certificate with this SHA-256 fingerprint (colon-separated or plain hex, either case) and no other, whatever its chain, dates or name say; verify_tls is then not needed. See pinning a certificate. |
components | false | Report one channel per part, as above. |
Suggested interval: 300 seconds. Credential: a secret whose value is user:password, assigned as the secret credential of the device or a group above it. The sensor sends it as basic authentication or in the session login body; it is never shown or logged. Controllers ship with a default administrator account, so create a read-only one (the ReadOnly role) for Probeward.
What it reads
/redfish/v1/Systems and each member (power state, status), /redfish/v1/Chassis and each member (status), and from each chassis the Thermal and Power resources it links to, when it has them. Controllers that publish only the newer ThermalSubsystem and PowerSubsystem resources still give the system and chassis health, but no temperature, fan or supply details yet. At most eight members of each collection are read.
Failures
| Message | Meaning |
|---|---|
the controller refused the credential (HTTP 401) (kind auth_failed) | Wrong user or password, or the account may not log in over the network. |
/redfish/v1/Systems does not exist on the controller (HTTP 404); is this a Redfish service? (kind protocol) | The address is not a controller, or it serves Redfish elsewhere. |
the secret must be in the form user:password (kind config) | The credential is not a login. |
the controller created a session but sent no X-Auth-Token (kind protocol) | A controller that does not follow the session specification. |
Verification
Not verified against a real controller. It was checked against the DMTF Redfish mockup server, and real controllers differ from the mockup in their details, so run it against yours before depending on it and report differences.
It is also checked against sushy-tools, the OpenStack Redfish emulator, in front of a running libvirt virtual machine: the power state, the empty fan and power supply roll-ups of a virtual machine, a wrong password (kind auth_failed) and a certificate that does not match the pinned fingerprint. sushy-tools has no session service, so auth: session is checked only against the mockup. The live tests are crates/probeward-sensors/tests/bmc_live.rs; they read PROBEWARD_TEST_REDFISH_HOST, _PORT, _NAME (the name in the service's certificate), _PIN (its SHA-256 fingerprint), _USER and _PASSWORD, and skip, saying so, when any is unset.