-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommands.conf
More file actions
31 lines (28 loc) · 1.14 KB
/
commands.conf
File metadata and controls
31 lines (28 loc) · 1.14 KB
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
object CheckCommand "systemd_service" {
command = [ "/usr/local/bin/check_systemd_service" ]
arguments = {
"-n" = {
value = "$systemd_service_name$"
description = "Service Label"
}
"-u" = {
value = "$systemd_service_unit$"
description = "Unit Name"
}
"-w" = {
value = "$systemd_service_warning$"
description = "Exit with WARNING status if updates exceeds this value"
}
"-c" = {
value = "$systemd_service_critical$"
description = "Exit with CRITICAL status if updates exceeds this value"
}
"-s" = {
value = "$systemd_service_state$"
description = "State when service is not active"
}
}
vars.zypper_wupdates = 10
vars.zypper_cupdates = 50
vars.systemd_service_state = 2
}