query.Table = "customvariablestatus";
query.Type = DbQueryInsert | DbQueryUpdate;
query.Category = DbCatState;
+ query.StatusUpdate = true;
query.Fields = fields;
query.WhereCriteria = new Dictionary();
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();
DECLARE_OBJECT(IdoMysqlConnection);
DECLARE_OBJECTNAME(IdoMysqlConnection);
+ IdoMysqlConnection(void);
+
static Value StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata);
protected:
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();
DECLARE_OBJECT(IdoPgsqlConnection);
DECLARE_OBJECTNAME(IdoPgsqlConnection);
+ IdoPgsqlConnection(void);
+
static Value StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata);
protected: