summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2013-10-04 15:38:49 +0100
committerSteve Kemp <steve@steve.org.uk>2013-10-04 15:38:49 +0100
commitd1b43fa79d393192fe22ea104d7d5d48b01da80d (patch)
treeb3fa18e32993fdbc8b33f3ba482fe338f41a31a8
parenta6fd50c956ddacd6e920e103ea66f34ca81d16f3 (diff)
Ensure we quit netcat after sending.
-rw-r--r--lib/custodian/alerts/graphite.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/custodian/alerts/graphite.rb b/lib/custodian/alerts/graphite.rb
index ffcd4de..b00833e 100644
--- a/lib/custodian/alerts/graphite.rb
+++ b/lib/custodian/alerts/graphite.rb
@@ -59,7 +59,7 @@ module Custodian
str.gsub!(/\\\./, "-")
str = "monitor.#{str}"
- system( "/bin/echo '#{str} #{ms} #{Time.now.to_i}' | nc localhost 2003" )
+ system( "/bin/echo '#{str} #{ms} #{Time.now.to_i}' | nc localhost 2003 -q1" )
end
register_alert_type "graphite"