Hello together,
im developing a check and need some help maybe
The Parameters are developed like this:
def _parameter_valuespec_mycheck_subsystem():
return Dictionary(
elements=[
("levels_percent", Tuple(
title=_("Levels on Subsystem"),
elements=[
Percentage(title=_("Warning at"), default_value=80),
Percentage(title=_("Critical at"), default_value=90)
],
)),
],
)
I can get this values when i define my check with the params option:
def check_mycheck_subsystem(item, params, section):
But how can i get the Conditions into my check?
My Condition of the Check in WATO is this:
def _item_valuespec_mycheck_subsystem():
return TextAscii(title=_("Subsystem Service Checks"))
But how can i get the Values from this Item into my check?
The params definition does only include my values but not the Conditions.
Maybe someone can help me with this.
Best regards