munin-contrib/tools/profiling/dump_node

14 lines
213 B
Plaintext
Raw Normal View History

2013-02-27 09:59:15 +01:00
#! /bin/sh
2020-10-01 20:40:43 +02:00
NODE="${1:-localhost}"
PORT="${2:-4949}"
2013-02-27 09:59:15 +01:00
{
2020-10-01 20:40:43 +02:00
for plugin in $(echo "list" | nc "$NODE" "$PORT" | tail -n 1)
2013-02-27 09:59:15 +01:00
do
echo "config $plugin"
echo "fetch $plugin"
done
echo "quit"
2020-10-01 20:40:43 +02:00
} | nc "$NODE" "$PORT"