From d6be2e777cd620be67d4eb5e1adb0f262a25882a Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 30 Mar 2016 19:19:00 +0200 Subject: [PATCH] DirectorObjectForm: add max_check_attempts --- library/Director/Web/Form/DirectorObjectForm.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/library/Director/Web/Form/DirectorObjectForm.php b/library/Director/Web/Form/DirectorObjectForm.php index 09c8d5d6..d4391c47 100644 --- a/library/Director/Web/Form/DirectorObjectForm.php +++ b/library/Director/Web/Form/DirectorObjectForm.php @@ -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',