collectd: add missing config files for plugins

Add missing config files for plugins from collectd-5.8.1-4.el7.src.rpm

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Babak Sarashki <Babak.SarAshki@windriver.com>
This commit is contained in:
Jackie Huang 2020-05-08 17:24:05 +08:00 committed by Babak Sarashki
parent 1fe5b667d1
commit de48a2da26
6 changed files with 22 additions and 1 deletions

View File

@ -1,8 +1,24 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI += "file://collectd-fix-for-LIBPYTHON_LDFLAGS.patch"
SRC_URI += " \
file://collectd-fix-for-LIBPYTHON_LDFLAGS.patch \
file://default-plugins-cpu.conf \
file://default-plugins-interface.conf \
file://default-plugins-load.conf \
file://default-plugins-memory.conf \
file://default-plugins-syslog.conf \
"
PACKAGECONFIG += "python"
PACKAGECONFIG[python] = "--enable-python --with-libpython,--disable-python --with-libpython=no,python"
do_install_append () {
install -m 755 -d ${D}${sysconfdir}/collectd.d/
install -m 644 ${WORKDIR}/default-plugins-cpu.conf ${D}${sysconfdir}/collectd.d/90-default-plugins-cpu.conf
install -m 644 ${WORKDIR}/default-plugins-interface.conf ${D}${sysconfdir}/collectd.d/90-default-plugins-interface.conf
install -m 644 ${WORKDIR}/default-plugins-load.conf ${D}${sysconfdir}/collectd.d/90-default-plugins-load.conf
install -m 644 ${WORKDIR}/default-plugins-memory.conf ${D}${sysconfdir}/collectd.d/90-default-plugins-memory.conf
install -m 644 ${WORKDIR}/default-plugins-syslog.conf ${D}${sysconfdir}/collectd.d/90-default-plugins-syslog.conf
}

View File

@ -0,0 +1 @@
LoadPlugin cpu

View File

@ -0,0 +1 @@
LoadPlugin interface

View File

@ -0,0 +1 @@
LoadPlugin load

View File

@ -0,0 +1 @@
LoadPlugin memory

View File

@ -0,0 +1 @@
LoadPlugin syslog