Add Configuration Error Event

Add configuration error event to PSU Event. And correct AC Lost event.

Tested:
Insert two different kind of PSU, redfish log show
{
    "@odata.context": "/redfish/v1/$metadata#LogEntry.LogEntry",
    "@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/
1563892413_1",
    "@odata.type": "#LogEntry.v1_4_0.LogEntry",
    "Created": "2019-07-23T14:33:33+00:00",
    "EntryType": "Event",
    "Id": "1563892413_1",
    "Message": "Power supply PSU2 configuration error.",
    "MessageArgs": [
       "PSU2"
    ],
    "MessageId": "OpenBMC.0.1.PowerSupplyConfigurationError",
    "Name": "System Event Log Entry",
    "Severity": "Critical"
},

Remove AC cable from one PSU, redfish log show
{
    "@odata.context": "/redfish/v1/$metadata#LogEntry.LogEntry",
    "@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/1563892413",
    "@odata.type": "#LogEntry.v1_4_0.LogEntry",
    "Created": "2019-07-23T14:33:33+00:00",
    "EntryType": "Event",
    "Id": "1563892413",
    "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: I9bb93afd3e4bf172fea1abff9870c20d72233467
2 files changed
tree: 7552c85530790def1d2371860336ac96b298796d
  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