mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 15:44:11 +02:00
parent
70a28c05b3
commit
9e2aa4c5ed
@ -20,10 +20,10 @@
|
|||||||
#ifndef SYSLOGLOGGER_H
|
#ifndef SYSLOGLOGGER_H
|
||||||
#define SYSLOGLOGGER_H
|
#define SYSLOGLOGGER_H
|
||||||
|
|
||||||
|
#ifndef _WIN32
|
||||||
#include "base/i2-base.hpp"
|
#include "base/i2-base.hpp"
|
||||||
#include "base/sysloglogger.thpp"
|
#include "base/sysloglogger.thpp"
|
||||||
|
|
||||||
#ifndef _WIN32
|
|
||||||
namespace icinga
|
namespace icinga
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ namespace icinga
|
|||||||
class CommandDbObject : public DbObject
|
class CommandDbObject : public DbObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(CommandDbObject);
|
DECLARE_PTR_TYPEDEFS(CommandDbObject);
|
||||||
|
|
||||||
CommandDbObject(const shared_ptr<DbType>& type, const String& name1, const String& name2);
|
CommandDbObject(const shared_ptr<DbType>& type, const String& name1, const String& name2);
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ enum DbObjectType
|
|||||||
class I2_DB_IDO_API DbObject : public Object
|
class I2_DB_IDO_API DbObject : public Object
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(DbObject);
|
DECLARE_PTR_TYPEDEFS(DbObject);
|
||||||
|
|
||||||
static void StaticInitialize(void);
|
static void StaticInitialize(void);
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ class DbObject;
|
|||||||
class I2_DB_IDO_API DbType : public Object
|
class I2_DB_IDO_API DbType : public Object
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(DbType);
|
DECLARE_PTR_TYPEDEFS(DbType);
|
||||||
|
|
||||||
typedef boost::function<shared_ptr<DbObject> (const shared_ptr<DbType>&, const String&, const String&)> ObjectFactory;
|
typedef boost::function<shared_ptr<DbObject> (const shared_ptr<DbType>&, const String&, const String&)> ObjectFactory;
|
||||||
typedef std::map<String, DbType::Ptr> TypeMap;
|
typedef std::map<String, DbType::Ptr> TypeMap;
|
||||||
|
@ -42,7 +42,7 @@ enum DbValueType
|
|||||||
struct I2_DB_IDO_API DbValue : public Object
|
struct I2_DB_IDO_API DbValue : public Object
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(DbValue);
|
DECLARE_PTR_TYPEDEFS(DbValue);
|
||||||
|
|
||||||
DbValue(DbValueType type, const Value& value);
|
DbValue(DbValueType type, const Value& value);
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ namespace icinga
|
|||||||
class EndpointDbObject : public DbObject
|
class EndpointDbObject : public DbObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(EndpointDbObject);
|
DECLARE_PTR_TYPEDEFS(EndpointDbObject);
|
||||||
|
|
||||||
EndpointDbObject(const shared_ptr<DbType>& type, const String& name1, const String& name2);
|
EndpointDbObject(const shared_ptr<DbType>& type, const String& name1, const String& name2);
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ namespace icinga
|
|||||||
class HostDbObject : public DbObject
|
class HostDbObject : public DbObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(HostDbObject);
|
DECLARE_PTR_TYPEDEFS(HostDbObject);
|
||||||
|
|
||||||
HostDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
|
HostDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ namespace icinga
|
|||||||
class HostGroupDbObject : public DbObject
|
class HostGroupDbObject : public DbObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(HostGroupDbObject);
|
DECLARE_PTR_TYPEDEFS(HostGroupDbObject);
|
||||||
|
|
||||||
HostGroupDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
|
HostGroupDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ namespace icinga
|
|||||||
class ServiceDbObject : public DbObject
|
class ServiceDbObject : public DbObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(ServiceDbObject);
|
DECLARE_PTR_TYPEDEFS(ServiceDbObject);
|
||||||
|
|
||||||
ServiceDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
|
ServiceDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ namespace icinga
|
|||||||
class ServiceGroupDbObject : public DbObject
|
class ServiceGroupDbObject : public DbObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(ServiceGroupDbObject);
|
DECLARE_PTR_TYPEDEFS(ServiceGroupDbObject);
|
||||||
|
|
||||||
ServiceGroupDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
|
ServiceGroupDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ namespace icinga
|
|||||||
class TimePeriodDbObject : public DbObject
|
class TimePeriodDbObject : public DbObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(TimePeriodDbObject);
|
DECLARE_PTR_TYPEDEFS(TimePeriodDbObject);
|
||||||
|
|
||||||
TimePeriodDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
|
TimePeriodDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ namespace icinga
|
|||||||
class UserDbObject : public DbObject
|
class UserDbObject : public DbObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(UserDbObject);
|
DECLARE_PTR_TYPEDEFS(UserDbObject);
|
||||||
|
|
||||||
UserDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
|
UserDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ namespace icinga
|
|||||||
class UserGroupDbObject : public DbObject
|
class UserGroupDbObject : public DbObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(UserGroupDbObject);
|
DECLARE_PTR_TYPEDEFS(UserGroupDbObject);
|
||||||
|
|
||||||
UserGroupDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
|
UserGroupDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ namespace icinga
|
|||||||
class Aggregator : public Object
|
class Aggregator : public Object
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(Aggregator);
|
DECLARE_PTR_TYPEDEFS(Aggregator);
|
||||||
|
|
||||||
virtual void Apply(const Table::Ptr& table, const Value& row) = 0;
|
virtual void Apply(const Table::Ptr& table, const Value& row) = 0;
|
||||||
virtual double GetResult(void) const = 0;
|
virtual double GetResult(void) const = 0;
|
||||||
|
@ -33,7 +33,7 @@ namespace icinga
|
|||||||
class AndFilter : public CombinerFilter
|
class AndFilter : public CombinerFilter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(AndFilter);
|
DECLARE_PTR_TYPEDEFS(AndFilter);
|
||||||
|
|
||||||
AndFilter(void);
|
AndFilter(void);
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ namespace icinga
|
|||||||
class AttributeFilter : public Filter
|
class AttributeFilter : public Filter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(AttributeFilter);
|
DECLARE_PTR_TYPEDEFS(AttributeFilter);
|
||||||
|
|
||||||
AttributeFilter(const String& column, const String& op, const String& operand);
|
AttributeFilter(const String& column, const String& op, const String& operand);
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ namespace icinga
|
|||||||
class AvgAggregator : public Aggregator
|
class AvgAggregator : public Aggregator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(AvgAggregator);
|
DECLARE_PTR_TYPEDEFS(AvgAggregator);
|
||||||
|
|
||||||
AvgAggregator(const String& attr);
|
AvgAggregator(const String& attr);
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ namespace icinga
|
|||||||
class CombinerFilter : public Filter
|
class CombinerFilter : public Filter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(CombinerFilter);
|
DECLARE_PTR_TYPEDEFS(CombinerFilter);
|
||||||
|
|
||||||
CombinerFilter(void);
|
CombinerFilter(void);
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ namespace icinga
|
|||||||
class CommandsTable : public Table
|
class CommandsTable : public Table
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(CommandsTable);
|
DECLARE_PTR_TYPEDEFS(CommandsTable);
|
||||||
|
|
||||||
CommandsTable(void);
|
CommandsTable(void);
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ namespace icinga
|
|||||||
class CommentsTable : public Table
|
class CommentsTable : public Table
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(CommentsTable);
|
DECLARE_PTR_TYPEDEFS(CommentsTable);
|
||||||
|
|
||||||
CommentsTable(void);
|
CommentsTable(void);
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ namespace icinga
|
|||||||
class ContactGroupsTable : public Table
|
class ContactGroupsTable : public Table
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(ContactGroupsTable);
|
DECLARE_PTR_TYPEDEFS(ContactGroupsTable);
|
||||||
|
|
||||||
ContactGroupsTable(void);
|
ContactGroupsTable(void);
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ namespace icinga
|
|||||||
class ContactsTable : public Table
|
class ContactsTable : public Table
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(ContactsTable);
|
DECLARE_PTR_TYPEDEFS(ContactsTable);
|
||||||
|
|
||||||
ContactsTable(void);
|
ContactsTable(void);
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ namespace icinga
|
|||||||
class CountAggregator : public Aggregator
|
class CountAggregator : public Aggregator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(CountAggregator);
|
DECLARE_PTR_TYPEDEFS(CountAggregator);
|
||||||
|
|
||||||
CountAggregator(void);
|
CountAggregator(void);
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ namespace icinga
|
|||||||
class DowntimesTable : public Table
|
class DowntimesTable : public Table
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(DowntimesTable);
|
DECLARE_PTR_TYPEDEFS(DowntimesTable);
|
||||||
|
|
||||||
DowntimesTable(void);
|
DowntimesTable(void);
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ namespace icinga
|
|||||||
class EndpointsTable : public Table
|
class EndpointsTable : public Table
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(EndpointsTable);
|
DECLARE_PTR_TYPEDEFS(EndpointsTable);
|
||||||
|
|
||||||
EndpointsTable(void);
|
EndpointsTable(void);
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ namespace icinga
|
|||||||
class Filter : public Object
|
class Filter : public Object
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(Filter);
|
DECLARE_PTR_TYPEDEFS(Filter);
|
||||||
|
|
||||||
virtual bool Apply(const Table::Ptr& table, const Value& row) = 0;
|
virtual bool Apply(const Table::Ptr& table, const Value& row) = 0;
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ namespace icinga
|
|||||||
class HostGroupsTable : public Table
|
class HostGroupsTable : public Table
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(HostGroupsTable);
|
DECLARE_PTR_TYPEDEFS(HostGroupsTable);
|
||||||
|
|
||||||
HostGroupsTable(void);
|
HostGroupsTable(void);
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ namespace icinga
|
|||||||
class HostsTable : public Table
|
class HostsTable : public Table
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(HostsTable);
|
DECLARE_PTR_TYPEDEFS(HostsTable);
|
||||||
|
|
||||||
HostsTable(void);
|
HostsTable(void);
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ namespace icinga
|
|||||||
class InvAvgAggregator : public Aggregator
|
class InvAvgAggregator : public Aggregator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(InvAvgAggregator);
|
DECLARE_PTR_TYPEDEFS(InvAvgAggregator);
|
||||||
|
|
||||||
InvAvgAggregator(const String& attr);
|
InvAvgAggregator(const String& attr);
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ namespace icinga
|
|||||||
class InvSumAggregator : public Aggregator
|
class InvSumAggregator : public Aggregator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(InvSumAggregator);
|
DECLARE_PTR_TYPEDEFS(InvSumAggregator);
|
||||||
|
|
||||||
InvSumAggregator(const String& attr);
|
InvSumAggregator(const String& attr);
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ enum LivestatusError
|
|||||||
class LivestatusQuery : public Object
|
class LivestatusQuery : public Object
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(LivestatusQuery);
|
DECLARE_PTR_TYPEDEFS(LivestatusQuery);
|
||||||
|
|
||||||
LivestatusQuery(const std::vector<String>& lines, const String& compat_log_path);
|
LivestatusQuery(const std::vector<String>& lines, const String& compat_log_path);
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ namespace icinga
|
|||||||
class LogTable : public HistoryTable
|
class LogTable : public HistoryTable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(LogTable);
|
DECLARE_PTR_TYPEDEFS(LogTable);
|
||||||
|
|
||||||
LogTable(const String& compat_log_path, time_t from, time_t until);
|
LogTable(const String& compat_log_path, time_t from, time_t until);
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ namespace icinga
|
|||||||
class MaxAggregator : public Aggregator
|
class MaxAggregator : public Aggregator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(MaxAggregator);
|
DECLARE_PTR_TYPEDEFS(MaxAggregator);
|
||||||
|
|
||||||
MaxAggregator(const String& attr);
|
MaxAggregator(const String& attr);
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ namespace icinga
|
|||||||
class MinAggregator : public Aggregator
|
class MinAggregator : public Aggregator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(MinAggregator);
|
DECLARE_PTR_TYPEDEFS(MinAggregator);
|
||||||
|
|
||||||
MinAggregator(const String& attr);
|
MinAggregator(const String& attr);
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ namespace icinga
|
|||||||
class NegateFilter : public Filter
|
class NegateFilter : public Filter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(NegateFilter);
|
DECLARE_PTR_TYPEDEFS(NegateFilter);
|
||||||
|
|
||||||
NegateFilter(const Filter::Ptr& inner);
|
NegateFilter(const Filter::Ptr& inner);
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ namespace icinga
|
|||||||
class OrFilter : public CombinerFilter
|
class OrFilter : public CombinerFilter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(OrFilter);
|
DECLARE_PTR_TYPEDEFS(OrFilter);
|
||||||
|
|
||||||
OrFilter(void);
|
OrFilter(void);
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ namespace icinga
|
|||||||
class ServiceGroupsTable : public Table
|
class ServiceGroupsTable : public Table
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(ServiceGroupsTable);
|
DECLARE_PTR_TYPEDEFS(ServiceGroupsTable);
|
||||||
|
|
||||||
ServiceGroupsTable(void);
|
ServiceGroupsTable(void);
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ namespace icinga
|
|||||||
class ServicesTable : public Table
|
class ServicesTable : public Table
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(ServicesTable);
|
DECLARE_PTR_TYPEDEFS(ServicesTable);
|
||||||
|
|
||||||
ServicesTable(void);
|
ServicesTable(void);
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ namespace icinga
|
|||||||
class StateHistTable : public HistoryTable
|
class StateHistTable : public HistoryTable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(StateHistTable);
|
DECLARE_PTR_TYPEDEFS(StateHistTable);
|
||||||
|
|
||||||
StateHistTable(const String& compat_log_path, time_t from, time_t until);
|
StateHistTable(const String& compat_log_path, time_t from, time_t until);
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ namespace icinga
|
|||||||
class StatusTable : public Table
|
class StatusTable : public Table
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(StatusTable);
|
DECLARE_PTR_TYPEDEFS(StatusTable);
|
||||||
|
|
||||||
StatusTable(void);
|
StatusTable(void);
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ namespace icinga
|
|||||||
class StdAggregator : public Aggregator
|
class StdAggregator : public Aggregator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(StdAggregator);
|
DECLARE_PTR_TYPEDEFS(StdAggregator);
|
||||||
|
|
||||||
StdAggregator(const String& attr);
|
StdAggregator(const String& attr);
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ namespace icinga
|
|||||||
class SumAggregator : public Aggregator
|
class SumAggregator : public Aggregator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(SumAggregator);
|
DECLARE_PTR_TYPEDEFS(SumAggregator);
|
||||||
|
|
||||||
SumAggregator(const String& attr);
|
SumAggregator(const String& attr);
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ class Filter;
|
|||||||
class Table : public Object
|
class Table : public Object
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(Table);
|
DECLARE_PTR_TYPEDEFS(Table);
|
||||||
|
|
||||||
static Table::Ptr GetByName(const String& name, const String& compat_log_path = "", const unsigned long& from = 0, const unsigned long& until = 0);
|
static Table::Ptr GetByName(const String& name, const String& compat_log_path = "", const unsigned long& from = 0, const unsigned long& until = 0);
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ namespace icinga
|
|||||||
class TimePeriodsTable : public Table
|
class TimePeriodsTable : public Table
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(TimePeriodsTable);
|
DECLARE_PTR_TYPEDEFS(TimePeriodsTable);
|
||||||
|
|
||||||
TimePeriodsTable(void);
|
TimePeriodsTable(void);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user