summaryrefslogtreecommitdiffstats
path: root/util/bin/graphitec
diff options
context:
space:
mode:
authorYour Name <you@example.com>2013-04-03 10:05:58 -0400
committerYour Name <you@example.com>2013-04-03 10:05:58 -0400
commit2b74acb096d971a680914cf284c2f9b0c99d7ff3 (patch)
treee54bece94eae5f5bb1b6b11f78b001f720d027e7 /util/bin/graphitec
parent419f05617c9de676b0960435464ed6bcb5ed257f (diff)
parentc57300f04afe66c596b6ea658457aae260ab323e (diff)
Merge branch 'master' of https://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