diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-02-05 14:24:23 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-02-05 14:24:23 +0000 |
commit | b2d20b3d396cddc58b8c02fcca931758e4babec5 (patch) | |
tree | 0da170ee32585dfd36181a0ae6400801c4305480 | |
parent | 9ba42540854697fbba2a17e97b8e3cb5dde08012 (diff) |
Don't trash the alert-subject.
-rw-r--r-- | lib/custodian/alerts/graphite.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/custodian/alerts/graphite.rb b/lib/custodian/alerts/graphite.rb index bc87beb..761b839 100644 --- a/lib/custodian/alerts/graphite.rb +++ b/lib/custodian/alerts/graphite.rb @@ -52,8 +52,7 @@ module Custodian # # hostname + test-type # - host = @test.target - host.gsub!(/[\/\\.]/, "_") + host = @test.target.gsub(/[\/\\.]/, "_") test = @test.get_type # @@ -66,7 +65,7 @@ module Custodian # Send via UDP. # socket = UDPSocket.new() - socket.send( payload, 0, "localhost", 2003 ); + socket.send( payload, 0, @target, 2003 ); socket.close() end |