-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommands-vbs.conf
52 lines (44 loc) · 1.05 KB
/
commands-vbs.conf
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
template CheckCommand "vbs-local" {
import "plugin-check-command"
import "ipv4-or-ipv6"
command = [
"c:/windows/system32/cscript.exe",
"//T:$vbs_timeout$",
"//NoLogo",
PrefixDir + "/etc/icinga2/scripts/$vbs_script$"
]
vars.vbs_timeout = 30
}
object CheckCommand "vbs-local-updates" {
import "vbs-local"
vars.vbs_script = "check_updates.vbs"
}
object CheckCommand "vbs-local-time" {
import "vbs-local"
vars.vbs_script = "check_time.vbs"
arguments = {
"-S" = {
description = "serverlist one or more servers, comma seperated"
value = "$ntp_address$"
required = true
skip_key = true
}
"-w" = {
description = "warning offset in seconds"
value = "$ntp_warning$"
order = 1
required = true
skip_key = true
}
"-c" = {
description = "critical offset in seconds"
value = "$ntp_critical$"
order = 2
required = true
skip_key = true
}
}
vars.ntp_address = "$check_address$"
vars.ntp_warning = 60
vars.ntp_critical = 120
}