aboutsummaryrefslogtreecommitdiff
path: root/utils/collectd
Commit message (Collapse)AuthorAge
* treewide: refactor to use PKG_BUILD_FLAGS:=no-mips16Andre Heider2023-04-08
| | | | | | | See commit 5c545bdb "treewide: replace PKG_USE_MIPS16:=0 with PKG_BUILD_FLAGS:=no-mips16" on the main repository. Signed-off-by: Andre Heider <a.heider@gmail.com>
* collectd: Fix ltq-dsl compilation errorsAlexandros Kosiaris2023-03-23
| | | | | | | | | | | Per https://github.com/openwrt/packages/pull/19396#issuecomment-1480780893 prefix ltq-dsl-app with a @ character to fix the compilation issues witnessed in PR #19396 and #20662 Signed-off-by: Alexandros Kosiaris <akosiaris@gmail.com>
* treewide: bump PKG_RELEASE for libiwinfo dependant packagesChristian Marangi2023-01-23
| | | | | | Bump PKG_RELEASE for libiwinfo dependant packages. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* Merge pull request #19314 from TDT-AG/pr/2022-09-05-collectdFlorian Eckert2022-09-19
|\ | | | | collectd: extend network uci plugin
| * collectd: extend network uci pluginFlorian Eckert2022-09-05
| | | | | | | | | | | | | | | | The network plugin from collectd also has the option to encrypt the metrics when sending them to another server. Until now, this was not possible via the UCI. This commit adds that feature. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* | collectd: re-enable nut pluginHannu Nyman2022-09-18
| | | | | | | | | | | | | | | | | | | | Re-enable the nut plugin (remove BROKEN mark). Nut itself has been patched to provide better compatible time_t. I have not not run-tested the plugin, so it is still possible that the fixes from upstream collectd PR 4043 are still needed. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* | Merge pull request #19362 from dhewg/dslHannu Nyman2022-09-18
|\ \ | | | | | | prometheus/collectd: adapt dependencies for the dsl collector
| * | collectd: adapt dependencies for the dsl collectorAndre Heider2022-09-14
| |/ | | | | | | | | | | | | All lantiq/intel/maxlinear compatible dsl daemons now provide a common package name, switch over. Signed-off-by: Andre Heider <a.heider@gmail.com>
* / collectd: disable nut pluginHannu Nyman2022-09-16
|/ | | | | | | | | | | | | | | | | | | Temporarily disable nut plugin by marking it BROKEN. Apparently the upstream collectd plugin is not yet compatible with nut 2.8.0. I tried the upstream PR 4043, but it does not help, as it apparently requires at least one specific UPS type to be defined/compiled. nut . . . . . . . . . no (required data types for NUT API were not detected) (dependency error) If there is a requirement to specify some UPS data type when compiling nut, it might be problematic for the generic OpenWrt buildbot context. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* Merge pull request #18778 from bluebrother/collectd-dsl-fixesFlorian Eckert2022-06-24
|\ | | | | collectd: Fix various issues with lantiq dsl metrics.
| * collectd: Fix various issues with lantiq dsl metrics.Dominik Riebeling2022-06-22
| | | | | | | | | | | | | | | | | | | | | | - Handle bool values correctly. We get the values as bool, but collectd requires a bool value to be numeric in the range [0, 1]. - Remove profile and mode values. Those are strings, which cannot be represented by collectd. - Update collectd type for some values. - Fix latn value being present twice. Signed-off-by: Dominik Riebeling <bluebrother@posteo.de>
* | collectd: Support configuration of write_http pluginAlexandros Kosiaris2022-06-21
|/ | | | | | | | | | | | | | | | | | | | | | write_http plugin is already built and shipped in collectd-mod-write_http, however it is not possible to configure it via uci currently, instead having to rely on populating the config file manually. Add support by adding 2 functions, process_write_http() and process_write_http_node(). First one just enables/disables the plugin. The second one, in the spirit of the curl plugin, adds support for populating multiple <Node> elements under <Plugin write_http> with support for a few parameters. Those are: * name. The name of the <Node>. Mandatory * URL. Mandatory * Format. Optional. * User. Optional. * Password. Optional. * Timeout. Optional. * BufferSize. Optional. Signed-off-by: Alexandros Kosiaris <akosiaris@gmail.com>
* collectd: smart: add patch to check udev_enumerate_scan_devices return valueFlorian Eckert2022-03-17
| | | | | | | | | | | The function udev_enumarte_scan_devices returns a value less than 0 on failure. If this is the case then we terminate the read for this smart information. This change was already send upstream. And could be delete in feature collectd versions. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* collectd: remove not needed fixFlorian Eckert2022-03-17
| | | | | | | | | | | | | | | This was not a real fix but a workaround. It is no longer clear to me why this was necessary. Deleting the patch restores the upstream behaviour of the collected for the smart plugin. I have tested it and on my system the hard disk to be monitored is recognised. root@system ~ # cat /sys/class/block/sda/uevent MAJOR=8 MINOR=0 DEVNAME=sda DEVTYPE=disk Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* collectd: remove libip4tc dependencyTiago Gaspar2022-01-26
| | | | | | | | | | | | | | | Base collectd doesn't require libip4tc as stated in the collectd git: * libiptc (optional) For querying iptables counters <http://netfilter.org/> And libip4tc is already added as a dependency in the iptables plugin because it needs it, so remove this dependency from the default collectd to make it compatible with the new nftables firewall4 (by not selecting any iptables components). Signed-off-by: Tiago Gaspar <tiagogaspar8@gmail.com>
* collectd: Add lua and exec collectors for lantiq dsl metricsJeroen Peelaerts2021-10-22
| | | | Signed-off-by: Jeroen Peelaerts <jeroen.peelaerts@gmail.com>
* collectd: sqm_collect: optimise parent searchKevin Darbyshire-Bryant2021-10-06
| | | | | | | There can be only 1 parent process ID, so as soon as we find it, print it and exit - there's no point searching any of the following lines Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
* collectd: sqm_collect: handle being orphanedKevin Darbyshire-Bryant2021-10-02
| | | | | | | | | | If the master collectd instance gets shut down in an uncontrolled manner (crashes!) then sqm_collect scripts will be left orphaned and will run forever. Modify script to check if it still has a parent and if not, exit. Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
* collectd: sensors plugin - depend on lm-sensorsHannu Nyman2021-09-04
| | | | | | | | | | | | Change the sensors plugin's dependency from libsensors to lm-sensors, so that also the /usr/sbin/sensors executable gets installed if the plugin is selected. Although that is not needed for collectd itself, the LuCI statistics app expects to find the sensors executable if the plugin has been installed. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* collectd-mod-cpufreq: enable for ipq807xMatthew Hagan2021-08-15
| | | | | | Tested on AX3600 Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
* collectd-mod-ping: add support for MaxMissedJohn Kohl2021-08-15
| | | | Signed-off-by: John Kohl <jtk.git@bostonpog.org>
* collectd: enable cpufreq plugin for mediatekFritz D. Ansel2021-08-12
| | | | | | tested on e8450 ubi+non-ubi Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
* collectd: enable cpufreq for rockchip targetTomas Lara2021-04-13
| | | | | Enable collectd-mod-cpufreq for rockchip Signed-off-by: Tomas Lara <tl849670@gmail.com>
* collectd: update PKG_RELEASEFlorian Eckert2021-03-23
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* collectd: add percent calculation of bad block to ubi pluginFlorian Eckert2021-03-23
| | | | | | This patche adds the percent evaluation for the bad blocks. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* collectd: prepare ubi plugin for percent calculationFlorian Eckert2021-03-23
| | | | | | | This patche change prepares the ubi plugin to add the bad block evaluation in percent. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* collectd: upate PKG_RELEASE numberFlorian Eckert2021-03-16
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* collectd: make compile time debug option configurableFlorian Eckert2021-03-16
| | | | | | | | | | Enables the compiler option that collectd is compiled with debugging support. This is used at development stages to get more messages from the collectd during development. This option is default disabled. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* collectd: fix COLLECTD_PLUGINS_SELECTED end of lineFlorian Eckert2021-03-16
| | | | | | This removes the trailing back slash. This is not needed. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* collectd: fix smart disk detectionFlorian Eckert2021-03-16
| | | | | | | | | | | | | | | | | | On my system the attribute DEVTYPE was not set. The plugin could not read any data and the function call blocked forever on this function and did not returned. By removing it, all block devices under `/sys/class/block` were checked. Block devices that do not support SMART were not evaluated. The collected displays the following message. smart plugin: checking SMART status of /dev/loop4. smart plugin: unable to open /dev/loop4. If you do not like this message, you could only enable device in the uci that does support SMART. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* collectd: enable collectd-mod-smartFlorian Eckert2021-03-16
| | | | | | Switching on compilation for collectd smart plugin. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* treewide: Run refresh on all packagesIlya Lipnitskiy2021-02-20
| | | | | | | | | The crude loop I wrote to come up with this changeset: find -L package/feeds/packages/ -name patches | \ sed 's/patches$/refresh/' | sort | xargs make Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
* collectd: add plugin to compare ipv4,ipv6 statsNick Hainke2021-02-04
| | | | | | | Add "ipstatistics"-plugin. This plugin parses "/proc/net/netstat" and "/proc/net/snmp6" to get the overall ipv4 and ipv6 usage. Signed-off-by: Nick Hainke <vincent@systemli.org>
* collectd: snmp6 further improvementsNick Hainke2021-01-26
| | | | | | | Return with "-1" if parsing fails in read function. Reduce buffersize of splitstring function. Signed-off-by: Nick Hainke <vincent@systemli.org>
* collectd: fix snmp6 not showing all interfacesNick Hainke2021-01-25
| | | | | | | | Getifaddrs() is not working all the time (e.g. wireguard interfaces). Instead we use if_nameindex() syscall as suggested in: https://stackoverflow.com/a/45796495/8474618 Signed-off-by: Nick Hainke <vincent@systemli.org>
* collectd: fix snmp6 collectorNick Hainke2021-01-11
| | | | | | We scraped multiple times the same interface in one run. Signed-off-by: Nick Hainke <vincent@systemli.org>
* collectd: bump PKG_RELEASEMaxim Storchak2021-01-10
| | | | Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
* collectd: enable swap pluginMaxim Storchak2021-01-10
| | | | Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
* collectd: expose more global parameters to uciMaxim Storchak2021-01-10
| | | | Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
* collectd: remove extra newlines from the generated configMaxim Storchak2021-01-10
| | | | Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
* collectd: fix the wrong var nameMaxim Storchak2021-01-10
| | | | Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
* collectd: add snmp6 interfaceNick Hainke2021-01-09
| | | | | | Add collectd plugin allowing to collect IPv6 interface statistics. Signed-off-by: Nick Hainke <vincent@systemli.org>
* collectd: add dhcpleases pluginNick Hainke2020-12-12
| | | | | | | | Count the current dhcpleases. Currently, we use a bash script that does the same job (Freifunk Berlin). We want to use native collectd plugin for that. Signed-off-by: Nick Hainke <vincent@systemli.org>
* collectd: update to 5.12.0Hannu Nyman2020-09-07
| | | | | | | | | | | Update collectd to version 5.12.0. * Refresh patches * Remove upstreamed patch 920-fix-ubi-data-source-type.patch * Backport a patch from upstream to fix a missing define (920-backport-netlink-reg-noerror.patch) Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* collectd: update PKG_RELEASEFlorian Eckert2020-06-24
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* collectd: remove quotation on interval this is an numberFlorian Eckert2020-06-24
| | | | | | The value is a number and not a string. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* collectd: move include lineFlorian Eckert2020-06-24
| | | | | | | | | | Currently the init script generates a config file from uci, that has the include line before the interval line. This means, that anything happening in the include directory does not yet see the changed Interval. Moving the include line before the uci generation process fix this issue. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* collectd: update PKG_RELEASEFlorian Eckert2020-06-24
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* collectd: fix ubi data source typeFlorian Eckert2020-06-24
| | | | | | | | | Currently the values are stored in the ubi plugin as data source type `counter`. But this makes no sense, because the values change very slowly and I don't want to know the rate of change. It is better to store the value as data source type `gauge`. Then I can see the current value. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* collectd: add ubi uci and plugin infoFlorian Eckert2020-06-24
| | | | | | Add uci binding for ubi plugin. Signed-off-by: Florian Eckert <fe@dev.tdt.de>