Add watchdog event monitor
This change add a watchdog event monitor
when watchdog enable/disable, it will add
a IPMI SEL record to journal.
teseted:
- Successfully build and verified in ipmitool sel elist
Signed-off-by: Charles Hsu <Charles.Hsu@quantatw.com>
Change-Id: I3a7e408fdeced50d4a81acf95d7e35da3f0a6410
diff --git a/src/sel_logger.cpp b/src/sel_logger.cpp
index fda9587..99527b1 100644
--- a/src/sel_logger.cpp
+++ b/src/sel_logger.cpp
@@ -23,6 +23,7 @@
#include <sdbusplus/asio/object_server.hpp>
#include <sel_logger.hpp>
#include <threshold_event_monitor.hpp>
+#include <watchdog_event_monitor.hpp>
#include <filesystem>
#include <fstream>
@@ -243,6 +244,10 @@
startPulseEventMonitor(conn);
#endif
+#ifdef SEL_LOGGER_MONITOR_WATCHDOG_EVENTS
+ sdbusplus::bus::match::match watchdogEventMonitor =
+ startWatchdogEventMonitor(conn);
+#endif
io.run();
return 0;