mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 08:04:14 +02:00
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
@ -213,6 +213,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…
x
Reference in New Issue
Block a user