diff options
author | Steve Kemp <steve@steve.org.uk> | 2013-10-07 15:37:34 +0100 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2013-10-07 15:37:34 +0100 |
commit | 23a0d45199ae409b6e463546bba74b3d653305cf (patch) | |
tree | cc0880a0301e6bdb05a620d6e121f2d53fb6539c /lib | |
parent | d1b43fa79d393192fe22ea104d7d5d48b01da80d (diff) |
fixed escaping.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/custodian/alerts/graphite.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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" ) |