mirror of https://github.com/Icinga/icinga2.git
Merge pull request #7928 from Icinga/bugfix/opentsdb-custom-tag-empty-string-7724
OpenTsdbWriter#CheckResultHandler(): skip custom tags with empty values
This commit is contained in:
commit
7aaaa0b9b4
|
@ -212,6 +212,14 @@ void OpenTsdbWriter::CheckResultHandler(const Checkable::Ptr& checkable, const C
|
|||
|
||||
continue;
|
||||
}
|
||||
|
||||
if (value.IsEmpty()) {
|
||||
Log(LogDebug, "OpenTsdbWriter")
|
||||
<< "Resolved macro '" << pair.second
|
||||
<< "' for checkable '" << checkable->GetName() << "' to '', skipping.";
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
String tagname = Convert::ToString(pair.first);
|
||||
tags[tagname] = EscapeTag(value);
|
||||
|
|
Loading…
Reference in New Issue