2019-02-25 14:48:22 +01:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
2015-01-22 12:10:32 +01:00
|
|
|
|
2015-02-26 11:04:57 +01:00
|
|
|
#ifndef DAEMONUTILITY_H
|
|
|
|
#define DAEMONUTILITY_H
|
2015-01-22 12:10:32 +01:00
|
|
|
|
2015-02-26 11:04:57 +01:00
|
|
|
#include "cli/i2-cli.hpp"
|
2015-11-19 19:38:20 +01:00
|
|
|
#include "config/configitem.hpp"
|
2015-01-22 12:10:32 +01:00
|
|
|
#include "base/string.hpp"
|
|
|
|
#include <boost/program_options.hpp>
|
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
2015-02-26 11:04:57 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @ingroup cli
|
|
|
|
*/
|
2017-12-31 07:22:16 +01:00
|
|
|
class DaemonUtility
|
2015-01-22 12:10:32 +01:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
static bool ValidateConfigFiles(const std::vector<std::string>& configs, const String& objectsFile = String());
|
2015-11-19 19:38:20 +01:00
|
|
|
static bool LoadConfigFiles(const std::vector<std::string>& configs, std::vector<ConfigItem::Ptr>& newItems,
|
2017-12-19 15:50:05 +01:00
|
|
|
const String& objectsFile = String(), const String& varsfile = String());
|
2015-01-22 12:10:32 +01:00
|
|
|
};
|
2015-02-26 11:04:57 +01:00
|
|
|
|
2015-01-22 12:10:32 +01:00
|
|
|
}
|
2015-02-26 11:04:57 +01:00
|
|
|
|
|
|
|
#endif /* DAEMONULITIY_H */
|