icingaweb2-module-businessprocess icon indicating copy to clipboard operation
icingaweb2-module-businessprocess copied to clipboard

Obscure error message after migration to icingadb when config is older

Open RincewindsHat opened this issue 2 years ago • 1 comments

Describe the bug

After switching to IcingaDB adding new nodes (and possibly other actions) does result in the error message:

Too few arguments to function ipl\Sql\Connection::select(), 0 passed in /usr/share/icingaweb2/modules/businessprocess/library/Businessprocess/State/MonitoringState.php on line 73 and exactly 1 expected

If the line

# Backend: icinga

is removed or replaced by

# Backend:

it will work again.

Expected behavior

The module should probably check if the backend is available at all and not throw errors. A (semi)automatic migration might also be nice.

Your Environment

  • module businessprocess: v2.5.0
  • Icinga Web 2 version and modules (System - About): 2.12.1
  • PHP version used (php --version):
  • Server operating system and version: Ubuntu LTS

RincewindsHat avatar Nov 23 '23 10:11 RincewindsHat

Have the same issue (5000+ hosts) with latest icingaweb+modules. Hosts/services are splitted in several BP config files, default backend is/was icinga-ido.

When switching backend to icingadb, the error is gone as described above, but opening the business process module in icingaweb2 takes much more time. Tested with latest Chrome and Firefox browsers, load time changes from some hundred milliseconds to 4-40s. icingacli based BP checks struggle with errors. Maybe there are additional issues with icingaweb2, browser developer tools are reporting content-security-policy blockings and "SameSite" cookie attribute warnings.

manfredw avatar Nov 24 '23 18:11 manfredw

Hi @RincewindsHat, I cannot reproduce this bug, can you please write down the steps?

sukhwinder33445 avatar Mar 26 '24 13:03 sukhwinder33445

I can reproduce it now.

sukhwinder33445 avatar Mar 27 '24 07:03 sukhwinder33445