From 762ef746344bdb19b07b856006c1f80ea184fe32 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Thu, 5 Feb 2015 14:24:23 +0000 Subject: Don't trash the alert-subject. --- lib/custodian/alerts/graphite.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/custodian/alerts') 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 -- cgit v1.2.1