]> granicus.if.org Git - icinga2/commitdiff
Elasticsearch: Fix crash with invalid performance data metrics 6192/head
authorMichael Friedrich <michael.friedrich@icinga.com>
Tue, 3 Apr 2018 12:38:25 +0000 (14:38 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Tue, 3 Apr 2018 12:38:25 +0000 (14:38 +0200)
fixes #6191

lib/perfdata/elasticsearchwriter.cpp

index d27aec22783a663e322fd7501c635eab5c2ed706..67accf3ec53fb98e8a100f7d99f244ce4f91e619 100644 (file)
@@ -145,6 +145,7 @@ void ElasticsearchWriter::AddCheckResult(const Dictionary::Ptr& fields, const Ch
                                        Log(LogWarning, "ElasticsearchWriter")
                                                << "Ignoring invalid perfdata value: '" << val << "' for object '"
                                                << checkable->GetName() << "'.";
+                                       continue;
                                }
                        }