mirror of https://github.com/Icinga/icinga2.git
96 lines
3.4 KiB
Plaintext
96 lines
3.4 KiB
Plaintext
/******************************************************************************
|
|
* Icinga 2 *
|
|
* Copyright (C) 2012-2018 Icinga Development Team (https://icinga.com/) *
|
|
* *
|
|
* This program is free software; you can redistribute it and/or *
|
|
* modify it under the terms of the GNU General Public License *
|
|
* as published by the Free Software Foundation; either version 2 *
|
|
* of the License, or (at your option) any later version. *
|
|
* *
|
|
* This program is distributed in the hope that it will be useful, *
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
* GNU General Public License for more details. *
|
|
* *
|
|
* You should have received a copy of the GNU General Public License *
|
|
* along with this program; if not, write to the Free Software Foundation *
|
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
|
|
******************************************************************************/
|
|
|
|
System.assert(Internal.run_with_activation_context(function() {
|
|
template CheckCommand "icinga-check-command" use (IcingaCheck = Internal.IcingaCheck) {
|
|
execute = IcingaCheck
|
|
|
|
vars.icinga_min_version = ""
|
|
}
|
|
|
|
template CheckCommand "cluster-check-command" use (ClusterCheck = Internal.ClusterCheck) {
|
|
execute = ClusterCheck
|
|
}
|
|
|
|
template CheckCommand "cluster-zone-check-command" use (ClusterZoneCheck = Internal.ClusterZoneCheck) {
|
|
execute = ClusterZoneCheck
|
|
}
|
|
|
|
template CheckCommand "plugin-check-command" use (PluginCheck = Internal.PluginCheck) default {
|
|
execute = PluginCheck
|
|
}
|
|
|
|
template NotificationCommand "plugin-notification-command" use (PluginNotification = Internal.PluginNotification) default {
|
|
execute = PluginNotification
|
|
}
|
|
|
|
template EventCommand "plugin-event-command" use (PluginEvent = Internal.PluginEvent) default {
|
|
execute = PluginEvent
|
|
}
|
|
|
|
template CheckCommand "dummy-check-command" use (DummyCheck = Internal.DummyCheck) {
|
|
execute = DummyCheck
|
|
}
|
|
|
|
template CheckCommand "random-check-command" use (RandomCheck = Internal.RandomCheck) {
|
|
execute = RandomCheck
|
|
}
|
|
|
|
template CheckCommand "exception-check-command" use (ExceptionCheck = Internal.ExceptionCheck) {
|
|
execute = ExceptionCheck
|
|
}
|
|
|
|
template CheckCommand "null-check-command" use (NullCheck = Internal.NullCheck) {
|
|
execute = NullCheck
|
|
}
|
|
|
|
template EventCommand "null-event-command" use (NullEvent = Internal.NullEvent) {
|
|
execute = NullEvent
|
|
}
|
|
|
|
template TimePeriod "empty-timeperiod" use (EmptyTimePeriod = Internal.EmptyTimePeriod) {
|
|
update = EmptyTimePeriod
|
|
}
|
|
|
|
template TimePeriod "even-minutes-timeperiod" use (EvenMinutesTimePeriod = Internal.EvenMinutesTimePeriod) {
|
|
update = EvenMinutesTimePeriod
|
|
}
|
|
}))
|
|
|
|
var methods = [
|
|
"IcingaCheck",
|
|
"ClusterCheck",
|
|
"ClusterZoneCheck",
|
|
"PluginCheck",
|
|
"ClrCheck",
|
|
"PluginNotification",
|
|
"PluginEvent",
|
|
"DummyCheck",
|
|
"RandomCheck",
|
|
"ExceptionCheck",
|
|
"NullCheck",
|
|
"NullEvent",
|
|
"EmptyTimePeriod",
|
|
"EvenMinutesTimePeriod"
|
|
]
|
|
|
|
for (method in methods) {
|
|
Internal.remove(method)
|
|
}
|