mirror of https://github.com/Icinga/icinga2.git
parent
22d53cf3b5
commit
979d6cc97a
|
@ -39,9 +39,9 @@ using namespace icinga;
|
||||||
|
|
||||||
REGISTER_TYPE(Host);
|
REGISTER_TYPE(Host);
|
||||||
|
|
||||||
void Host::Start(void)
|
void Host::OnConfigLoaded(void)
|
||||||
{
|
{
|
||||||
DynamicObject::Start();
|
DynamicObject::OnConfigLoaded();
|
||||||
|
|
||||||
ASSERT(!OwnsLock());
|
ASSERT(!OwnsLock());
|
||||||
|
|
||||||
|
@ -57,10 +57,7 @@ void Host::Start(void)
|
||||||
hg->AddMember(GetSelf());
|
hg->AddMember(GetSelf());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void Host::OnConfigLoaded(void)
|
|
||||||
{
|
|
||||||
UpdateSlaveServices();
|
UpdateSlaveServices();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -102,7 +102,6 @@ public:
|
||||||
virtual bool ResolveMacro(const String& macro, const CheckResult::Ptr& cr, String *result) const;
|
virtual bool ResolveMacro(const String& macro, const CheckResult::Ptr& cr, String *result) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void Start(void);
|
|
||||||
virtual void Stop(void);
|
virtual void Stop(void);
|
||||||
|
|
||||||
virtual void OnConfigLoaded(void);
|
virtual void OnConfigLoaded(void);
|
||||||
|
|
Loading…
Reference in New Issue