summaryrefslogtreecommitdiff
path: root/lib/custodian/alerts/graphite.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2013-10-07 15:37:34 +0100
committerSteve Kemp <steve@steve.org.uk>2013-10-07 15:37:34 +0100
commit23a0d45199ae409b6e463546bba74b3d653305cf (patch)
treecc0880a0301e6bdb05a620d6e121f2d53fb6539c /lib/custodian/alerts/graphite.rb
parentd1b43fa79d393192fe22ea104d7d5d48b01da80d (diff)
fixed escaping.
Diffstat (limited to 'lib/custodian/alerts/graphite.rb')
-rw-r--r--lib/custodian/alerts/graphite.rb2
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" )