diff --git a/modules/monitoring/application/forms/Setup/BackendPage.php b/modules/monitoring/application/forms/Setup/BackendPage.php index e78023f66..2011c482d 100644 --- a/modules/monitoring/application/forms/Setup/BackendPage.php +++ b/modules/monitoring/application/forms/Setup/BackendPage.php @@ -34,6 +34,7 @@ class BackendPage extends Form 'name', array( 'required' => true, + 'value' => 'icinga', 'label' => mt('monitoring', 'Backend Name'), 'description' => mt('monitoring', 'The identifier of this backend') ) diff --git a/modules/monitoring/application/forms/Setup/IdoResourcePage.php b/modules/monitoring/application/forms/Setup/IdoResourcePage.php index 353bbadcd..03c478153 100644 --- a/modules/monitoring/application/forms/Setup/IdoResourcePage.php +++ b/modules/monitoring/application/forms/Setup/IdoResourcePage.php @@ -53,6 +53,7 @@ class IdoResourcePage extends Form $livestatusResourceForm = new DbResourceForm(); $this->addElements($livestatusResourceForm->createElements($formData)->getElements()); + $this->getElement('name')->setValue('icinga_ido'); } public function isValid($data) diff --git a/modules/monitoring/application/forms/Setup/InstancePage.php b/modules/monitoring/application/forms/Setup/InstancePage.php index 4f41ddd9c..cbf7df78f 100644 --- a/modules/monitoring/application/forms/Setup/InstancePage.php +++ b/modules/monitoring/application/forms/Setup/InstancePage.php @@ -36,5 +36,6 @@ class InstancePage extends Form $instanceConfigForm = new InstanceConfigForm(); $instanceConfigForm->createElements($formData); $this->addElements($instanceConfigForm->getElements()); + $this->getElement('name')->setValue('icinga'); } } diff --git a/modules/monitoring/application/forms/Setup/LivestatusResourcePage.php b/modules/monitoring/application/forms/Setup/LivestatusResourcePage.php index 4b52cb5c4..ddb942d50 100644 --- a/modules/monitoring/application/forms/Setup/LivestatusResourcePage.php +++ b/modules/monitoring/application/forms/Setup/LivestatusResourcePage.php @@ -53,6 +53,7 @@ class LivestatusResourcePage extends Form $livestatusResourceForm = new LivestatusResourceForm(); $this->addElements($livestatusResourceForm->createElements($formData)->getElements()); + $this->getElement('name')->setValue('icinga_livestatus'); } public function isValid($data) diff --git a/modules/setup/application/forms/AuthBackendPage.php b/modules/setup/application/forms/AuthBackendPage.php index 657f45d27..1945171eb 100644 --- a/modules/setup/application/forms/AuthBackendPage.php +++ b/modules/setup/application/forms/AuthBackendPage.php @@ -102,6 +102,7 @@ class AuthBackendPage extends Form } $this->addElements($backendForm->getElements()); + $this->getElement('name')->setValue('icingaweb'); } /** diff --git a/modules/setup/application/forms/DbResourcePage.php b/modules/setup/application/forms/DbResourcePage.php index d192de60b..d55e198cb 100644 --- a/modules/setup/application/forms/DbResourcePage.php +++ b/modules/setup/application/forms/DbResourcePage.php @@ -64,6 +64,7 @@ class DbResourcePage extends Form $resourceForm = new DbResourceForm(); $this->addElements($resourceForm->createElements($formData)->getElements()); + $this->getElement('name')->setValue('icingaweb_db'); $this->addElement( 'hidden', 'prefix', diff --git a/modules/setup/application/forms/LdapResourcePage.php b/modules/setup/application/forms/LdapResourcePage.php index a98254381..a53bd74e8 100644 --- a/modules/setup/application/forms/LdapResourcePage.php +++ b/modules/setup/application/forms/LdapResourcePage.php @@ -62,6 +62,7 @@ class LdapResourcePage extends Form $resourceForm = new LdapResourceForm(); $this->addElements($resourceForm->createElements($formData)->getElements()); + $this->getElement('name')->setValue('icingaweb_ldap'); } /**