From 1c2c0df59d80e60598585dd93abbf9c1eccada08 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/custodian/alerts') 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