mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
parent
d78e5a9676
commit
7e235a53c5
@ -338,8 +338,13 @@ void StatusDataWriter::DumpServiceStatusAttrs(std::ostream& fp, const Service::P
|
|||||||
"\t" "check_latency=" << Convert::ToString(Service::CalculateLatency(cr)) << "\n";
|
"\t" "check_latency=" << Convert::ToString(Service::CalculateLatency(cr)) << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
fp << "\t" << "current_state=" << CompatUtility::GetServiceCurrentState(service) << "\n"
|
if (type == CompatTypeHost && service->IsHostCheck()) {
|
||||||
"\t" "state_type=" << service->GetStateType() << "\n"
|
fp << "\t" << "current_state=" << service->GetHost()->GetState() << "\n";
|
||||||
|
} else {
|
||||||
|
fp << "\t" << "current_state=" << CompatUtility::GetServiceCurrentState(service) << "\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
fp << "\t" "state_type=" << service->GetStateType() << "\n"
|
||||||
"\t" "plugin_output=" << CompatUtility::GetCheckResultOutput(cr) << "\n"
|
"\t" "plugin_output=" << CompatUtility::GetCheckResultOutput(cr) << "\n"
|
||||||
"\t" "long_plugin_output=" << CompatUtility::GetCheckResultLongOutput(cr) << "\n"
|
"\t" "long_plugin_output=" << CompatUtility::GetCheckResultLongOutput(cr) << "\n"
|
||||||
"\t" "performance_data=" << CompatUtility::GetCheckResultPerfdata(cr) << "\n";
|
"\t" "performance_data=" << CompatUtility::GetCheckResultPerfdata(cr) << "\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user