checkmk-plugins/check_mk-pending_reboot/web/plugins/wato/pending_reboot.py
2019-08-12 11:59:29 +03:00

33 lines
1015 B
Python

#!/usr/bin/python
# 2015 george.mocanu@sphs.ro
register_check_parameters(
subgroup_applications,
"pending_reboot",
_("Windows Pending Reboot Status"),
Dictionary(
elements = [
("levels", # Name of your parameters
Tuple(
title = "Levels for pending reboot check", # Specify a title for this parameters
elements = [
Integer(
title = _("Warning if above"),
unit = _("Hours"),
default_value = 10
),
Integer(
title = _("Critical if above"),
unit = _("Hours"),
default_value = 20
),
]
)
),
],
optional_keys = None, # Always show this subgroup
),
TextAscii( title = "Service name"),
"dict"
)