mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 23:24:09 +02:00
Add 'host_checksum' for services
This commit is contained in:
parent
48f1ce215b
commit
4fb73a44bd
@ -189,6 +189,7 @@ void RedisWriter::SendConfigUpdate(const ConfigObject::Ptr& object, bool useTran
|
|||||||
Checkable::Ptr checkable = dynamic_pointer_cast<Checkable>(object);
|
Checkable::Ptr checkable = dynamic_pointer_cast<Checkable>(object);
|
||||||
|
|
||||||
if (checkable) {
|
if (checkable) {
|
||||||
|
/* groups_checksum, group_checksums */
|
||||||
propertiesBlacklist.emplace("groups");
|
propertiesBlacklist.emplace("groups");
|
||||||
|
|
||||||
Host::Ptr host;
|
Host::Ptr host;
|
||||||
@ -202,6 +203,9 @@ void RedisWriter::SendConfigUpdate(const ConfigObject::Ptr& object, bool useTran
|
|||||||
if (service) {
|
if (service) {
|
||||||
groups = service->GetGroups();
|
groups = service->GetGroups();
|
||||||
getGroup = &::GetServiceGroup;
|
getGroup = &::GetServiceGroup;
|
||||||
|
|
||||||
|
/* Calculate the host_checksum */
|
||||||
|
checkSums->Set("host_checksum", GetIdentifier(service->GetHost()));
|
||||||
} else {
|
} else {
|
||||||
groups = host->GetGroups();
|
groups = host->GetGroups();
|
||||||
getGroup = &::GetHostGroup;
|
getGroup = &::GetHostGroup;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user