bundlewrap/bundles/telegraf
CroneKorkN 81732f05ca
fix(telegraf): re-enable the procio exec input
It was commented out in 8539f59 while the old binary did not run on
Debian 13; the statically linked build does, so proc_io gets data
again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RywMtsL8qXG7GDY3MHq9Uh
2026-10-23 14:16:18 +02:00
..
items.py telegraf deprications 2026-03-09 12:29:24 +01:00
metadata.py fix(telegraf): re-enable the procio exec input 2026-10-23 14:16:18 +02:00
README.md wip 2021-11-05 21:45:23 +01:00

setfacl -Rm g:telegraf:rX /var/spool/postfix/
setfacl -dm g:telegraf:rX /var/spool/postfix/

TODO io

for pid in $(ls /proc | grep '^[0-9]\+$')
do
  out=$(cat /proc/$pid/io 2> /dev/null) || continue
  read="$(echo $out | grep '^read_bytes:' | cut -d' ' -f2)"
  write="$(echo $out | grep '^write_bytes:' | cut -d' ' -f2)"
  [ $read = 0 ] && [ $write = 0 ] && continue
  comm=$(cat /proc/$pid/comm); echo "$comm: $read/$write"
done