Fix some Ido initialization bugs

refs #7625
This commit is contained in:
Jean Flach 2014-11-11 09:40:00 +01:00
parent 4a8effa673
commit 0ba2efe97f
5 changed files with 13 additions and 0 deletions

View File

@ -254,6 +254,7 @@ void DbObject::SendVarsStatusUpdate(void)
query.Table = "customvariablestatus";
query.Type = DbQueryInsert | DbQueryUpdate;
query.Category = DbCatState;
query.StatusUpdate = true;
query.Fields = fields;
query.WhereCriteria = new Dictionary();

View File

@ -39,6 +39,10 @@ using namespace icinga;
REGISTER_TYPE(IdoMysqlConnection);
REGISTER_STATSFUNCTION(IdoMysqlConnectionStats, &IdoMysqlConnection::StatsFunc);
IdoMysqlConnection::IdoMysqlConnection(void)
: m_Connected(false)
{ }
Value IdoMysqlConnection::StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata)
{
Dictionary::Ptr nodes = new Dictionary();

View File

@ -42,6 +42,8 @@ public:
DECLARE_OBJECT(IdoMysqlConnection);
DECLARE_OBJECTNAME(IdoMysqlConnection);
IdoMysqlConnection(void);
static Value StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata);
protected:

View File

@ -41,6 +41,10 @@ REGISTER_TYPE(IdoPgsqlConnection);
REGISTER_STATSFUNCTION(IdoPgsqlConnectionStats, &IdoPgsqlConnection::StatsFunc);
IdoPgsqlConnection::IdoPgsqlConnection(void)
: m_Connection(NULL)
{ }
Value IdoPgsqlConnection::StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata)
{
Dictionary::Ptr nodes = new Dictionary();

View File

@ -42,6 +42,8 @@ public:
DECLARE_OBJECT(IdoPgsqlConnection);
DECLARE_OBJECTNAME(IdoPgsqlConnection);
IdoPgsqlConnection(void);
static Value StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata);
protected: