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

refs #6192

lib/perfdata/elasticsearchwriter.cpp

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