mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 06:05:01 +02:00
PluginUtility::ParseCheckOutput(): if it doesn't look like perfdata, it's not perfdata
refs #8006
This commit is contained in:
parent
d5d89b7f39
commit
127961b727
@ -109,7 +109,7 @@ std::pair<String, String> PluginUtility::ParseCheckOutput(const String& output)
|
|||||||
if (!text.IsEmpty())
|
if (!text.IsEmpty())
|
||||||
text += "\n";
|
text += "\n";
|
||||||
|
|
||||||
if (delim != String::NPos) {
|
if (delim != String::NPos && line.FindFirstOf("=", delim) != String::NPos) {
|
||||||
text += line.SubStr(0, delim);
|
text += line.SubStr(0, delim);
|
||||||
|
|
||||||
if (!perfdata.IsEmpty())
|
if (!perfdata.IsEmpty())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user