From 23a0d45199ae409b6e463546bba74b3d653305cf 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') 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