GraphiteWriter: Add crit/warn/min/max perfdata values

fixes #7366
This commit is contained in:
Michael Friedrich 2014-10-10 20:43:49 +02:00
parent 51589d82b5
commit 61ca24ab8a
1 changed files with 9 additions and 0 deletions

View File

@ -160,6 +160,15 @@ void GraphiteWriter::SendPerfdata(const String& prefix, const CheckResult::Ptr&
boost::algorithm::replace_all(escaped_key, "::", ".");
SendMetric(prefix, escaped_key, pdv->GetValue());
if (pdv->GetCrit())
SendMetric(prefix, escaped_key + "_crit", pdv->GetCrit());
if (pdv->GetWarn())
SendMetric(prefix, escaped_key + "_warn", pdv->GetWarn());
if (pdv->GetMin())
SendMetric(prefix, escaped_key + "_min", pdv->GetMin());
if (pdv->GetMax())
SendMetric(prefix, escaped_key + "_max", pdv->GetMax());
}
}