]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
UBI plugin: add documentation
authorPierre Lebleu <pme.lebleu@gmail.com>
Tue, 9 Jul 2019 13:56:26 +0000 (15:56 +0200)
committerPierre Lebleu <pme.lebleu@gmail.com>
Tue, 9 Jul 2019 13:56:36 +0000 (15:56 +0200)
Update the README, the collectd.conf.in and collectd.conf.pod

README
src/collectd.conf.in
src/collectd.conf.pod

diff --git a/README b/README
index f28d49922fb185501fc6df4db38905b7a94f2a53..15c1de3b0c058e2e5306d3c64c26ca2b967eb7c3 100644 (file)
--- a/README
+++ b/README
@@ -428,6 +428,10 @@ Features
       Reads CPU frequency and C-state residency on modern Intel
       turbo-capable processors.
 
+    - ubi
+      Reads the count of bad physical eraseblocks and the current
+      maximum erase counter value on UBI volumes.
+
     - uptime
       System uptime statistics.
 
index f09f373d39ef2717ccfe65e56ed2d8bc028c7745..c3a27d84db9074c216bca01adc9f037cbd1652e8 100644 (file)
 #      RunningAveragePowerLimit "7"
 #</Plugin>
 
+#<Plugin ubi>
+#      Device "ubi0"
+#      IgnoreSelected false
+#</Plugin>
+
 #<Plugin unixsock>
 #      SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
 #      SocketGroup "collectd"
index ed49195e4cc3b8b08f9e9c73af15bdc496df206b..91dd6cc5da29681a8ecf8d07f85a184ab6fa8338 100644 (file)
@@ -8973,6 +8973,38 @@ L<https://bugzilla.kernel.org/show_bug.cgi?id=151821>
 
 =back
 
+=head2 Plugin C<ubi>
+
+The I<Ubi plugin> collects some statistics about the UBI (Unsorted Block Image).
+Values collected are the number of bad physical eraseblocks on the underlying MTD
+(Memory Technology Device) and the maximum erase counter value concerning one volume.
+
+See following links for details:
+
+L<http://www.linux-mtd.infradead.org/doc/ubi.html>
+L<http://www.linux-mtd.infradead.org/doc/ubifs.html>
+L<https://www.kernel.org/doc/Documentation/ABI/stable/sysfs-class-ubi>
+
+=over 4
+
+=item B<Device> I<Name>
+
+Select the device I<Name> of the UBI volume. Whether it is collected or ignored
+depends on the B<IgnoreSelected> setting, see below.
+
+See F</"IGNORELISTS"> for details.
+
+=item B<IgnoreSelected> B<true>|B<false>
+
+Sets whether selected devices, i.E<nbsp>e. the ones matches by any of the B<Device>
+statements, are ignored or if all other devices are ignored. If no B<Device> option
+is configured, all devices are collected. If at least one B<Device> is given and no
+B<IgnoreSelected> or set to B<false>, B<only> matching disks will be collected. If
+B<IgnoreSelected>is set to B<true>, all devices are collected B<except> the ones
+matched.
+
+=back
+
 =head2 Plugin C<unixsock>
 
 =over 4