mirror of https://github.com/Icinga/icinga2.git
parent
51589d82b5
commit
61ca24ab8a
|
@ -160,6 +160,15 @@ void GraphiteWriter::SendPerfdata(const String& prefix, const CheckResult::Ptr&
|
||||||
boost::algorithm::replace_all(escaped_key, "::", ".");
|
boost::algorithm::replace_all(escaped_key, "::", ".");
|
||||||
|
|
||||||
SendMetric(prefix, escaped_key, pdv->GetValue());
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue