commit | 25b26e162bd109b51aa09b16f26f9aa3d9d940fa | [log] [tgz] |
---|---|---|
author | Zhikui Ren <zhikui.ren@intel.com> | Fri Jun 26 20:18:19 2020 -0700 |
committer | Zhikui Ren <zhikui.ren@intel.com> | Tue Jul 21 17:16:29 2020 -0700 |
tree | 752a842548aab1205d8753b89740110d8ec8944d | |
parent | 672bdfc14f3c064f85e1645c3e86ac057475f2c7 [diff] |
match thresholdAsserted signal for threshold event monitor thresholdAsserted signal includes the sensor reading that caused threshold property change. This removes the need to read the sensor value at the time of logging, which may miss the bad reading when the log is delayed. Tested: Build and send the following command busctl set-property xyz.openbmc_project.ADCSensor /xyz/openbmc_project/sensors/voltage/P1V8_PCH xyz.openbmc_project.Sensor.Value Value d 1.97 observed the following event logged P1V8_PCH sensor crossed a critical high threshold going high. Reading=1.970000 Threshold=1.961000. Signed-off-by: Zhikui Ren <zhikui.ren@intel.com> Change-Id: Ie8831a9ba48188e1dd343db22583485c02f35dbc
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.