Hi all!
When i set up Icingaweb2 (v2.11.2-1), i confused…
Documentation (https://icinga.com/docs/icinga2/latest/) says that IDO database should be MySQL or PostgreSQL. But installation wizard allows to additionally select SQLite.
Documentation has no words about SQLite and google search shows me nothing relevant.
Attempt to use SQLite failed due to errors.
Cannot find the IDO schema. Please verify that the given database contains the schema and that the configured user has access to it.
Due to fails find schema on GitHab i tried to move schema from postgresql. Then Icingaweb2 showed me another error.
There is currently no icinga instance writing to the IDO. Make sure that a icinga instance is configured and able to write to the IDO.
If i skip validation then icingaweb2 crashes:
Undefined index: host
#0 /usr/share/icingaweb2/modules/monitoring/library/Monitoring/BackendStep.php(98): Icinga\Application\ApplicationBootstrap->Icinga\Application\{closure}(Integer, String, String, Integer, Array)
#1 /usr/share/icingaweb2/modules/setup/library/Setup/Setup.php(75): Icinga\Module\Monitoring\BackendStep->getSummary()
#2 /usr/share/icingaweb2/modules/monitoring/library/Monitoring/MonitoringWizard.php(50): Icinga\Module\Setup\Setup->getSummary()
#3 /usr/share/php/Icinga/Web/Wizard.php(271): Icinga\Module\Monitoring\MonitoringWizard->setupPage(Object(Icinga\Module\Setup\Forms\SummaryPage), Object(Icinga\Web\Request))
#4 /usr/share/php/Icinga/Web/Wizard.php(264): Icinga\Web\Wizard->handleRequest(Object(Icinga\Web\Request))
#5 /usr/share/icingaweb2/modules/setup/application/controllers/IndexController.php(46): Icinga\Web\Wizard->handleRequest()
#6 /usr/share/icingaweb2/library/vendor/Zend/Controller/Action.php(507): Icinga\Module\Setup\Controllers\IndexController->indexAction()
#7 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch(String)
#8 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(937): Icinga\Web\Controller\Dispatcher->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#9 /usr/share/php/Icinga/Application/Web.php(300): Zend_Controller_Front->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#10 /usr/share/php/Icinga/Application/webrouter.php(99): Icinga\Application\Web->dispatch()
#11 /usr/share/icingaweb2/public/index.php(4): require_once(String)
#12 {main}
Additional info:
icinga2 - The Icinga 2 network monitoring daemon (version: 2.11.2-1)
System information:
Platform: CentOS Linux
Platform version: 7 (Core)
Kernel: Linux
Kernel version: 3.10.0-862.el7.x86_64
Architecture: x86_64
Is it really possible to use SQLite? How to properly configured it?
Thanks!