mirror of https://github.com/Icinga/icinga2.git
parent
c30d64a261
commit
93d390873d
|
@ -17,20 +17,26 @@
|
||||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
#ifndef DAEMONUTILIT_H
|
#ifndef DAEMONUTILITY_H
|
||||||
#define DAEMONUTILIT_H
|
#define DAEMONUTILITY_H
|
||||||
|
|
||||||
//#include "base/i2-base.hpp"
|
#include "cli/i2-cli.hpp"
|
||||||
#include "base/string.hpp"
|
#include "base/string.hpp"
|
||||||
#include <boost/program_options.hpp>
|
#include <boost/program_options.hpp>
|
||||||
|
|
||||||
namespace icinga
|
namespace icinga
|
||||||
{
|
{
|
||||||
class DaemonUtility
|
|
||||||
|
/**
|
||||||
|
* @ingroup cli
|
||||||
|
*/
|
||||||
|
class I2_CLI_API DaemonUtility
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static bool ValidateConfigFiles(const std::vector<std::string>& configs, const String& objectsFile = String());
|
static bool ValidateConfigFiles(const std::vector<std::string>& configs, const String& objectsFile = String());
|
||||||
static bool LoadConfigFiles(const std::vector<std::string>& configs, const String& appType, const String& objectsFile = String(), const String& varsfile = String());
|
static bool LoadConfigFiles(const std::vector<std::string>& configs, const String& appType, const String& objectsFile = String(), const String& varsfile = String());
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* DAEMONULITIY_H */
|
#endif /* DAEMONULITIY_H */
|
|
@ -21,6 +21,7 @@
|
||||||
#define FEATUREUTILITY_H
|
#define FEATUREUTILITY_H
|
||||||
|
|
||||||
#include "base/i2-base.hpp"
|
#include "base/i2-base.hpp"
|
||||||
|
#include "cli/i2-cli.hpp"
|
||||||
#include "base/string.hpp"
|
#include "base/string.hpp"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
@ -31,7 +32,7 @@ namespace icinga
|
||||||
/**
|
/**
|
||||||
* @ingroup cli
|
* @ingroup cli
|
||||||
*/
|
*/
|
||||||
class FeatureUtility
|
class I2_CLI_API FeatureUtility
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static String GetFeaturesAvailablePath(void);
|
static String GetFeaturesAvailablePath(void);
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#define AGENTUTILITY_H
|
#define AGENTUTILITY_H
|
||||||
|
|
||||||
#include "base/i2-base.hpp"
|
#include "base/i2-base.hpp"
|
||||||
|
#include "cli/i2-cli.hpp"
|
||||||
#include "base/dictionary.hpp"
|
#include "base/dictionary.hpp"
|
||||||
#include "base/array.hpp"
|
#include "base/array.hpp"
|
||||||
#include "base/value.hpp"
|
#include "base/value.hpp"
|
||||||
|
@ -33,7 +34,7 @@ namespace icinga
|
||||||
/**
|
/**
|
||||||
* @ingroup cli
|
* @ingroup cli
|
||||||
*/
|
*/
|
||||||
class NodeUtility
|
class I2_CLI_API NodeUtility
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static String GetRepositoryPath(void);
|
static String GetRepositoryPath(void);
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
#define OBJECTLISTUTILITY_H
|
#define OBJECTLISTUTILITY_H
|
||||||
|
|
||||||
#include "base/i2-base.hpp"
|
#include "base/i2-base.hpp"
|
||||||
|
#include "cli/i2-cli.hpp"
|
||||||
#include "base/dictionary.hpp"
|
#include "base/dictionary.hpp"
|
||||||
#include "base/array.hpp"
|
#include "base/array.hpp"
|
||||||
#include "base/value.hpp"
|
#include "base/value.hpp"
|
||||||
|
@ -27,16 +28,15 @@
|
||||||
|
|
||||||
namespace icinga
|
namespace icinga
|
||||||
{
|
{
|
||||||
class ObjectListUtility
|
|
||||||
|
/**
|
||||||
|
* @ingroup cli
|
||||||
|
*/
|
||||||
|
class I2_CLI_API ObjectListUtility
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/*
|
|
||||||
* Print decoded json blob *message* to *fp*, filtering by *name_filter* and *type_filter*.
|
|
||||||
* An enumeration by type is written to *type_count*
|
|
||||||
* *first* needs to be true
|
|
||||||
* returns true if object was printed
|
|
||||||
*/
|
|
||||||
static bool PrintObject(std::ostream& fp, bool& first, const String& message, std::map<String, int>& type_count, const String& name_filter, const String& type_filter);
|
static bool PrintObject(std::ostream& fp, bool& first, const String& message, std::map<String, int>& type_count, const String& name_filter, const String& type_filter);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static void PrintProperties(std::ostream& fp, const Dictionary::Ptr& props, const Dictionary::Ptr& debug_hints, int indent);
|
static void PrintProperties(std::ostream& fp, const Dictionary::Ptr& props, const Dictionary::Ptr& debug_hints, int indent);
|
||||||
static void PrintHints(std::ostream& fp, const Dictionary::Ptr& debug_hints, int indent);
|
static void PrintHints(std::ostream& fp, const Dictionary::Ptr& debug_hints, int indent);
|
||||||
|
@ -44,5 +44,7 @@ private:
|
||||||
static void PrintValue(std::ostream& fp, const Value& val);
|
static void PrintValue(std::ostream& fp, const Value& val);
|
||||||
static void PrintArray(std::ostream& fp, const Array::Ptr& arr);
|
static void PrintArray(std::ostream& fp, const Array::Ptr& arr);
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* OBJECTLISTUTILITY_H */
|
#endif /* OBJECTLISTUTILITY_H */
|
|
@ -21,6 +21,7 @@
|
||||||
#define PKIUTILITY_H
|
#define PKIUTILITY_H
|
||||||
|
|
||||||
#include "base/i2-base.hpp"
|
#include "base/i2-base.hpp"
|
||||||
|
#include "cli/i2-cli.hpp"
|
||||||
#include "base/dictionary.hpp"
|
#include "base/dictionary.hpp"
|
||||||
#include "base/string.hpp"
|
#include "base/string.hpp"
|
||||||
|
|
||||||
|
@ -30,7 +31,7 @@ namespace icinga
|
||||||
/**
|
/**
|
||||||
* @ingroup cli
|
* @ingroup cli
|
||||||
*/
|
*/
|
||||||
class PkiUtility
|
class I2_CLI_API PkiUtility
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static String GetPkiPath(void);
|
static String GetPkiPath(void);
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#define REPOSITORYUTILITY_H
|
#define REPOSITORYUTILITY_H
|
||||||
|
|
||||||
#include "base/i2-base.hpp"
|
#include "base/i2-base.hpp"
|
||||||
|
#include "cli/i2-cli.hpp"
|
||||||
#include "base/dictionary.hpp"
|
#include "base/dictionary.hpp"
|
||||||
#include "base/array.hpp"
|
#include "base/array.hpp"
|
||||||
#include "base/value.hpp"
|
#include "base/value.hpp"
|
||||||
|
@ -33,7 +34,7 @@ namespace icinga
|
||||||
/**
|
/**
|
||||||
* @ingroup cli
|
* @ingroup cli
|
||||||
*/
|
*/
|
||||||
class RepositoryUtility
|
class I2_CLI_API RepositoryUtility
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static Dictionary::Ptr GetArgumentAttributes(const std::vector<std::string>& arguments);
|
static Dictionary::Ptr GetArgumentAttributes(const std::vector<std::string>& arguments);
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#define VARIABLEUTILITY_H
|
#define VARIABLEUTILITY_H
|
||||||
|
|
||||||
#include "base/i2-base.hpp"
|
#include "base/i2-base.hpp"
|
||||||
|
#include "cli/i2-cli.hpp"
|
||||||
#include "base/dictionary.hpp"
|
#include "base/dictionary.hpp"
|
||||||
#include "base/string.hpp"
|
#include "base/string.hpp"
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
|
@ -31,7 +32,7 @@ namespace icinga
|
||||||
/**
|
/**
|
||||||
* @ingroup cli
|
* @ingroup cli
|
||||||
*/
|
*/
|
||||||
class VariableUtility
|
class I2_CLI_API VariableUtility
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static Value GetVariable(const String& name);
|
static Value GetVariable(const String& name);
|
||||||
|
@ -40,7 +41,6 @@ public:
|
||||||
private:
|
private:
|
||||||
VariableUtility(void);
|
VariableUtility(void);
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
#ifndef COLUMN_H
|
#ifndef COLUMN_H
|
||||||
#define COLUMN_H
|
#define COLUMN_H
|
||||||
|
|
||||||
#include "livestatus/i2-livestatus.hpp"
|
|
||||||
#include "livestatus/i2-livestatus.hpp"
|
#include "livestatus/i2-livestatus.hpp"
|
||||||
#include "base/value.hpp"
|
#include "base/value.hpp"
|
||||||
#include <boost/function.hpp>
|
#include <boost/function.hpp>
|
||||||
|
|
Loading…
Reference in New Issue