mirror of https://github.com/Icinga/icinga2.git
Merge pull request #7676 from Icinga/feature/icingadb-localendpoint-id
IcingaDB#GetStats(): add endpoint_id to IcingaApplication
This commit is contained in:
commit
f0b8892e4a
|
@ -38,6 +38,15 @@ Dictionary::Ptr IcingaDB::GetStats()
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto localEndpoint (Endpoint::GetLocalEndpoint());
|
||||||
|
|
||||||
|
if (localEndpoint) {
|
||||||
|
typedef Dictionary::Ptr DP;
|
||||||
|
|
||||||
|
DP(DP(DP(DP(stats->Get("IcingaApplication"))->Get("status"))->Get("icingaapplication"))->Get("app"))
|
||||||
|
->Set("endpoint_id", GetObjectIdentifier(localEndpoint));
|
||||||
|
}
|
||||||
|
|
||||||
return stats;
|
return stats;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue