From 3961a0bf3e1ef5367056223989c03669a090f50b Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 7 Oct 2013 15:37:34 +0100 Subject: fixed escaping. --- lib/custodian/alerts/graphite.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/custodian/alerts') diff --git a/lib/custodian/alerts/graphite.rb b/lib/custodian/alerts/graphite.rb index b00833e..abea54d 100644 --- a/lib/custodian/alerts/graphite.rb +++ b/lib/custodian/alerts/graphite.rb @@ -56,7 +56,7 @@ module Custodian # The key we'll send # str = "#{test}-#{host}" - str.gsub!(/\\\./, "-") + str.gsub!(/[\/\\.]/, "-") str = "monitor.#{str}" system( "/bin/echo '#{str} #{ms} #{Time.now.to_i}' | nc localhost 2003 -q1" ) -- cgit v1.2.1