| commit | 5665db2ba19be6ec245bb32d88a1027de2f16953 | [log] [tgz] |
|---|---|---|
| author | Cheng C Yang <cheng.c.yang@linux.intel.com> | Fri Jul 12 00:57:30 2019 +0800 |
| committer | James Feist <james.feist@linux.intel.com> | Fri Jul 12 16:15:43 2019 +0000 |
| tree | 623673fe5bb8064d9dcdf7bf7fb7e9d6e4a20341 | |
| parent | b6c0b914438d89d689ea98b64f4243e8f0c6d3bc [diff] |
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
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.
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