From d1b43fa79d393192fe22ea104d7d5d48b01da80d Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Fri, 4 Oct 2013 15:38:49 +0100 Subject: Ensure we quit netcat after sending. --- lib/custodian/alerts/graphite.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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" -- cgit v1.2.1