Problem with businessprocess in Version: 2.4.0

On Buisnessprocess we got a error with DateTime / Int

Unsupported operand types: DateTime / int


#0 /usr/share/icingaweb2/modules/businessprocess/library/Businessprocess/State/IcingaDbState.php(92): Icinga\Module\Businessprocess\State\IcingaDbState->handleDbRow() #1 /usr/share/icingaweb2/modules/businessprocess/library/Businessprocess/State/IcingaDbState.php(42): Icinga\Module\Businessprocess\State\IcingaDbState->reallyRetrieveStatesFromBackend() #2 /usr/share/icingaweb2/modules/businessprocess/library/Businessprocess/State/IcingaDbState.php(32): Icinga\Module\Businessprocess\State\IcingaDbState->retrieveStatesFromBackend() #3 /usr/share/icingaweb2/modules/businessprocess/library/Businessprocess/Web/Component/Dashboard.php(101): Icinga\Module\Businessprocess\State\IcingaDbState::apply() #4 /usr/share/icingaweb2/modules/businessprocess/library/Businessprocess/Web/Component/Dashboard.php(124): Icinga\Module\Businessprocess\Web\Component\Dashboard->__construct() #5 /usr/share/icingaweb2/modules/businessprocess/application/controllers/IndexController.php(17): Icinga\Module\Businessprocess\Web\Component\Dashboard::create() #6 /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Controller/Action.php(516): Icinga\Module\Businessprocess\Controllers\IndexController->indexAction() #7 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch() #8 /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Controller/Front.php(954): Icinga\Web\Controller\Dispatcher->dispatch() #9 /usr/share/php/Icinga/Application/Web.php(294): Zend_Controller_Front->dispatch() #10 /usr/share/php/Icinga/Application/webrouter.php(105): Icinga\Application\Web->dispatch() #11 /usr/share/icingaweb2/public/index.php(4): require_once(String) #12 {main}

##############
Name businessprocess
Zustand enabled
Version 2.4.0
Git Commit 185360bfb6c08417654ff6bc2ba62d7a58a26765
Beschreibung A Business Process viewer and modeler
Provides a web-based process modeler for Icinga. It integrates as a module into Icinga Web 2 and provides a plugin check command for Icinga. Tile and tree views can be shown inline, as dashlets or fullscreen. All of those for whole processes or just parts of them.
Hooks into the monitoring or icingadb module to show Business Impact for a specific host or service and provides a Business Impact Simulation mode to visualize the influence of a potential outage.
Supports legacy BPaddon config files.
Abhängigkeiten Bibliotheken icinga-php-library >=0.8.0


icinga-php-thirdparty >=0.10.0

Module icingadb >=1.0.0
##################
root@icinga2:~# icinga2 --version
icinga2 - The Icinga 2 network monitoring daemon (version: r2.14.0-1)

Copyright (c) 2012-2023 Icinga GmbH (https://icinga.com/)
License GPLv2+: GNU GPL version 2 or later https://gnu.org/licenses/gpl2.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

System information:
Platform: Ubuntu
Platform version: 22.04.3 LTS (Jammy Jellyfish)
Kernel: Linux
Kernel version: 5.15.0-88-generic
Architecture: x86_64

Build information:
Compiler: GNU 11.3.0
Build host: runner-hh8q3bz2-project-575-concurrent-0
OpenSSL version: OpenSSL 3.0.2 15 Mar 2022

Application information:

General paths:
Config directory: /etc/icinga2
Data directory: /var/lib/icinga2
Log directory: /var/log/icinga2
Cache directory: /var/cache/icinga2
Spool directory: /var/spool/icinga2
Run directory: /run/icinga2

Old paths (deprecated):
Installation root: /usr
Sysconf directory: /etc
Run directory (base): /run
Local state directory: /var

Internal paths:
Package data directory: /usr/share/icinga2
State path: /var/lib/icinga2/icinga2.state
Modified attributes path: /var/lib/icinga2/modified-attributes.conf
Objects path: /var/cache/icinga2/icinga2.debug
Vars path: /var/cache/icinga2/icinga2.vars
PID path: /run/icinga2/icinga2.pid
##############
root@icinga2:~# php -version
PHP 8.1.2-1ubuntu2.14 (cli) (built: Aug 18 2023 11:41:11) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
with Zend OPcache v8.1.2-1ubuntu2.14, Copyright (c), by Zend Technologies

Hello :slight_smile:
Update the module at first and see if that fixes your problem.
You are two releases behind.
v2.4.1 fixes a bug with Datetime: Error with IcingaDB-Web 1.1.0: Object of class DateTime could not be converted to number · Issue #411 · Icinga/icingaweb2-module-businessprocess · GitHub
And v2.5 has also many fixes: Releasing Icinga Business Process Modeling v2.5

PS: I recommend either watching releases of your installed modules via github
image
or subscribing to the icinga blog via rss.

Working with latest modul version.