Trigger Redfish Log in PSU Event

When PSU Event is asserted, trigger Redfish Log.

Tested:
Plug out AC cable on PSU2, we can see below in Redfish Log Entries.
{

    "@odata.context": "/redfish/v1/$metadata#LogEntry.LogEntry",
data.context": "/redfish/v1/$metadata#LogEntry.LogEntry",
    "@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/
Entries/#1562158096",
    "@odata.type": "#LogEntry.v1_4_0.LogEntry",
    "Created": "2019-07-03T12:48:16+00:00",
    "EntryType": "Event",
    "Id": "1562158096",
    "Message": "Power supply PSU2 AC power lost.",
    "MessageArgs": [
        "PSU2"
    ],
    "MessageId": "OpenBMC.0.1.PowerSupplyACLost",
    "Name": "System Event Log Entry",
    "Severity": "Critical"
},

Signed-off-by: Cheng C Yang <cheng.c.yang@linux.intel.com>
Change-Id: I406dbf2047e82ccf523dcea91dce48600341aaee
2 files changed
tree: 623673fe5bb8064d9dcdf7bf7fb7e9d6e4a20341
  1. cmake/
  2. include/
  3. service_files/
  4. src/
  5. tests/
  6. .clang-format
  7. .gitignore
  8. cmake-format.json
  9. CMakeLists.txt
  10. Jenkinsfile
  11. LICENSE
  12. MAINTAINERS
  13. README.md
README.md

dbus-sensors

dbus-sensors is a collection of sensor applications that provide the xyz.openbmc_project.Sensor collection of interfaces. They read sensor values from hwmon, d-bus, or direct driver access to provide readings. Some advance non-sensor features such as fan presence, pwm control, and automatic cpu detection (x86) are also supported.

key features

  • runtime re-configurable from d-bus (entity-manager or the like)

  • isolated: each sensor type is isolated into its own daemon, so a bug in one sensor is unlikely to affect another, and single sensor modifications are possible

  • async single-threaded: uses sdbusplus/asio bindings

  • multiple data inputs: hwmon, d-bus, direct driver access