1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
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
}
template CheckCommand "sleep-check-command" use (SleepCheck = Internal.SleepCheck) {
execute = SleepCheck
vars.sleep_time = 1s
}
}))
var methods = [
"IcingaCheck",
"ClusterCheck",
"ClusterZoneCheck",
"PluginCheck",
"ClrCheck",
"PluginNotification",
"PluginEvent",
"DummyCheck",
"RandomCheck",
"ExceptionCheck",
"NullCheck",
"NullEvent",
"EmptyTimePeriod",
"EvenMinutesTimePeriod",
"SleepCheck"
]
for (method in methods) {
Internal.remove(method)
}
|