package/collectd: add lvm support
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 10 Jun 2019 15:45:30 +0000 (17:45 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 28 Oct 2019 12:59:21 +0000 (13:59 +0100)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/collectd/Config.in
package/collectd/collectd.mk

index 4fa4074a5135ad2f257dbfec3e61bd2a6a171a18..402de219f4890c2d254173d6182567080431763c 100644 (file)
@@ -289,6 +289,19 @@ config BR2_PACKAGE_COLLECTD_LOAD
        help
          Collects the system load.
 
+config BR2_PACKAGE_COLLECTD_LVM
+       bool "lvm"
+       depends on !BR2_TOOLCHAIN_USES_MUSL # lvm2 app library
+       select BR2_PACKAGE_LVM2
+       select BR2_PACKAGE_LVM2_APP_LIBRARY
+       help
+         Collects the size of logical volumes (LV) and free space
+         inside a volume group (VG) from Linux' Logical Volume Manager
+         (LVM).
+
+comment "lvm needs a glibc or uClibc toolchain"
+       depends on BR2_TOOLCHAIN_USES_MUSL
+
 config BR2_PACKAGE_COLLECTD_MD
        bool "md"
        help
index 31f7340d98cbe53c970ced7fea42238c903d0e74..50425e89acf70f1b9b7c6c773a127a115439e110 100644 (file)
@@ -18,7 +18,7 @@ COLLECTD_AUTORECONF = YES
 # These require unmet dependencies, are fringe, pointless or deprecated
 COLLECTD_PLUGINS_DISABLE = \
        apple_sensors aquaero ascent barometer dbi dpdkstat email \
-       gmond hddtemp intel_rdt ipmi java lpar lua lvm \
+       gmond hddtemp intel_rdt ipmi java lpar lua \
        madwifi mbmon mic multimeter netapp notify_desktop numa \
        nut oracle perl pf pinba powerdns python routeros \
        rrdcached sigrok tape target_v5upgrade teamspeak2 ted \
@@ -89,6 +89,7 @@ COLLECTD_CONF_OPTS += \
        $(if $(BR2_PACKAGE_COLLECTD_LOAD),--enable-load,--disable-load) \
        $(if $(BR2_PACKAGE_COLLECTD_LOGFILE),--enable-logfile,--disable-logfile) \
        $(if $(BR2_PACKAGE_COLLECTD_LOGSTASH),--enable-log_logstash,--disable-log_logstash) \
+       $(if $(BR2_PACKAGE_COLLECTD_LVM),--enable-lvm,--disable-lvm) \
        $(if $(BR2_PACKAGE_COLLECTD_MD),--enable-md,--disable-md) \
        $(if $(BR2_PACKAGE_COLLECTD_MEMCACHEC),--enable-memcachec,--disable-memcachec) \
        $(if $(BR2_PACKAGE_COLLECTD_MEMCACHED),--enable-memcached,--disable-memcached) \
@@ -161,6 +162,7 @@ COLLECTD_DEPENDENCIES = \
        $(if $(BR2_PACKAGE_COLLECTD_GRPC),grpc) \
        $(if $(BR2_PACKAGE_COLLECTD_IPTABLES),iptables) \
        $(if $(BR2_PACKAGE_COLLECTD_LOGSTASH),yajl) \
+       $(if $(BR2_PACKAGE_COLLECTD_LVM),lvm2) \
        $(if $(BR2_PACKAGE_COLLECTD_MEMCACHEC),libmemcached) \
        $(if $(BR2_PACKAGE_COLLECTD_MODBUS),libmodbus) \
        $(if $(BR2_PACKAGE_COLLECTD_MQTT),mosquitto) \