mirror of https://github.com/Icinga/icinga2.git
parent
3cc79a6005
commit
4df3fd4451
|
@ -98,6 +98,7 @@ void DbEvents::NextCheckChangedHandler(const Checkable::Ptr& checkable, double n
|
||||||
query1.Table = "hoststatus";
|
query1.Table = "hoststatus";
|
||||||
|
|
||||||
query1.Type = DbQueryUpdate;
|
query1.Type = DbQueryUpdate;
|
||||||
|
query1.Category = DbCatState;
|
||||||
|
|
||||||
Dictionary::Ptr fields1 = new Dictionary();
|
Dictionary::Ptr fields1 = new Dictionary();
|
||||||
fields1->Set("next_check", DbValue::FromTimestamp(nextCheck));
|
fields1->Set("next_check", DbValue::FromTimestamp(nextCheck));
|
||||||
|
@ -128,6 +129,7 @@ void DbEvents::FlappingChangedHandler(const Checkable::Ptr& checkable, FlappingS
|
||||||
query1.Table = "hoststatus";
|
query1.Table = "hoststatus";
|
||||||
|
|
||||||
query1.Type = DbQueryUpdate;
|
query1.Type = DbQueryUpdate;
|
||||||
|
query1.Category = DbCatState;
|
||||||
|
|
||||||
Dictionary::Ptr fields1 = new Dictionary();
|
Dictionary::Ptr fields1 = new Dictionary();
|
||||||
fields1->Set("is_flapping", CompatUtility::GetCheckableIsFlapping(checkable));
|
fields1->Set("is_flapping", CompatUtility::GetCheckableIsFlapping(checkable));
|
||||||
|
@ -163,6 +165,7 @@ void DbEvents::LastNotificationChangedHandler(const Notification::Ptr& notificat
|
||||||
query1.Table = "hoststatus";
|
query1.Table = "hoststatus";
|
||||||
|
|
||||||
query1.Type = DbQueryUpdate;
|
query1.Type = DbQueryUpdate;
|
||||||
|
query1.Category = DbCatState;
|
||||||
|
|
||||||
Dictionary::Ptr fields1 = new Dictionary();
|
Dictionary::Ptr fields1 = new Dictionary();
|
||||||
fields1->Set("last_notification", DbValue::FromTimestamp(now_bag.first));
|
fields1->Set("last_notification", DbValue::FromTimestamp(now_bag.first));
|
||||||
|
@ -221,6 +224,7 @@ void DbEvents::EnableChangedHandlerInternal(const Checkable::Ptr& checkable, boo
|
||||||
query1.Table = "hoststatus";
|
query1.Table = "hoststatus";
|
||||||
|
|
||||||
query1.Type = DbQueryUpdate;
|
query1.Type = DbQueryUpdate;
|
||||||
|
query1.Category = DbCatState;
|
||||||
|
|
||||||
Dictionary::Ptr fields1 = new Dictionary();
|
Dictionary::Ptr fields1 = new Dictionary();
|
||||||
|
|
||||||
|
|
|
@ -82,6 +82,7 @@ void EndpointDbObject::UpdateConnectedStatus(const Endpoint::Ptr& endpoint)
|
||||||
DbQuery query1;
|
DbQuery query1;
|
||||||
query1.Table = "endpointstatus";
|
query1.Table = "endpointstatus";
|
||||||
query1.Type = DbQueryUpdate;
|
query1.Type = DbQueryUpdate;
|
||||||
|
query1.Category = DbCatState;
|
||||||
|
|
||||||
Dictionary::Ptr fields1 = new Dictionary();
|
Dictionary::Ptr fields1 = new Dictionary();
|
||||||
fields1->Set("is_connected", (connected ? 1 : 0));
|
fields1->Set("is_connected", (connected ? 1 : 0));
|
||||||
|
@ -114,6 +115,7 @@ void EndpointDbObject::OnConfigUpdate(void)
|
||||||
DbQuery query1;
|
DbQuery query1;
|
||||||
query1.Table = "endpointstatus";
|
query1.Table = "endpointstatus";
|
||||||
query1.Type = DbQueryInsert;
|
query1.Type = DbQueryInsert;
|
||||||
|
query1.Category = DbCatConfig;
|
||||||
|
|
||||||
Dictionary::Ptr fields1 = new Dictionary();
|
Dictionary::Ptr fields1 = new Dictionary();
|
||||||
fields1->Set("identity", endpoint->GetName());
|
fields1->Set("identity", endpoint->GetName());
|
||||||
|
|
Loading…
Reference in New Issue