summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authormakefu <root@pigstarter.de>2013-03-22 08:19:42 -0400
committermakefu <root@pigstarter.de>2013-03-22 08:19:42 -0400
commitb33dd6fed4cd9da07e715666de9766e071381996 (patch)
treeb9a18534a03b59b2646f221ea76ac6fa603f8298 /util
parentf73ab0673e3b4a065e4172e0db56f2402a3030a5 (diff)
add graphite client
Diffstat (limited to 'util')
-rwxr-xr-xutil/bin/graphitec4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/bin/graphitec b/util/bin/graphitec
new file mode 100755
index 00000000..b9f09e3d
--- /dev/null
+++ b/util/bin/graphitec
@@ -0,0 +1,4 @@
+#!/bin/sh
+H=${GRAPHITE_HOST:-localhost}
+P=${GRAPHITE_PORT:-2003}
+printf "%s %s\r\n" $1 $2 | nc -u $H $P