diff options
author | makefu <root@pigstarter.de> | 2013-03-28 21:48:21 -0400 |
---|---|---|
committer | makefu <root@pigstarter.de> | 2013-03-28 21:48:21 -0400 |
commit | 6d4437f1b498b97efb3bf13669cfc162e5ba642c (patch) | |
tree | f959446a82031f0643bf3d854089dd49194ad15d | |
parent | b33dd6fed4cd9da07e715666de9766e071381996 (diff) |
add working graphite client
-rwxr-xr-x | util/bin/graphitec | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/bin/graphitec b/util/bin/graphitec index b9f09e3d..52aa9834 100755 --- a/util/bin/graphitec +++ b/util/bin/graphitec @@ -1,4 +1,5 @@ #!/bin/sh H=${GRAPHITE_HOST:-localhost} P=${GRAPHITE_PORT:-2003} -printf "%s %s\r\n" $1 $2 | nc -u $H $P +curr=$(date '+%s') +printf "%s %s %s\n" $1 $2 $curr | nc -q0 $H $P |