DirectorObjectForm: add max_check_attempts

This commit is contained in:
Thomas Gelf 2016-03-30 19:19:00 +02:00
parent 755112eac5
commit d6be2e777c
1 changed files with 12 additions and 0 deletions

View File

@ -1153,6 +1153,17 @@ abstract class DirectorObjectForm extends QuickForm
)
);
$this->addElement(
'text',
'max_check_attempts',
array(
'label' => $this->translate('Max check attempts'),
'description' => $this->translate(
'Defines after how many check attempts a new hard state is reached'
)
)
);
$periods = $this->db->enumTimeperiods();
if (!empty($periods)) {
@ -1209,6 +1220,7 @@ abstract class DirectorObjectForm extends QuickForm
$elements = array(
'check_interval',
'retry_interval',
'max_check_attempts',
'check_period_id',
'enable_active_checks',
'enable_passive_checks',