summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-02-05 14:24:23 +0000
committerSteve Kemp <steve@steve.org.uk>2015-02-05 14:24:23 +0000
commit762ef746344bdb19b07b856006c1f80ea184fe32 (patch)
tree7689a47e135b4e2bbaa501fe36d81ae45ac79f04 /lib
parent88c71f6c09dc0b59dfeb6fc1f09d38b734db9688 (diff)
Don't trash the alert-subject.
Diffstat (limited to 'lib')
-rw-r--r--lib/custodian/alerts/graphite.rb5
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