Bug#1039475: icingaweb2 backend is not configured correctly
Package: debian-edu-config
Version: 2.12.32
After logging into icingaweb2 after a fresh installation of the main server,
the following PHP exception can be found in the logs:
Icinga\Exception\ConfigurationError in /usr/share/icingaweb2/modules/monitoring/library/Monitoring/Backend/MonitoringBackend.php:178 with message: No backend has been configured
#0 /usr/share/icingaweb2/modules/monitoring/library/Monitoring/Backend/MonitoringBackend.php(76): Icinga\Module\Monitoring\Backend\MonitoringBackend::loadConfig()
#1 /usr/share/icingaweb2/modules/monitoring/library/Monitoring/Controller.php(32): Icinga\Module\Monitoring\Backend\MonitoringBackend::instance()
#2 /usr/share/php/Icinga/Web/Controller/ModuleActionController.php(28): Icinga\Module\Monitoring\Controller->moduleInit()
#3 /usr/share/php/Icinga/Web/Controller/ActionController.php(169): Icinga\Web\Controller\ModuleActionController->prepareInit()
#4 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(59): Icinga\Web\Controller\ActionController->__construct()
#5 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(937): Icinga\Web\Controller\Dispatcher->dispatch()
#6 /usr/share/php/Icinga/Application/Web.php(290): Zend_Controller_Front->dispatch()
#7 /usr/share/php/Icinga/Application/webrouter.php(105): Icinga\Application\Web->dispatch()
#8 /usr/share/icingaweb2/public/index.php(4): require_once(String)
#9 {main}
However a backend has been configured by edu-icinga-setup in
/etc/icingaweb2/modules/monitoring/backends.ini:
[icinga]
type = "ido"
resource = "icinga_ido"
The resource referred to is also defined in /etc/icingaweb2/resources.ini:
…
[icinga_ido]
type = "db"
db = "mysql"
host = "localhost"
port = ""
dbname = "icingadb"
username = "icinga2"
password = "v64nhbe27dfBjR3T"
charset = ""
use_ssl = "0"
--
Guido Berhoerster
Reply to: