mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
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:
committed by
Kevin Darbyshire-Bryant
parent
edc41b26ab
commit
38235de9c3
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user