From 67ddc2125421f5d45f13f8550b9d06efb4bff2b7 Mon Sep 17 00:00:00 2001 From: Bruceleequantatw Date: Wed, 17 Mar 2021 10:08:48 +0800 Subject: meta-quanta: common: add bmc_health_config This config will not set threshold and to avoid critical/warning message shows on journalctl. Signed-off-by: Bruceleequantatw Change-Id: Ic6ba793ce7ed16e16a79c5b79f748f78b35ce0cd --- .../recipes-phosphor/health/files/bmc_health_config.json | 15 +++++++++++++++ .../health/phosphor-health-monitor_%.bbappend | 9 +++++++++ 2 files changed, 24 insertions(+) create mode 100755 meta-quanta/meta-common/recipes-phosphor/health/files/bmc_health_config.json create mode 100755 meta-quanta/meta-common/recipes-phosphor/health/phosphor-health-monitor_%.bbappend (limited to 'meta-quanta') diff --git a/meta-quanta/meta-common/recipes-phosphor/health/files/bmc_health_config.json b/meta-quanta/meta-common/recipes-phosphor/health/files/bmc_health_config.json new file mode 100755 index 000000000..373b5d50f --- /dev/null +++ b/meta-quanta/meta-common/recipes-phosphor/health/files/bmc_health_config.json @@ -0,0 +1,15 @@ +{ + "CPU" : { + "Frequency" : 1, + "Window_size": 120 + }, + "Memory" : { + "Frequency" : 1, + "Window_size": 120 + }, + "Storage_RW" : { + "Path" : "/run/initramfs/rw", + "Frequency" : 1, + "Window_size": 120 + } +} diff --git a/meta-quanta/meta-common/recipes-phosphor/health/phosphor-health-monitor_%.bbappend b/meta-quanta/meta-common/recipes-phosphor/health/phosphor-health-monitor_%.bbappend new file mode 100755 index 000000000..1d8bb4ecd --- /dev/null +++ b/meta-quanta/meta-common/recipes-phosphor/health/phosphor-health-monitor_%.bbappend @@ -0,0 +1,9 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/files:" +SRC_URI_append = " file://bmc_health_config.json \ + " + +do_install_append() { + install -d ${D}/${sysconfdir}/healthMon/ + install -m 0644 ${WORKDIR}/bmc_health_config.json ${D}/${sysconfdir}/healthMon/ +} + -- cgit v1.2.3