]> granicus.if.org Git - icinga2/commitdiff
Fixed opentsdb metric name with colon chars 6290/head
authorjre3brg <jorge.rebelo@pt.bosch.com>
Tue, 8 May 2018 07:40:13 +0000 (09:40 +0200)
committerjre3brg <jorge.rebelo@pt.bosch.com>
Tue, 8 May 2018 07:40:13 +0000 (09:40 +0200)
lib/perfdata/opentsdbwriter.cpp

index 9d37fdc6c3509f708fc9ebd641fbadd180c7441d..c55529ffaf4499b72f4ffda213bb1197b3ff92d9 100644 (file)
@@ -254,6 +254,7 @@ String OpenTsdbWriter::EscapeMetric(const String& str)
        boost::replace_all(result, " ", "_");
        boost::replace_all(result, ".", "_");
        boost::replace_all(result, "\\", "_");
+       boost::replace_all(result, ":", "_");
 
        return result;
 }