Failed to start Icinga vSphereDB Daemon

Hello, Community
I hope you can help me with the problem I’m facing right now. please help.
Documents followed to install vspheredb : https://github.com/Icinga/icingaweb2-module-vspheredb/blob/master/doc/01-Installation.md

[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.

The following line in the installation readme should have copied the needed file:

cp -f “${TARGET_DIR}/contrib/systemd/icinga-vspheredb.service” /etc/systemd/system/

Please check if the file exists in source path (TARGET_DIR)

Your can also download the file from here:
https://raw.githubusercontent.com/Icinga/icingaweb2-module-vspheredb/v1.4.0/contrib/systemd/icinga-vspheredb.service

@nexo1960 thank you for your reply I will check and update.

@nexo1960
The file is there at the source path, is this something related to file permission or ownership issue?

[root@icinga ~]# cd /etc/systemd/system/
total 20
-rwxr-xr-x 1 root root 526 May 10 12:57 icinga-vspheredb.service

[root@icinga-nbg system]# cat icinga-vspheredb.service
[Unit]
Description=Icinga vSphereDB Daemon
Documentation=https://icinga.com/docs/icinga-module-for-vsphere/latest/
Wants=network.target

[Service]
Type=notify
EnvironmentFile=-/etc/default/icinga-vspheredb
EnvironmentFile=-/etc/sysconfig/icinga-vspheredb
ExecStart=/usr/bin/icingacli vspheredb daemon run
; For debugging purposes:
; ExecStart=/usr/bin/icingacli vspheredb daemon run --trace --debug
User=icingavspheredb

NotifyAccess=main
WatchdogSec=10

Restart=on-failure
RestartSec=30

[Install]
WantedBy=multi-user.target

Hi there,

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).

BR,
Chris

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

Screenshot from 2022-05-11 10-26-15

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?

https://icinga.com/docs/icinga-module-for-vsphere/latest/doc/01-Installation/

Icinga 2 network monitoring daemon (version: r2.13.3-1)
Icinga Web 2 2.10.1
Git Commit 974729a6421c17fdb8bb1931623107cf6a90fc7e
PHP Version 7.3.29
MODULE VERSION
doc 2.10.1
graphite 1.1.0
incubator 0.16.0
map 1.0.4
monitoring 2.10.1
setup 2.10.1
translation 2.10.1
vspheredb 1.4.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

it seems all the dependencies are fine, but I don’t know why and where exactly the issue.

reinstall the module also done several times

Have they met these requirements

I

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)

@ShowMeYourSkil yes.

MODULE VERSION STATE DESCRIPTION
doc 2.10.1 enabled Documentation module
graphite 1.1.0 enabled Icinga Graphite module
incubator 0.16.0 enabled Incubator provides bleeding-edge libraries
map 1.0.4 enabled Map - Visualize your hosts and service status
monitoring 2.10.1 enabled Icinga monitoring module
setup 2.10.1 enabled Setup module
translation 2.10.1 enabled Translation module
vspheredb 1.4.0 enabled VMware vSphere DB

Icinga 2 network monitoring daemon (version: r2.13.3-1)
Icinga Web 2 2.10.1
Git Commit 974729a6421c17fdb8bb1931623107cf6a90fc7e
PHP Version 7.3.29
MODULE VERSION
doc 2.10.1
graphite 1.1.0
incubator 0.16.0
map 1.0.4
monitoring 2.10.1
setup 2.10.1
translation 2.10.1
vspheredb 1.4.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

@pranavmurali1994
Hi,
is this solved already?

@Tqnsls No :frowning: , still this ticket is pending from my side unable to resolve.