commit | 486e42e9db215070d631b7ac1f8f32537cb3bfe7 | [log] [tgz] |
---|---|---|
author | George Hung <george.hung@quantatw.com> | Wed Apr 14 20:20:42 2021 +0800 |
committer | George Hung <george.hung@quantatw.com> | Mon Apr 19 10:55:10 2021 +0800 |
tree | 825c4b7ecc40383d3d8262013f1a3ab303641e62 | |
parent | aaffc124b6f49d9bc267e65565bdd5d4c1db1aaf [diff] |
Add match threshold alarm signals for threshold events Add SEL_LOGGER_MONITOR_THRESHOLD_ALARM_EVENTS option to enable monitoring the alarm signals on sensor threshold interfaces: https://gerrit.openbmc-project.xyz/39899 Tested: Change the threshold to trigger the alarm signal: busctl set-property xyz.openbmc_project.Hwmon-487368426.Hwmon1 /xyz/openbmc_project/sensors/temperature/cputemp xyz.openbmc_project.Sensor.Threshold.Critical CriticalHigh d 30 trigger the event log: 1 | Pre-Init |0000000213| Temperature cputemp | Upper Critical going high | Asserted | Reading 35 > Threshold 30 degrees C Note: It needs to work with the following PR: https://gerrit.openbmc-project.xyz/42212 Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I86a7061895ba082643d1f9e0222b52b1bd732083
The SEL Logger daemon handles all requests to add new IPMI SEL records to the journal. SEL records stored in the journal are identified by the standard MESSAGE_ID metadata. Other metadata fields are used to store event-specific information for each record.
SEL records are identified in the journal using the MESSAGE_ID field.
The MESSAGE_ID for SEL records is "b370836ccf2f4850ac5bee185b77893a".
The additional metadata fields for a SEL record are
IPMI_SEL_RECORD_ID = Two byte unique SEL Record ID IPMI_SEL_RECORD_TYPE = The type of SEL entry (system or OEM) which determines the definition of the remaining bytes IPMI_SEL_GENERATOR_ID = The IPMI Generator ID (usually the IPMB Slave Address) of the requester IPMI_SEL_SENSOR_PATH = D-Bus path of the sensor in the event IPMI_SEL_EVENT_DIR = Direction of the event (assert or deassert) IPMI_SEL_DATA = Raw binary data included in the SEL record
The SEL Logger daemon exposes an interface for manually adding System and OEM type SEL events, and provides the capability to monitor for types of events and log them automatically.
The interface for System type events requires
The interface for OEM type events requires
The MESSAGE_ID and IPMI_SEL_RECORD_ID metadata fields are added by the daemon.
The SEL Logger daemon can be configured to watch for specific types of events and automatically log SEL records for them.
As an example, the SEL Logger has a "threshold event monitor" which implements a D-Bus match for any "PropertiesChanged" event on the "xyz.openbmc_project.Sensor.Threshold" interface. The handler then checks for any new threshold events and logs SEL records accordingly.