]> granicus.if.org Git - icinga2/commitdiff
Add missing category type for some IDO queries
authorGunnar Beutner <gunnar.beutner@netways.de>
Mon, 10 Nov 2014 12:21:33 +0000 (13:21 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Mon, 10 Nov 2014 12:21:33 +0000 (13:21 +0100)
fixes #7625

lib/db_ido/dbevents.cpp
lib/db_ido/endpointdbobject.cpp

index 08cf55cc68fc2411cbb313520819674195b6944c..57e680fbffbbf325fa6e1d2caa8d3dc58142ac18 100644 (file)
@@ -98,6 +98,7 @@ void DbEvents::NextCheckChangedHandler(const Checkable::Ptr& checkable, double n
                query1.Table = "hoststatus";
 
        query1.Type = DbQueryUpdate;
+       query1.Category = DbCatState;
 
        Dictionary::Ptr fields1 = new Dictionary();
        fields1->Set("next_check", DbValue::FromTimestamp(nextCheck));
@@ -128,6 +129,7 @@ void DbEvents::FlappingChangedHandler(const Checkable::Ptr& checkable, FlappingS
                query1.Table = "hoststatus";
 
        query1.Type = DbQueryUpdate;
+       query1.Category = DbCatState;
 
        Dictionary::Ptr fields1 = new Dictionary();
        fields1->Set("is_flapping", CompatUtility::GetCheckableIsFlapping(checkable));
@@ -163,6 +165,7 @@ void DbEvents::LastNotificationChangedHandler(const Notification::Ptr& notificat
                query1.Table = "hoststatus";
 
        query1.Type = DbQueryUpdate;
+       query1.Category = DbCatState;
 
        Dictionary::Ptr fields1 = new Dictionary();
        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.Type = DbQueryUpdate;
+       query1.Category = DbCatState;
 
        Dictionary::Ptr fields1 = new Dictionary();
 
index 98d7e73b80da976cceb7fb512d73ae73f8654b53..7977489b397ce2ca378ff3d2afc33adc20eadfc3 100644 (file)
@@ -82,6 +82,7 @@ void EndpointDbObject::UpdateConnectedStatus(const Endpoint::Ptr& endpoint)
        DbQuery query1;
        query1.Table = "endpointstatus";
        query1.Type = DbQueryUpdate;
+       query1.Category = DbCatState;
 
        Dictionary::Ptr fields1 = new Dictionary();
        fields1->Set("is_connected", (connected ? 1 : 0));
@@ -114,6 +115,7 @@ void EndpointDbObject::OnConfigUpdate(void)
        DbQuery query1;
        query1.Table = "endpointstatus";
        query1.Type = DbQueryInsert;
+       query1.Category = DbCatConfig;
 
        Dictionary::Ptr fields1 = new Dictionary();
        fields1->Set("identity", endpoint->GetName());