mirror of
				https://github.com/Icinga/icinga2.git
				synced 2025-11-04 05:34:12 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
		
			700 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			700 B
		
	
	
	
		
			C++
		
	
	
	
	
	
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
 | 
						|
 | 
						|
#ifndef PLUGINCHECKTASK_H
 | 
						|
#define PLUGINCHECKTASK_H
 | 
						|
 | 
						|
#include "methods/i2-methods.hpp"
 | 
						|
#include "base/process.hpp"
 | 
						|
#include "icinga/service.hpp"
 | 
						|
 | 
						|
namespace icinga
 | 
						|
{
 | 
						|
 | 
						|
/**
 | 
						|
 * Implements service checks based on external plugins.
 | 
						|
 *
 | 
						|
 * @ingroup methods
 | 
						|
 */
 | 
						|
class PluginCheckTask
 | 
						|
{
 | 
						|
public:
 | 
						|
	static void ScriptFunc(const Checkable::Ptr& service, const CheckResult::Ptr& cr,
 | 
						|
		const Dictionary::Ptr& resolvedMacros, bool useResolvedMacros);
 | 
						|
 | 
						|
private:
 | 
						|
	PluginCheckTask();
 | 
						|
 | 
						|
	static void ProcessFinishedHandler(const Checkable::Ptr& service,
 | 
						|
		const CheckResult::Ptr& cr, const Value& commandLine, const ProcessResult& pr);
 | 
						|
};
 | 
						|
 | 
						|
}
 | 
						|
 | 
						|
#endif /* PLUGINCHECKTASK_H */
 |