collectd: SQM collect data from some qdiscs

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>
This commit is contained in:
Kevin Darbyshire-Bryant
2020-04-15 10:37:58 +01:00
committed by Kevin Darbyshire-Bryant
parent edc41b26ab
commit 38235de9c3
4 changed files with 159 additions and 0 deletions
+5
View File
@@ -11,6 +11,11 @@ NICEPRIO=5
CONFIG_STRING=""
[ -d /usr/libexec/collectd ] && {
find /usr/libexec/collectd ! -perm 0500 -exec chmod 0500 '{}' '+'
find /usr/libexec/collectd ! \( -user nobody -a -group nogroup \) -exec chown nobody:nogroup '{}' '+'
}
process_exec() {
printf "<Plugin exec>\n" >> "$COLLECTD_CONF"
config_foreach process_exec_sections exec_input "Exec"