mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-03 03:44:28 +02:00
Icinga DB: Add service_state.host_id
to Redis
This commit is contained in:
parent
5dc45baebb
commit
fe5aa1e18d
@ -2203,6 +2203,7 @@ Dictionary::Ptr IcingaDB::SerializeState(const Checkable::Ptr& checkable)
|
||||
attrs->Set("state", state);
|
||||
attrs->Set("hard_state", service->HasBeenChecked() ? service->GetLastHardState() : 99);
|
||||
attrs->Set("severity", service->GetSeverity());
|
||||
attrs->Set("host_id", GetObjectIdentifier(host));
|
||||
} else {
|
||||
attrs->Set("host_id", id);
|
||||
auto state = host->HasBeenChecked() ? host->GetState() : 99;
|
||||
|
Loading…
x
Reference in New Issue
Block a user