Add Service Failure to registry
Allow logging when a service exits.
Tested:
killed an application and saw:
{
"@odata.context": "/redfish/v1/$metadata#LogEntry.LogEntry",
"@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/1565496588",
"@odata.type": "#LogEntry.v1_4_0.LogEntry",
"Created": "2019-08-11T04:09:48+00:00",
"EntryType": "Event",
"Id": "1565496588",
"Message": "Service xyz.openbmc_project.adcsensor.service has exited unsuccessfully.",
"MessageArgs": [
"xyz.openbmc_project.adcsensor.service"
],
"MessageId": "OpenBMC.0.1.ServiceFailure",
"Name": "System Event Log Entry",
"Severity": "Warning"
},
Change-Id: I45c764986f0e99426ee9087245498d020c6508cb
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/redfish-core/include/registries/openbmc_message_registry.hpp b/redfish-core/include/registries/openbmc_message_registry.hpp
index 18386ee..51e2b97 100644
--- a/redfish-core/include/registries/openbmc_message_registry.hpp
+++ b/redfish-core/include/registries/openbmc_message_registry.hpp
@@ -1211,6 +1211,16 @@
.paramTypes = {"string", "number", "number"},
.resolution = "Check the sensor or subsystem for errors.",
}},
+ MessageEntry{"ServiceFailure",
+ {
+ .description =
+ "Indicates that a service has exited unsuccessfully.",
+ .message = "Service %1 has exited unsuccessfully.",
+ .severity = "Warning",
+ .numberOfArgs = 1,
+ .paramTypes = {"string"},
+ .resolution = "None.",
+ }},
MessageEntry{"SparingRedundancyDegraded",
{
.description =