aboutsummaryrefslogtreecommitdiff
path: root/utils/collectd/files/collectd.init
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: 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: 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: 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: 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 reload and service triggerFlorian 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: 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: import from packages, add myself as maintainerJo-Philipp Wich2014-06-11
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>