mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-01 10:54:32 +02:00
parent
51589d82b5
commit
61ca24ab8a
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user