]> granicus.if.org Git - icinga2/commitdiff
Make GraphiteWriter ignore empty perfdata values
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 3 Sep 2014 20:05:32 +0000 (22:05 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 3 Sep 2014 20:06:13 +0000 (22:06 +0200)
fixes #7072

components/perfdata/graphitewriter.cpp

index b792c8d9008f6b9f349d15812156afbee64aff6e..e806089adab5c05df946df3021744a99bedf51a5 100644 (file)
@@ -136,6 +136,9 @@ void GraphiteWriter::SendPerfdata(const String& prefix, const CheckResult::Ptr&
 {
        Value pdv = cr->GetPerformanceData();
 
+       if (pdv.IsEmpty())
+               return;
+
        if (!pdv.IsObjectType<Dictionary>())
        {
                CONTEXT("Processing performance data value '" + String(pdv) + "'");