mirror of https://github.com/Icinga/icinga2.git
parent
fba0b493cd
commit
0813e69a41
|
@ -101,7 +101,7 @@ void DbEvents::NextCheckChangedHandler(const Checkable::Ptr& checkable)
|
|||
else
|
||||
query1.Table = "hoststatus";
|
||||
|
||||
query1.Type = DbQueryInsert | DbQueryUpdate;
|
||||
query1.Type = DbQueryUpdate;
|
||||
query1.Category = DbCatState;
|
||||
query1.StatusUpdate = true;
|
||||
query1.Object = DbObject::GetOrCreateByObject(checkable);
|
||||
|
@ -134,7 +134,7 @@ void DbEvents::FlappingChangedHandler(const Checkable::Ptr& checkable)
|
|||
else
|
||||
query1.Table = "hoststatus";
|
||||
|
||||
query1.Type = DbQueryInsert | DbQueryUpdate;
|
||||
query1.Type = DbQueryUpdate;
|
||||
query1.Category = DbCatState;
|
||||
query1.StatusUpdate = true;
|
||||
query1.Object = DbObject::GetOrCreateByObject(checkable);
|
||||
|
@ -172,7 +172,7 @@ void DbEvents::LastNotificationChangedHandler(const Notification::Ptr& notificat
|
|||
else
|
||||
query1.Table = "hoststatus";
|
||||
|
||||
query1.Type = DbQueryInsert | DbQueryUpdate;
|
||||
query1.Type = DbQueryUpdate;
|
||||
query1.Category = DbCatState;
|
||||
query1.StatusUpdate = true;
|
||||
query1.Object = DbObject::GetOrCreateByObject(checkable);
|
||||
|
@ -219,7 +219,7 @@ void DbEvents::ReachabilityChangedHandler(const Checkable::Ptr& checkable, const
|
|||
else
|
||||
query1.Table = "hoststatus";
|
||||
|
||||
query1.Type = DbQueryInsert | DbQueryUpdate;
|
||||
query1.Type = DbQueryUpdate;
|
||||
query1.Category = DbCatState;
|
||||
query1.StatusUpdate = true;
|
||||
query1.Object = DbObject::GetOrCreateByObject(child);
|
||||
|
@ -279,7 +279,7 @@ void DbEvents::EnableChangedHandlerInternal(const Checkable::Ptr& checkable, con
|
|||
else
|
||||
query1.Table = "hoststatus";
|
||||
|
||||
query1.Type = DbQueryInsert | DbQueryUpdate;
|
||||
query1.Type = DbQueryUpdate;
|
||||
query1.Category = DbCatState;
|
||||
query1.StatusUpdate = true;
|
||||
query1.Object = DbObject::GetOrCreateByObject(checkable);
|
||||
|
|
Loading…
Reference in New Issue