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 | 1c2c0df59d80e60598585dd93abbf9c1eccada08 (patch) | |
tree | a38cf23747f7d36ef523d668f59166a967f9f2b0 /lib/custodian/alerts | |
parent | 1dd745737896d544ea1c8eb0b59dc5b31f1d55aa (diff) |
Ensure we quit netcat after sending.
Diffstat (limited to 'lib/custodian/alerts')
-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" |