abstract object Notification "plugin-notification" {
methods = {
- notify = "native::PluginNotification"
+ notify = "PluginNotification"
}
}
abstract object Service "null-service" inherits "itl-service" {
methods = {
- check = "native::NullCheck"
+ check = "NullCheck"
}
}
abstract object Service "plugin-service" inherits "itl-service" {
methods = {
- check = "native::PluginCheck"
+ check = "PluginCheck"
}
}
%attribute string "__type",
%attribute dictionary "methods" {
- %validator "native::ValidateMethods",
+ %validator "ValidateMethods",
%attribute string "*",
},
}
},
%attribute dictionary "services" {
- %validator "native::ValidateServiceDictionary",
+ %validator "ValidateServiceDictionary",
%attribute string "*",
%attribute dictionary "*" {
using namespace icinga;
-REGISTER_SCRIPTFUNCTION("native::ValidateMethods", &ConfigType::ValidateMethods);
+REGISTER_SCRIPTFUNCTION("ValidateMethods", &ConfigType::ValidateMethods);
ConfigType::ConfigType(const String& name, const DebugInfo& debuginfo)
: m_Name(name), m_RuleList(boost::make_shared<TypeRuleList>()), m_DebugInfo(debuginfo)
map<String, map<String, weak_ptr<Service> > > Host::m_ServicesCache;
bool Host::m_ServicesCacheValid = true;
-REGISTER_SCRIPTFUNCTION("native::ValidateServiceDictionary", &Host::ValidateServiceDictionary);
+REGISTER_SCRIPTFUNCTION("ValidateServiceDictionary", &Host::ValidateServiceDictionary);
static AttributeDescription hostAttributes[] = {
{ "slave_services", Attribute_Transient }
using namespace icinga;
-REGISTER_SCRIPTFUNCTION("native::NullCheck", &NullCheckTask::ScriptFunc);
+REGISTER_SCRIPTFUNCTION("NullCheck", &NullCheckTask::ScriptFunc);
void NullCheckTask::ScriptFunc(const ScriptTask::Ptr& task, const vector<Value>& arguments)
{
using namespace icinga;
-REGISTER_SCRIPTFUNCTION("native::PluginNotification", &PluginNotificationTask::ScriptFunc);
+REGISTER_SCRIPTFUNCTION("PluginNotification", &PluginNotificationTask::ScriptFunc);
PluginNotificationTask::PluginNotificationTask(const ScriptTask::Ptr& task, const Process::Ptr& process,
const String& service, const String& command)