mirror of https://github.com/Icinga/icinga2.git
parent
4a8effa673
commit
0ba2efe97f
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue