summaryrefslogtreecommitdiff
path: root/lib/custodian/alerts/graphite.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/custodian/alerts/graphite.rb')
-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