diff options
author | Steve Kemp <steve@steve.org.uk> | 2013-10-04 15:38:49 +0100 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2013-10-04 15:38:49 +0100 |
commit | d1b43fa79d393192fe22ea104d7d5d48b01da80d (patch) | |
tree | b3fa18e32993fdbc8b33f3ba482fe338f41a31a8 /lib | |
parent | a6fd50c956ddacd6e920e103ea66f34ca81d16f3 (diff) |
Ensure we quit netcat after sending.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/custodian/alerts/graphite.rb | 2 |
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" |