From 53cfad1bcfe41fa1f7d8e12ffc5b0f992b2fbc0f Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 6 Dec 2012 15:39:55 +0100 Subject: //retiolum/bin/dump-graph: get graph from journald --- retiolum/bin/dump-graph | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 retiolum/bin/dump-graph (limited to 'retiolum/bin') diff --git a/retiolum/bin/dump-graph b/retiolum/bin/dump-graph new file mode 100755 index 00000000..87539f49 --- /dev/null +++ b/retiolum/bin/dump-graph @@ -0,0 +1,9 @@ +#! /bin/sh +set -euf + +t0="`date '+%Y-%m-%d %H:%M:%S'`" +systemctl kill --signal=USR2 tincd@retiolum +sleep 5 +journalctl --since="$t0" | sed -n ' + s/.*tinc\.retiolum\[[0-9]\+\]: \([^ ]\+\) to \([^ ]\+\) at \([^ ]\+\) .*$/\1 \2 \3/p +' -- cgit v1.2.3