summaryrefslogtreecommitdiff
path: root/lib/custodian
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
commit1c2c0df59d80e60598585dd93abbf9c1eccada08 (patch)
treea38cf23747f7d36ef523d668f59166a967f9f2b0 /lib/custodian
parent1dd745737896d544ea1c8eb0b59dc5b31f1d55aa (diff)
Ensure we quit netcat after sending.
Diffstat (limited to 'lib/custodian')
-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"