aboutsummaryrefslogtreecommitdiff
path: root/utils/collectd/files
Commit message (Collapse)AuthorAge
* 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: enable AllPortsSummary for tcpconns pluginMaxim Storchak2023-05-29
| | | | Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
* 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>
* 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: 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-mod-ping: add support for MaxMissedJohn Kohl2021-08-15
| | | | Signed-off-by: John Kohl <jtk.git@bostonpog.org>
* collectd: enable collectd-mod-smartFlorian Eckert2021-03-16
| | | | | | Switching on compilation for collectd smart plugin. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* 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: 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: add ubi uci and plugin infoFlorian Eckert2020-06-24
| | | | | | Add uci binding for ubi plugin. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* collectd: sqm_collect: tidy interval string handlingKevin Darbyshire-Bryant2020-05-25
| | | | Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
* collectd: sqm_collectd: improve error handlingKevin Darbyshire-Bryant2020-05-25
| | | | Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
* collectd: Improve sqm_collectd error reportingKevin Darbyshire-Bryant2020-05-17
| | | | Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
* collectd: sqm_collectd improve interface name filterKevin Darbyshire-Bryant2020-05-07
| | | | | | | | | | | | Increase the range of characters that get substituted by '_' so the shell doesn't complain about illegal variable names. Primarily done to catch '.' and '-' but who knows what funnies will appear in i/f names. It's a shame that busybox ash doesn't understand :alnum: Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
* collectd: SQM collect data from some qdiscsKevin Darbyshire-Bryant2020-05-05
| | | | | | | | | Add a script that can collect data from mq (multi queue) and cake qdiscs. Script is reliant on collectd's 'exec' module. Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
* collectd: add syslog json pluginFlorian Eckert2020-05-04
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* collectd: add vmem uci configMarcin Jurkowski2019-12-11
| | | | Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
* collectd: add reload and service triggerFlorian Eckert2019-09-20
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* collectd: add logfile plugin definitionsFlorian Eckert2019-09-20
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* collectd: add iptables uci configFlorian Eckert2019-09-17
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* collectd: add network uci configFlorian Eckert2019-09-17
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* collectd: add curl uci configFlorian Eckert2019-09-17
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* collectd: add apcups uci configFlorian Eckert2019-09-17
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* collectd: add new memory config valuesFlorian Eckert2019-09-13
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* collectd: add new cpu config valuesFlorian Eckert2019-09-13
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* collectd: use uname to get default HostnameYousong Zhou2019-08-10
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* collectd: log stderr outputYousong Zhou2019-08-10
| | | | | | Collectd without log type plugin loaded will write log lines to stderr. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* collectd: move jshn.sh include to remove warningFlorian Eckert2019-07-04
| | | | | | | | | | | | | | Redmine-patch-id: 3680 If I build an image with the imagebuilder I get the following output during image building: ../root-x86/etc/init.d/collectd: line 4: /usr/share/libubox/jshn.sh: No such file or directory To remove this messsage move include to the needed postion, so that the message does not occur during image building on the host system anymore. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* collectd: add uci config supportFlorian Eckert2019-04-25
| | | | | | Add uci config support. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* utils/collectd: run with low priorityMarc Benoit2018-07-08
| | | | | | | | | | | | | | | Even on a powerful platform a collectd process' activities are sometimes affecting throoughput and latency. This is a backgroud process, that should not be running with default priority. Even if it is a little deplayed, that is not a worry in this case. The routing should be the main priority, stats collection can wait a bit. Tested on Netgear R7800 Signed-off-by: Marc Benoit <marcb62185@gmail.com> Make niceness more moderate, bump version. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* collectd: ensure that /var/lib/collectd existsJo-Philipp Wich2016-04-27
| | | | | | With the conversion to procd a required mkdir has been dropped, readd it. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* collectd: stop service on shutdownJo-Philipp Wich2016-04-15
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* collectd: use procdHannu Nyman2016-02-03
| | | | | | Change collectd to use procd for startup. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* collectd: Clarify config file example/placeholderHannu Nyman2015-08-30
| | | | | | | | | | | | | | | | | | | The config file shipped with collectd dates from 2010 and leads to error messages if luci-statistics & collectd are installed, as it references several plugins not usually installed, or such ones that have been renamed since then. For most users, this file is just a placeholder during collectd installation, as /usr/bin/stat-genconfig from /etc/init.d/luci_statistics will overwrite it. Sanitize and shorten the placeholder config file: * Reference actively only the default plugins installed by luci statistics. * Match the placeholder config with the genuine config from luci statistics. If somebody uses collectd separately from luci statistics, he will need to edit these settings anyway. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* collectd: import from packages, add myself as maintainerJo-Philipp Wich2014-06-11
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>