summaryrefslogtreecommitdiffstats
path: root/util/bin/graphitec
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2013-04-04 10:14:27 +0200
committermakefu <github@syntax-fehler.de>2013-04-04 10:14:27 +0200
commit5266540d4c21494adbac3f25f982f2bf32390734 (patch)
treee0532270da21fbb368c98347c0506ed850d86e58 /util/bin/graphitec
parent7fa8fb85b072f612adb322f8a02617e1bd737020 (diff)
parentc57300f04afe66c596b6ea658457aae260ab323e (diff)
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'util/bin/graphitec')
-rwxr-xr-xutil/bin/graphitec5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/bin/graphitec b/util/bin/graphitec
new file mode 100755
index 00000000..52aa9834
--- /dev/null
+++ b/util/bin/graphitec
@@ -0,0 +1,5 @@
+#!/bin/sh
+H=${GRAPHITE_HOST:-localhost}
+P=${GRAPHITE_PORT:-2003}
+curr=$(date '+%s')
+printf "%s %s %s\n" $1 $2 $curr | nc -q0 $H $P