[root@icinga ~]# systemctl status icinga-vspheredb.service “journalctl -xe”
● icinga-vspheredb.service - Icinga vSphereDB Daemon
Loaded: loaded (/etc/systemd/system/icinga-vspheredb.service; enabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since Tue 2022-05-10 12:58:36 CEST; 10s ago
Docs: https://icinga.com/docs/icinga-module-for-vsphere/latest/
Process: 16009 ExecStart=/usr/bin/icingacli vspheredb daemon run (code=exited, status=255)
Main PID: 16009 (code=exited, status=255)
May 10 12:58:36 xxxxxxxxx.com systemd[1]: Failed to start Icinga vSphereDB Daemon.
May 10 12:58:36 xxxxxxxxx.com systemd[1]: Unit icinga-vspheredb.service entered failed state.
May 10 12:58:36 xxxxxxxxx.com systemd[1]: icinga-vspheredb.service failed.
Unit journalctl\x20-xe.service could not be found.
well, you have strange notice about your journalctl - but this should’t be anything why your service fails to start:
Actually you have no single log line (posted) which helps to tell why the service failed.
Go ahead and execute manually the daemon run command and check whether problems will be reported or not: sudo -u icingavspheredb /usr/bin/icingacli vspheredb daemon run
You should also check the environment files for existence and set environments manually before executing the command above (if any are present).
hi @ChrissK ,
I have tried just now it show some errors.
[root@icinga-nbg ~]# sudo -u icingavspheredb /usr/bin/icingacli vspheredb daemon run
PHP Fatal error: Uncaught Error: Class ‘gipfl\Log\Logger’ not found in /usr/share/icingaweb2/modules/vspheredb/application/clicommands/Command.php:83
Stack trace: #0 /usr/share/icingaweb2/modules/vspheredb/application/clicommands/Command.php(37): Icinga\Module\Vspheredb\Clicommands\Command->initializeLogger() #1 /usr/share/php/Icinga/Cli/Loader.php(266): Icinga\Module\Vspheredb\Clicommands\Command->init() #2 /usr/share/php/Icinga/Application/Cli.php(164): Icinga\Cli\Loader->dispatch() #3 /usr/share/php/Icinga/Application/Cli.php(154): Icinga\Application\Cli->dispatchOnce() #4 /usr/bin/icingacli(7): Icinga\Application\Cli->dispatch() #5 {main}
thrown in /usr/share/icingaweb2/modules/vspheredb/application/clicommands/Command.php on line 83
Fatal error: Uncaught Error: Class ‘gipfl\Log\Logger’ not found in /usr/share/icingaweb2/modules/vspheredb/application/clicommands/Command.php:83
Stack trace: #0 /usr/share/icingaweb2/modules/vspheredb/application/clicommands/Command.php(37): Icinga\Module\Vspheredb\Clicommands\Command->initializeLogger() #1 /usr/share/php/Icinga/Cli/Loader.php(266): Icinga\Module\Vspheredb\Clicommands\Command->init() #2 /usr/share/php/Icinga/Application/Cli.php(164): Icinga\Cli\Loader->dispatch() #3 /usr/share/php/Icinga/Application/Cli.php(154): Icinga\Application\Cli->dispatchOnce() #4 /usr/bin/icingacli(7): Icinga\Application\Cli->dispatch() #5 {main}
thrown in /usr/share/icingaweb2/modules/vspheredb/application/clicommands/Command.php on line 83
and the both icinga-vspheredb are missing from the EnvironmentFile path.
EnvironmentFile=-/etc/default/icinga-vspheredb
EnvironmentFile=-/etc/sysconfig/icinga-vspheredb
You seem to have made a mistake during the installation. have you met all the requirements stated in the documentation? can you uninstall and reinstall the module once?
Package php-soap-7.2.34-10.el7.remi.x86_64 already installed and latest version
Package php-cli-7.2.34-10.el7.remi.x86_64 already installed and latest version
Package php-process-7.2.34-10.el7.remi.x86_64 already installed and latest version
Server version: 8.0.29 MySQL Community Server - GPL
it seems all the dependencies are fine, but I don’t know why and where exactly the issue.
cinga Web 2 (>= 2.8)
PHP (>= 7.1 or 8.x - 64bit only)
php-soap
php-pcntl (might already be included in your PHP binary)
php-posix (under RHEL/CentOS this is php-process, or rh-php7x-php-process)
MySQL (>= 5.7) or MariaDB (>= 10.3)
The following Icinga modules must be installed and enabled:
Incubator (>=0.16)
If you are using Icinga Web < 2.9.0, the following modules are also required
ipl (>=0.5.0)
reactbundle (>=0.8.0)
Package php-soap-7.2.34-10.el7.remi.x86_64 already installed and latest version
Package php-cli-7.2.34-10.el7.remi.x86_64 already installed and latest version
Package php-process-7.2.34-10.el7.remi.x86_64 already installed and latest version
Server version: 8.0.29 MySQL Community Server - GPL