commit | 7c2810b482786ab2d05cf81633d6abb6ec577212 | [log] [tgz] |
---|---|---|
author | JinFuLin <JeffLin2@quantatw.com> | Fri Dec 02 13:55:28 2022 +0800 |
committer | JeffLin2 <JeffLin2@quantatw.com> | Tue Dec 13 00:53:41 2022 +0000 |
tree | feb8e6ba4fe8e9fe879506711663b44255b67baa | |
parent | 120486dce9fd5665ee8b4ef54248184b2d02903e [diff] |
Add host error event monitor Add host error event monitor to record event found by host-error-monitor and then add IPMI SEL record to journal. Tested: Test with the following PRs: https://gerrit.openbmc.org/c/openbmc/host-error-monitor/+/59127 https://gerrit.openbmc.org/c/openbmc/host-error-monitor/+/59129 https://gerrit.openbmc.org/c/openbmc/host-error-monitor/+/59130 Trigger host error and check result in "ipmitool sel" is as expected. Signed-off-by: JinFuLin <JeffLin2@quantatw.com> Change-Id: I72a49d62d9c3c4248ed8d748aebe2c8171221078
diff --git a/src/sel_logger.cpp b/src/sel_logger.cpp index 29cbd46..6798682 100644 --- a/src/sel_logger.cpp +++ b/src/sel_logger.cpp
@@ -27,6 +27,9 @@ #ifdef SEL_LOGGER_MONITOR_THRESHOLD_ALARM_EVENTS #include <threshold_alarm_event_monitor.hpp> #endif +#ifdef SEL_LOGGER_MONITOR_HOST_ERROR_EVENTS +#include <host_error_event_monitor.hpp> +#endif #include <filesystem> #include <fstream> @@ -305,6 +308,10 @@ #ifdef SEL_LOGGER_MONITOR_THRESHOLD_ALARM_EVENTS startThresholdAlarmMonitor(conn); #endif + +#ifdef SEL_LOGGER_MONITOR_HOST_ERROR_EVENTS + startHostErrorEventMonitor(conn); +#endif io.run(); return 0;