mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-29 16:44:29 +02:00
IcingaDB#GetStats(): add endpoint_id to IcingaApplication
This commit is contained in:
parent
ce4409d1d2
commit
e109063333
@ -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…
x
Reference in New Issue
Block a user