updated check_params for factory settings - dictionary based
This commit is contained in:
parent
29702ef39c
commit
e4683ea1c5
@ -2,48 +2,32 @@
|
|||||||
# -*- encoding: utf-8; py-indent-offset: 4 -*-
|
# -*- encoding: utf-8; py-indent-offset: 4 -*-
|
||||||
# 2014 Marius Pana mp@sphs.ro
|
# 2014 Marius Pana mp@sphs.ro
|
||||||
|
|
||||||
#register_check_parameters(
|
|
||||||
# subgroup_applications,
|
|
||||||
# "exchange_user_mbx_size",
|
|
||||||
# _("MS Exchange User Mailbox Size"),
|
|
||||||
# Dictionary(
|
|
||||||
# elements = [
|
|
||||||
# ("Maximum Mailbox Size",
|
|
||||||
# Integer(
|
|
||||||
# title = _("Warning if above"),
|
|
||||||
# unit = _("MB"),
|
|
||||||
# default_value = 1500
|
|
||||||
# ),
|
|
||||||
# Integer(
|
|
||||||
# title = _("Critical if above"),
|
|
||||||
# unit = _("MB"),
|
|
||||||
# default_value = 2000
|
|
||||||
# ),
|
|
||||||
# ),
|
|
||||||
# ]
|
|
||||||
# ),
|
|
||||||
# None,
|
|
||||||
# "dict"
|
|
||||||
#)
|
|
||||||
|
|
||||||
# -- another attempt -- #
|
|
||||||
|
|
||||||
register_check_parameters(
|
register_check_parameters(
|
||||||
subgroup_applications,
|
subgroup_applications,
|
||||||
"exchange_user_mbx_size",
|
"exchange_user_mbx_size",
|
||||||
_("MS Exchange User Mailbox Size"),
|
_("MS Exchange User Mailbox Size"),
|
||||||
Dictionary(
|
Dictionary(
|
||||||
elements = [
|
elements = [
|
||||||
("levels",
|
("levels", # Name of your parameters
|
||||||
Tuple(
|
Tuple(
|
||||||
title = _("Maximum Exchange Mailbox Size"),
|
title = "Levels for mailboxes", # Specify a title for this parameters
|
||||||
elements = [
|
elements = [
|
||||||
Integer(title = _("Warning if larger than"), default_value = 1500),
|
Integer(
|
||||||
Integer(title = _("Critical if larger than"), default_value = 2000)
|
title = _("Warning if above"),
|
||||||
]
|
unit = _("MB"),
|
||||||
)
|
default_value = 1500
|
||||||
)]
|
),
|
||||||
|
Integer(
|
||||||
|
title = _("Critical if above"),
|
||||||
|
unit = _("MB"),
|
||||||
|
default_value = 2000
|
||||||
|
),
|
||||||
|
]
|
||||||
|
)
|
||||||
|
),
|
||||||
|
],
|
||||||
|
optional_keys = None, # Always show this subgroup
|
||||||
),
|
),
|
||||||
None,
|
TextAscii( title = "Name of mailbox"),
|
||||||
None
|
"dict"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user