Icinga DB: don't write all types

This commit is contained in:
Alexander A. Klimov 2021-02-17 12:41:45 +01:00
parent aa4f53009e
commit d4a91ec50d
1 changed files with 17 additions and 1 deletions

View File

@ -127,7 +127,23 @@ void IcingaDB::UpdateAllConfigObjects()
typedef std::pair<ConfigType *, String> TypePair;
std::vector<TypePair> types;
for (const Type::Ptr& type : Type::GetAllTypes()) {
for (const Type::Ptr& type : {
CheckCommand::TypeInstance,
Comment::TypeInstance,
Downtime::TypeInstance,
Endpoint::TypeInstance,
EventCommand::TypeInstance,
Host::TypeInstance,
HostGroup::TypeInstance,
Notification::TypeInstance,
NotificationCommand::TypeInstance,
Service::TypeInstance,
ServiceGroup::TypeInstance,
TimePeriod::TypeInstance,
User::TypeInstance,
UserGroup::TypeInstance,
Zone::TypeInstance
}) {
ConfigType *ctype = dynamic_cast<ConfigType *>(type.get());
if (!ctype)
continue;