aboutsummaryrefslogtreecommitdiff
path: root/utils/collectd
Commit message (Collapse)AuthorAge
* collectd: enable statsd pluginEdmunt Pienkowsky2024-04-05
| | | | Signed-off-by: Edmunt Pienkowsky <roed@onet.eu>
* collectd: add license informationsFlorian Eckert2024-03-13
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* collectd: remove target dependency from cpufreq pluginHannu Nyman2023-09-18
| | | | | | | | | | | | We currently have more package architectures supporting CPU frequency scaling than earlier, and the package architecture vs. CPU target SDK matching does not fully reflect that. (E.g. aarch64_cortex-a53 is currently using bcm27xx/bcm2710) Simplify things by removing the target dependency and let the plugin be built for all architectures. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* collectd-mod-ipstatistics: fix handling of long `/proc` linesAlex Shumsky2023-09-01
| | | | | | | `/proc/net/netstat` `TcpExt:` line is 2064 chars long on linux 6.1 Signed-off-by: Alex Shumsky <alexthreed@gmail.com> [PKG_RELEASE bump added]
* collectd: fix implicit dependence for collect-mod-disk to libudevFlorian Eckert2023-08-11
| | | | | | | | | | | | | | Fix missing dependencies for 'collectd-mod-disk' to 'libudev' if collectd-mod-smart is not enabled. Package collectd-mod-disk is missing dependencies for the following libraries: libudev.so.1 The package 'collect-mod-disk' is now build always with 'libudev' support, independent of the enable/disable build state of 'collectd-mod-smart'. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* collectd: unify configure args handling for collectd-mod-smartFlorian Eckert2023-08-05
| | | | | | | | | If 'collectd-mod-smart' is not enabled, the use of lubudev does not need to be explicitly disabled. This library could be a dependency for other modules in the future. If this is explicitly disabled, then the other module cannot be built. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* collectd: fix ampq1 vs. amqp1 typoFlorian Eckert2023-08-05
| | | | | | The name 'ampq1' does not exist. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* collectd: Support config of mqtt pluginAlexandros Kosiaris2023-07-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mqtt plugin is already built and shipped in collectd-mod-mqtt, 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_mqtt() and process_mqtt_block(). First one just enables/disables the plugin. The second one, in the spirit of the curl plugin, adds support for populating multiple <Publish> and <Subscribe> blocks under <Plugin mqtt> with support for some parameters. Those are: * blocktype. Publish or Subscribe. Mandatory * name. The name of the block. Mandatory * Host. Mandatory * Port. Optional * User. Optional * Password. Optional * ClientId. Optional * QoS. Optional * Prefix. Optional * Retain. Optional * StoreRates. Optional * CleanSession. Optional * Topic. Optional Bump PKG_RELEASE per comments in PR Signed-off-by: Alexandros Kosiaris <akosiaris@gmail.com>
* collectd: handle renaming ipq807x as qualcommaxHannu Nyman2023-06-17
| | | | | | | The 'ipq807x' target was renamed to be 'qualcommax' (and ipq807x was set as subtarget). Adjust plugin target dependencies to this renaming. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* collectd: change references from armvirt to armsrTianling Shen2023-06-16
| | | | | | | | | armvirt target has been renamed to armsr (Arm SystemReady) [1], so the dependency need to be changed as well. 1. https://github.com/openwrt/openwrt/commit/40b02a230167626def69389452f19b7109aaeac1 Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
* collectd: enable AllPortsSummary for tcpconns pluginMaxim Storchak2023-05-29
| | | | Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
* 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>