summaryrefslogtreecommitdiff
path: root/lib/custodian/alerts
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
commit3961a0bf3e1ef5367056223989c03669a090f50b (patch)
treee7b7d50383acf9e09247ba5625c0f760f242ead0 /lib/custodian/alerts
parent1c2c0df59d80e60598585dd93abbf9c1eccada08 (diff)
fixed escaping.
Diffstat (limited to 'lib/custodian/alerts')
-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" )